﻿





:root {
    
    --thk-blue-900: #0E4D7A;
    --thk-blue-700: #1F6FA3;
    --thk-blue-500: #4A90C2;
    --thk-blue-300: #7BB3D9;
    --thk-blue-100: #E9F2F9;
    --thk-blue-50: #F5F9FC;
    
    
    --accent-red: #E30A17;
    --accent-orange: #FF6B35;
    --accent-green: #27AE60;
    
    
    --text-900: #0F172A;
    --text-700: #334155;
    --text-500: #64748B;
    --text-300: #94A3B8;
    --text-100: #E2E8F0;
    
    
    --bg-white: #FFFFFF;
    --bg-gray-50: #F8FAFC;
    --bg-gray-100: #F1F5F9;
    
    
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;
    
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
}


body.dark-theme {
    --bg-gray-50: #0f172a;
    --bg-gray-100: #1e293b;
    --bg-white: #1e293b;
    --text-900: #f8fafc;
    --text-700: #cbd5e1;
    --text-500: #94a3b8;
    --border-light: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

body.dark-theme .card,
body.dark-theme .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme .card-header,
body.dark-theme .modal-header {
    background-color: #334155 !important;
    border-bottom-color: #475569 !important;
    color: #f8fafc !important;
}

body.dark-theme .top-navbar {
    background-color: #1e293b;
    border-bottom-color: #334155;
}

body.dark-theme .form-control, 
body.dark-theme .form-select,
body.dark-theme .input-group-text {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .table {
    color: #cbd5e1;
    border-color: #334155;
}

body.dark-theme .table-light,
body.dark-theme thead th {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

body.dark-theme .btn-outline-secondary {
    color: #cbd5e1;
    border-color: #334155;
}


.sidebar.sidebar-dark {
    background: linear-gradient(180deg, #0b1220 0%, #172033 100%);
    color: white;
}

.sidebar.sidebar-blue {
    background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
}

.sidebar.sidebar-light {
    background: #ffffff;
    color: var(--text-main);
    border-right: 1px solid var(--border-light);
}

.sidebar.sidebar-light .sidebar-brand,
.sidebar.sidebar-light .nav-link {
    color: #334155;
}

.sidebar.sidebar-light .nav-link:hover,
.sidebar.sidebar-light .nav-link.active {
    background: #f1f5f9;
    color: var(--primary-color);
}

.sidebar.sidebar-light .sidebar-header {
    border-bottom-color: var(--border-light);
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-gray-50);
    color: var(--text-900);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
}





h1, .h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--text-900);
    margin-bottom: var(--space-4);
}

h2, .h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: 1.3;
    color: var(--text-900);
    margin-bottom: var(--space-3);
}

h3, .h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    line-height: 1.4;
    color: var(--text-900);
    margin-bottom: var(--space-3);
}

h4, .h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    line-height: 1.4;
    color: var(--text-900);
    margin-bottom: var(--space-2);
}

h5, .h5 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 1.5;
    color: var(--text-900);
    margin-bottom: var(--space-2);
}

h6, .h6 {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1.5;
    color: var(--text-700);
    margin-bottom: var(--space-1);
}

p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-700);
    margin-bottom: var(--space-4);
}

.text-muted {
    color: var(--text-500) !important;
}

.text-small {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}





.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-gray-50);
}





.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0b1220 0%, #172033 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar.collapsed .sidebar-brand {
    display: none;
}

.sidebar-nav {
    padding: var(--space-4) 0;
}

.nav-item {
    margin: 4px 14px;
    list-style-type: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px !important;
    border-left: none !important;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar.sidebar-dark .nav-link.active {
    background: #1e3a8a !important; /* Deep modern corporate blue active state */
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.sidebar.sidebar-blue .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff !important;
}

.nav-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0.2px;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px !important;
    margin: 4px 8px;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

.sidebar hr.dropdown-divider {
    margin: 14px 14px !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.collapse {
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 8px !important;
    margin: 2px 14px 6px 14px !important;
    padding: 6px 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-normal);
}

.collapse.show {
    max-height: 500px;
    opacity: 1;
}

.collapse .nav-link {
    padding: 8px 16px 8px 36px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    margin: 2px 8px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.collapse .nav-link i {
    font-size: var(--text-sm);
    width: 16px;
    margin-right: 8px;
}





.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
    background-color: var(--bg-gray-50);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
}

.sidebar.collapsed ~ .main-content,
.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
    max-width: calc(100% - var(--sidebar-collapsed-width));
}





.top-navbar {
    background: white;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-700);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-gray-100);
    color: var(--text-900);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-name {
    font-weight: var(--font-medium);
    color: var(--text-900);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--thk-blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--thk-blue-700);
    font-weight: var(--font-semibold);
}





