/* --- LIGHT MODE DEĞİŞKENLER --- */
:root {
    --bs-body-bg: radial-gradient(circle at center, #f4f7fa 0%, #e4ecf5 100%);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);
    --primary-blue: #0084ff;
    --primary-dark: #1e293b;
    --sidebar-width: 260px;
    --sidebar-mini-width: 85px;
    --text-muted-custom: #64748b;
}

body {
    background: var(--bs-body-bg);
    min-height: 100vh;
    color: var(--primary-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(0, 132, 255, 0.12);
    border-radius: 50%;
    top: 5%;
    left: 10%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* --- DASHBOARD CONTAINER & LAYOUT --- */
.dashboard-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    min-height: 90vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    display: flex;
    overflow: hidden;
    margin: 10px 0 10px;
}

/* --- SIDEBAR MİMARİSİ --- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1045;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-blue);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #475569;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 15px;
    white-space: nowrap;
}
.menu-item a i { font-size: 18px; color: var(--primary-blue); width: 25px; text-align: center; }
.menu-item.active a, .menu-item a:hover {
    background: rgba(0, 132, 255, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}

.dashboard-container.sidebar-toggled .sidebar {
    width: var(--sidebar-mini-width);
    min-width: var(--sidebar-mini-width);
    padding: 20px 10px;
    align-items: center;
}
.dashboard-container.sidebar-toggled .sidebar .brand span,
.dashboard-container.sidebar-toggled .sidebar .menu-item span { display: none; }

/* --- MAIN CONTENT AREA --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
}

/* --- BİLEŞENLER VE KARTLAR --- */
.card-custom {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, border-color 0.3s;
}
.card-custom:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 132, 255, 0.3);
}

.table-responsive-custom {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
}

/* Arama Filtreleme Alanı */
.filter-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.form-control-custom {
    
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--primary-dark) !important;
}
.form-control-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 132, 255, 0.15) !important;
    border-color: var(--primary-blue) !important;
}

.table-custom { color: var(--primary-dark) !important; margin-bottom: 0; }
.table-custom th {
    color: var(--text-muted-custom) !important;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
    background: transparent !important;
}
.table-custom td { border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important; vertical-align: middle; }
.table-custom tbody tr:hover td { background: rgba(0, 132, 255, 0.03) !important; }

/* Butonlar ve Badgeler */
.btn-theme { background: var(--primary-blue); border: 1px solid var(--primary-blue); color: #fff; transition: all 0.3s; }
.btn-theme:hover { background: #006dd3; box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3); color: #fff;}
.btn-toggle-custom { background: rgba(0, 132, 255, 0.1); border: 1px solid rgba(0, 132, 255, 0.2); color: var(--primary-blue); }
.btn-toggle-custom:hover { background: var(--primary-blue); color: #fff; }
.actions-btn { background: transparent; border: none; color: #64748b; padding: 5px 8px; }
.actions-btn:hover { color: var(--primary-blue); }

.badge-success-custom { background: rgba(46, 204, 113, 0.15); color: #1e7e34; border: 1px solid #2ecc71; }
.badge-warning-custom { background: rgba(241, 196, 15, 0.15); color: #9a7300; border: 1px solid #f1c40f; }
.badge-danger-custom { background: rgba(231, 76, 60, 0.15); color: #c0392b; border: 1px solid #e74c3c; }

/* --- MODAL ÖZELLEŞTİRME (GLASSMORPHISM FORM) --- */
.modal-content-custom {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    color: var(--primary-dark);
}
.modal-header, .modal-footer { border: none !important; }

/* --- RESPONSIVE OVERLAY --- */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.3); backdrop-filter: blur(4px);
    z-index: 1040; display: none; opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-overlay.show { display: block; opacity: 1; }

@media (max-width: 991.98px) {
    body { padding: 0; }
    .dashboard-container { height: 100vh; border-radius: 0; border: none; }
    .sidebar {
        position: fixed; top: 0; left: calc(-1 * var(--sidebar-width)); height: 100vh;
        background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(25px);
    }
    .dashboard-container.sidebar-mobile-show .sidebar { left: 0; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }