/* B2B Ajans Panel - Ana Stil Dosyası */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-top: 70px;
    flex: 1;
    padding-bottom: 2rem;
}

.cari-panel .main-content {
    padding-bottom: 5rem;
}

/* Dashboard Kartları */
.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.stat-card.bg-success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important; }
.stat-card.bg-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; }
.stat-card.bg-danger { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important; }
.stat-card.bg-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.stat-card.bg-dark { background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important; }

/* Tablolar */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.table {
    background: #fff;
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Badge */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Formlar */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Login Sayfası */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card .card-header {
    background: transparent;
    text-align: center;
    border: none;
    padding-top: 2rem;
}

.login-card .card-body {
    padding: 1.5rem 2rem 2rem;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* Uyarı satırları */
.table-danger td { background-color: rgba(231, 76, 60, 0.1) !important; }
.table-warning td { background-color: rgba(243, 156, 18, 0.1) !important; }
.table-info td { background-color: rgba(52, 152, 219, 0.1) !important; }

/* Sayfa başlığı */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .main-content {
        margin-top: 60px;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .btn-group-actions .btn {
        margin-bottom: 0.25rem;
    }
}

/* Fiyat listesi */
.price-table .special-price {
    color: #e74c3c;
    font-weight: 600;
}

.price-table .default-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.85rem;
}

/* Bildirim */
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e8f4fd;
}

/* Print / Export uyumlu */
@media print {
    .navbar, .footer, .no-print { display: none !important; }
    .main-content { margin-top: 0; }
}

/* Cari panel renkleri */
.cari-panel .navbar-dark.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Gizli bölüm */
.hidden-access-link {
    opacity: 0.25;
    font-size: 0.75rem;
    transition: opacity 0.2s;
}

.hidden-access-link:hover {
    opacity: 0.6;
    text-decoration: none;
}

.hidden-section-nav .nav-link {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hidden-section-nav .nav-link.active {
    background: #2c3e50;
    color: #fff;
}

/* Sepet */
.cart-mini-list .list-group-item {
    border-left: none;
    border-right: none;
}

.navbar .badge-warning {
    font-size: 0.7rem;
    vertical-align: top;
}

/* Admin panel */
.admin-panel .navbar-dark.bg-dark {
    background: #2c3e50 !important;
}

/* Arama kutusu */
.search-box {
    max-width: 300px;
}

/* Detay sayfası */
.detail-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
}

.detail-value {
    font-size: 1rem;
}

/* Ürün sürükle-bırak sıralama */
.sort-handle {
    cursor: grab;
    width: 40px;
    text-align: center;
    user-select: none;
}

.sort-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.45;
    background: #e8f4fd !important;
}

.sortable-chosen {
    background: #f8f9fa;
}

.sortable-hint {
    font-size: 0.9rem;
}

.sortable-drag {
    opacity: 0.95;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