.dashboard-container {
    padding: var(--space-6);
    max-width: 100%;
    margin: 0;
}





.top-navbar { 
    padding-left: var(--space-4) !important; 
    padding-right: var(--space-6) !important;
}

.container-fluid.dashboard-container { 
    padding-left: var(--space-4) !important; 
    padding-right: var(--space-6) !important;
}


.main-content .container-fluid {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-6) !important;
}

.main-content { 
    margin-left: var(--sidebar-width) !important; 
    padding-left: 0 !important; 
    width: calc(100% - var(--sidebar-width));
}


.welcome-section {
    margin-bottom: var(--space-8);
}

.welcome-card {
    background: linear-gradient(135deg, var(--thk-blue-900), var(--thk-blue-700));
    color: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: white;
}

.welcome-text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
}

.welcome-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.current-time {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: white;
}

.last-update {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}


.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.metric-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--thk-blue-300);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--thk-blue-700), var(--thk-blue-500));
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--thk-blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--thk-blue-700);
    font-size: var(--text-xl);
}

.metric-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-900);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.metric-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.metric-description {
    font-size: var(--text-xs);
    color: var(--text-400);
    font-style: italic;
}


.empty-state {
    font-size: var(--text-xs);
    color: var(--text-400);
    font-style: italic;
    margin-top: var(--space-2);
    text-align: center;
}





.chartı-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.chartı-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.chartı-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray-50);
}

.chartı-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.chartı-title i {
    color: var(--thk-blue-700);
}

.chartı-body {
    padding: var(--space-6);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chartı-placeholder {
    text-align: center;
    color: var(--text-500);
}

.chartı-placeholder-icon {
    font-size: 48px;
    color: var(--text-300);
    margin-bottom: var(--space-4);
}

.chartı-placeholder-text {
    font-size: var(--text-sm);
    color: var(--text-400);
}





.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    gap: var(--space-2);
}

.btn-primary {
    background: var(--thk-blue-700);
    color: white;
    border-color: var(--thk-blue-700);
}

.btn-primary:hover {
    background: var(--thk-blue-900);
    border-color: var(--thk-blue-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--text-700);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-gray-50);
    border-color: var(--border-dark);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}





.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-700);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--text-900);
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--thk-blue-500);
    box-shadow: 0 0 0 3px rgba(79, 144, 194, 0.1);
}





.table-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-gray-50);
    font-weight: var(--font-semibold);
    color: var(--text-700);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--bg-gray-50);
}





.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }





@media (max-width: 1024px) {
    .chartı-section {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }
    
    .sidebar.show {
        transform: translateX(0);
        visibility: visible !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .dashboard-container {
        padding: var(--space-4);
    }
    
    .container-fluid.dashboard-container,
    .main-content .container-fluid {
        padding-left: var(--space-4) !important;
        padding-right: var(--space-4) !important;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-meta {
        flex-direction: column;
        align-items: flex-startı;
        gap: var(--space-2);
    }

    
    .sidebar-toggle {
        display: flex !important;
        z-index: 1001;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: var(--space-3);
    }
    
    .welcome-card {
        padding: var(--space-6);
    }
    
    .dashboard-title {
        font-size: var(--text-2xl);
    }
    
    .metric-card {
        padding: var(--space-4);
    }
}





@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}





::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--thk-blue-300);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--thk-blue-500);
}





.page-header {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-900);
    margin: 0;
}

.page-subtitle {
    font-size: var(--text-base);
    color: var(--text-500);
    margin: var(--space-2) 0 0 0;
}

.page-actions {
    display: flex;
    gap: var(--space-3);
}

.analytics-filters {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.analytics-chartıs {
    margin-bottom: var(--space-6);
}

.analytics-tables {
    margin-bottom: var(--space-6);
}

.table-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray-50);
}

.table-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.table-title i {
    color: var(--thk-blue-700);
}

.table-body {
    padding: 0;
}


.chartı-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.chartı-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray-50);
}

.chartı-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.chartı-title i {
    color: var(--thk-blue-700);
}

.chartı-body {
    padding: var(--space-6);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.analytics-filters .form-group {
    margin-bottom: 0;
}

.analytics-filters .form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-700);
    margin-bottom: var(--space-2);
}

.analytics-filters .form-control {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.analytics-filters .form-control:focus {
    border-color: var(--thk-blue-500);
    box-shadow: 0 0 0 3px rgba(79, 144, 194, 0.1);
    outline: none;
}


.table-card .table {
    margin: 0;
}

.table-card .table th {
    background: var(--bg-gray-50);
    font-weight: var(--font-semibold);
    color: var(--text-700);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.table-card .table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-sm);
}

.table-card .table tbody tr:hover {
    background: var(--bg-gray-50);
}


.badge {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.badge.bg-success {
    background-color: var(--accent-green) !important;
    color: white;
}

.badge.bg-warning {
    background-color: var(--accent-orange) !important;
    color: white;
}

.badge.bg-danger {
    background-color: var(--accent-red) !important;
    color: white;
}


@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-startı;
        gap: var(--space-4);
    }
    
    .analytics-filters .row {
        margin: 0;
    }
    
    .analytics-filters .col-md-3 {
        margin-bottom: var(--space-4);
    }
    
    .chartı-body {
        min-height: 250px;
        padding: var(--space-4);
    }
}





@media print {
    .sidebar,
    .top-navbar,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .metric-card,
    .chartı-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}





:root {
    --primary: #4e73df;
    --success: #1cc88a;
    --danger: #e74a3b;
    --warning: #f6c23e;
    --info: #36b9cc;
    --muted: #6c757d;
    --light: #f8f9fc;
    --dark: #0b1324;
}


.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e9f0ff, #f8f9fc);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.login-logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.login-card .input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid #e3e6f0;
    background: #f8f9fc;
    border-right: none;
}

.login-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--info));
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(78, 115, 223, 0.4);
}

.login-card .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}


.top-navbar {
    background: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.branch-switcher {
    min-width: 360px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dbe4ff;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.branch-switcher__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.branch-switcher__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.branch-switcher__meta {
    display: flex;
    align-items: flex-startı;
    justify-content: space-between;
    gap: 0.75rem;
}

.branch-switcher__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f6f90;
}

.branch-switcher__helper {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.73rem;
    line-height: 1.3;
    color: #8a94a6;
}

.branch-switcher__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.branch-switcher__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-switcher__select {
    min-width: 0;
    border-radius: 0.8rem;
    border-color: #cdd8ee;
    background-color: #fff;
    color: #1f2a44;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
}

.branch-switcher__select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

.branch-switcher__select:disabled {
    background-color: #f8fbff;
    color: #4b5563;
    opacity: 1;
}

.branch-switcher__reset {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: none;
    border-radius: 0.75rem;
    background: #eef4ff;
    color: #5270b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.branch-switcher__reset:hover {
    background: #dbeafe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.branch-switcher__status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.branch-switcher__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.branch-switcher.is-loading {
    opacity: 0.82;
}

.branch-switcher.is-loading .branch-switcher__status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

@media (max-width: 1440px) {
    .branch-switcher {
        min-width: 320px;
    }

    .branch-switcher__helper {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .branch-switcher {
        display: none;
    }
}

.sidebar-toggle {
    background: none;
    border: 1px solid #e3e6f0;
    border-radius: 0.375rem;
    padding: 0.5rem;
    color: var(--muted);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--light);
    color: var(--primary);
    border-color: var(--primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: #f8d7da;
    color: #721c24;
}


.sidebar {
    background: var(--dark);
    color: #cfd3dc;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: #aeb6c2;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(78, 115, 223, 0.2);
    border-left: 3px solid var(--primary);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.sidebar .nav-text {
    font-weight: 500;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-link {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}


.main-content {
    background: var(--light);
    min-height: 100vh;
    transition: all 0.3s ease;
}


.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.25);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}


.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--info));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(78, 115, 223, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #17a673);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d68910);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #2980b9);
    border: none;
}


.form-control {
    border-radius: 0.5rem;
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-select {
    border-radius: 0.5rem;
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
}


.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: var(--light);
    border: none;
    font-weight: 600;
    color: var(--muted);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: #f8f9fc;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(78, 115, 223, 0.02);
}


.badge {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}


.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(28, 200, 138, 0.1);
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(231, 74, 59, 0.1);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(246, 194, 62, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(54, 185, 204, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--info);
}


.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.card-header-premium {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header-premium h5 {
    color: var(--primary);
    font-weight: 700;
}


.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040; 
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
    .sidebar {
        left: -var(--sidebar-width);
        position: fixed;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width) !important;
        z-index: 1050;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar.show + .sidebar-overlay {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px; 
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}




.bg-primary-soft {
    background-color: rgba(14, 77, 122, 0.05); 
}
.bg-light-faint {
    background-color: #fafbfc;
}
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}
.transition-all {
    transition: all 0.2s ease-in-out;
}
.cursor-pointer {
    cursor: pointer;
}
.module-nav-link {
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease;
}
.module-nav-link.active {
    background-color: white !important;
    border-left-color: var(--thk-blue-700) !important;
}
.module-nav-link.active .icon-box-sm {
    background-color: var(--thk-blue-700) !important;
    color: white !important;
    border-color: var(--thk-blue-700) !important;
}
.action-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
}
.icon-box-xs {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
