/**
 * TAKSI BALL - Asosiy CSS
 * Zamonaviy, professional va responsive dizayn
 */

/* ==========================================
   CSS O'ZGARUVCHILAR
   ========================================== */
:root {
    /* Ranglar - premium palitra */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-ultra-light: #c7d2fe;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    /* Neytral ranglar */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Dark mode ranglar */
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --dark-text: #e2e8f0;

    /* Premium Gradient */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow-primary: 0 0 20px rgba(99, 102, 241, 0.4);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.4);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
    background: var(--dark-bg);
    color: var(--dark-text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================
   LAYOUT
   ========================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark-bg);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-300);
    border-radius: 0;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.topbar {
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.dark-mode .topbar {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.dark-mode .page-title {
    color: white;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-content {
    padding: 1.5rem;
}

/* ==========================================
   KARTALAR
   ========================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dark-mode .card {
    background: var(--dark-card);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-mode .card-header {
    border-color: var(--dark-border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.dark-mode .card-title {
    color: white;
}

.card-body {
    padding: 1.5rem;
}

/* Statistika kartalari */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dark-mode .stat-card {
    background: var(--dark-card);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.dark-mode .stat-value {
    color: white;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* ==========================================
   TUGMALAR
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.45);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.45);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ==========================================
   FORMLAR
   ========================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.dark-mode .form-label {
    color: var(--gray-300);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-800);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dark-mode .form-control {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    color: white;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ==========================================
   JADVALLAR
   ========================================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.dark-mode .table th,
.dark-mode .table td {
    border-color: var(--dark-border);
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
}

.dark-mode .table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--gray-400);
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.dark-mode .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================
   BADGLAR
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ==========================================
   ALERTLAR
   ========================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--info);
    color: #155e75;
}

/* ==========================================
   QR KOD SAHIFASI
   ========================================== */
.qr-container {
    text-align: center;
    padding: 2rem;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.qr-code {
    width: 280px;
    height: 280px;
}

.qr-info {
    margin-top: 1.5rem;
}

/* ==========================================
   SKANER
   ========================================== */
.scanner-container {
    max-width: 500px;
    margin: 0 auto;
}

#qr-reader {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#qr-reader video {
    border-radius: var(--radius-lg);
}

.scanner-result {
    margin-top: 1.5rem;
}

.driver-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.dark-mode .driver-card {
    background: var(--dark-card);
}

.driver-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.driver-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.driver-car {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.driver-balance {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.balance-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.balance-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
}

.balance-sum {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ==========================================
   BALL BOSHQARUVI
   ========================================== */
.points-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.points-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.points-input {
    width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.points-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.points-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================
   LOGIN SAHIFASI
   ========================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ==========================================
   MOBILE RESPONSIV
   ========================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-500);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.fw-medium {
    font-weight: 500;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.hidden {
    display: none;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Badge info */
.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--info);
}

/* Toast styles */
.toast {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    transition: all 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-info i {
    color: var(--info);
}

/* Notification badge in sidebar */
.nav-item .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
}

/* Better alerts */
.alert {
    border-radius: var(--radius-lg);
}

/* Card improvements */
.card {
    border: 1px solid var(--gray-100);
}

/* Table row highlight */
.table tbody tr.highlight {
    background: rgba(99, 102, 241, 0.05);
}

/* Avatar small */
.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Scan status styles */
#scan-status {
    padding: 1rem;
    text-align: center;
}

#scan-status .text-danger {
    color: var(--danger);
}

/* Camera container */
#qr-reader {
    background: var(--gray-100);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-reader video {
    max-width: 100%;
    border-radius: var(--radius);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Print styles */
@media print {

    .sidebar,
    .topbar,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Hover effects for cards */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Badge with icon spacing */
.badge i {
    margin-right: 0.25rem;
}

/* Form control focus animation */
.form-control:focus {
    transform: scale(1.01);
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   PREMIUM STILLAR
   ========================================== */

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

/* Notification Bell Animation */
@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30%,
    50%,
    70% {
        transform: rotate(8deg);
    }

    20%,
    40%,
    60% {
        transform: rotate(-8deg);
    }

    80% {
        transform: rotate(0);
    }
}

.notification-bell.active {
    animation: bellRing 1s ease-in-out;
}

/* Glow Effect */
.glow-primary {
    box-shadow: var(--shadow-glow-primary);
}

.glow-success {
    box-shadow: var(--shadow-glow-success);
}

/* Notification Badge Pulse */
@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.badge-pulse {
    animation: badgePulse 2s infinite;
}

/* Premium Stat Card */
.stat-card-premium {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: var(--transition);
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card-premium:hover::before {
    transform: translate(20%, -20%) scale(1.2);
}

/* Premium Button */
.btn-premium {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Notification Toast Premium */
.toast-premium {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Request notification banner */
.notification-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeSlideIn 0.5s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scanner container improved */
.scanner-container {
    max-width: 540px;
    margin: 0 auto;
}

#qr-reader {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-reader video {
    border-radius: var(--radius-lg);
}

/* Mode switcher buttons */
.mode-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
}

.mode-switcher .btn {
    flex: 1;
}

/* Driver info card improved */
.driver-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeSlideIn 0.4s ease-out;
}

.driver-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.driver-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.driver-balance {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flex utilities */
.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

/* Exchange requests table improved */
.request-row {
    transition: var(--transition);
}

.request-row:hover {
    background: rgba(99, 102, 241, 0.05) !important;
}

.request-row[data-status="pending"] {
    background: rgba(245, 158, 11, 0.05);
}

/* Sidebar notification badge */
.sidebar .nav-item .badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    animation: badgePulse 2s infinite;
}

/* Improve table on mobile */
@media (max-width: 768px) {
    .table-container {
        margin: 0 -1rem;
    }

    .table th,
    .table td {
        white-space: nowrap;
    }

    .driver-card {
        padding: 1.5rem;
    }

    .balance-value {
        font-size: 2rem;
    }
}

/* Success animation */
@keyframes successBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.success-bounce {
    animation: successBounce 0.8s;
}

/* Card shimmer loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* Quick action buttons */
.quick-action-btn {
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.quick-action-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved alerts */
.alert {
    border-radius: var(--radius-xl);
    border-left-width: 5px;
}

.alert i {
    font-size: 1.25rem;
}

/* ==========================================
   GLASSMORPHISM & MODERN EFFECTS
   ========================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.glow-success {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.glow-warning {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover lift effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-up {
    animation: scaleUp 0.3s ease forwards;
}

/* Progress bar styles */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-bar-fill.success {
    background: var(--gradient-success);
}

.progress-bar-fill.warning {
    background: var(--gradient-warning);
}

/* Notification dot */
.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.notification-dot.animate {
    animation: pulse 2s infinite;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Price tag */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-success);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

/* Avatar group */
.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid white;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Status indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--gray-400);
}

.status-dot.busy {
    background: var(--danger);
}

/* Countdown timer */
.countdown {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-item {
    text-align: center;
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Rating stars */
.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    color: var(--gray-300);
}

.rating-star.filled {
    color: var(--warning);
}

/* Tab navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
}

.tab-item {
    padding: 1rem 1.5rem;
    color: var(--gray-500);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}

.tab-item:hover {
    color: var(--gray-700);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Search input */
.search-input-wrapper {
    position: relative;
}

.search-input {
    padding-left: 2.75rem;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* Filter chips */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-chip:hover {
    background: var(--gray-200);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
}

/* Notification toast improvements */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    animation: slideInRight 0.3s ease forwards;
}

.dark-mode .toast {
    background: var(--dark-card);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
}

/* Card with gradient border */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
}

/* Improved modal backdrop */
.modal-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dark-mode .loading-overlay {
    background: rgba(15, 23, 42, 0.9);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Improved scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--dark-border);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

/* Print styles */
@media print {

    .sidebar,
    .topbar,
    .btn,
    button {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* ==========================================
   TEMA ALMASHTIRISH TUGMASI
   ========================================== */
.theme-toggle-wrapper {
    position: relative;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.theme-toggle-btn .theme-icon-light,
.theme-toggle-btn .theme-icon-dark {
    position: absolute;
    font-size: 1.125rem;
    transition: var(--transition);
}

.theme-toggle-btn .theme-icon-light {
    color: var(--warning);
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle-btn .theme-icon-dark {
    color: var(--primary-light);
    opacity: 0;
    transform: rotate(-90deg);
}

/* Dark mode da ikonkalar */
.dark-mode .theme-toggle-btn {
    background: var(--dark-border);
}

.dark-mode .theme-toggle-btn:hover {
    background: var(--gray-600);
}

.dark-mode .theme-toggle-btn .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-mode .theme-toggle-btn .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* ==========================================
   TIL TANLASH DROPDOWN
   ========================================== */
.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.language-btn:hover {
    background: var(--gray-200);
}

.language-btn .lang-flag {
    font-size: 1.125rem;
}

.language-btn .lang-name {
    font-weight: 500;
}

.language-btn i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 180px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
}

.language-option:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.language-option .lang-flag {
    font-size: 1.25rem;
}

.language-option .lang-name {
    flex: 1;
    font-weight: 500;
}

.language-option i {
    color: var(--success);
}

/* Dark mode til menyusi */
.dark-mode .language-btn {
    background: var(--dark-border);
    color: var(--gray-300);
}

.dark-mode .language-btn:hover {
    background: var(--gray-600);
}

.dark-mode .language-menu {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.dark-mode .language-option {
    color: var(--gray-300);
}

.dark-mode .language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dark-mode .language-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

/* ==========================================
   DARK MODE UMUMIY STILLAR
   ========================================== */
/* Dark mode uchun text ranglar */
.dark-mode .text-muted {
    color: var(--gray-400) !important;
}

.dark-mode .fw-semibold {
    color: white;
}

/* Dark mode sidebar */
.dark-mode .sidebar {
    background: #0a0f1a;
    border-right: 1px solid var(--dark-border);
}

/* Dark mode form elementlari */
.dark-mode select.form-control {
    background-color: var(--dark-bg);
    color: white;
}

.dark-mode .form-select {
    background-color: var(--dark-bg);
    color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Dark mode modal */
.dark-mode .modal {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.dark-mode .modal-header {
    border-color: var(--dark-border);
}

.dark-mode .modal-footer {
    border-color: var(--dark-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Dark mode alerts */
.dark-mode .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.dark-mode .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.dark-mode .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.dark-mode .alert-info {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
}

/* Dark mode driver balance */
.dark-mode .driver-balance {
    border-color: var(--dark-border);
}

/* Dark mode QR wrapper */
.dark-mode .qr-code-wrapper {
    background: white;
}

/* Dark mode empty state */
.dark-mode .empty-state {
    color: var(--gray-400);
}

.dark-mode .empty-state i {
    color: var(--gray-500);
}

/* Dark mode pagination */
.dark-mode .pagination-btn {
    background: var(--dark-border);
    color: var(--gray-300);
}

.dark-mode .pagination-btn:hover:not(:disabled) {
    background: var(--gray-600);
}

.dark-mode .pagination-btn:disabled {
    opacity: 0.4;
}

/* Dark mode input groups */
.dark-mode .input-group-text {
    background: var(--dark-border);
    color: var(--gray-400);
    border-color: var(--dark-border);
}

/* Dark mode btn-outline */
.dark-mode .btn-outline {
    border-color: var(--dark-border);
    color: var(--gray-300);
}

.dark-mode .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Dark mode secondary buttons */
.dark-mode .btn-secondary {
    background: var(--dark-border);
    color: var(--gray-300);
}

.dark-mode .btn-secondary:hover {
    background: var(--gray-600);
    color: white;
}

/* Topbar actions spacing */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile responsive tema va til */
@media (max-width: 768px) {
    .language-btn .lang-name {
        display: none;
    }

    .language-btn {
        padding: 0.5rem;
    }

    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .topbar-actions {
        gap: 0.5rem;
    }

    .topbar-actions>.d-flex:last-child .fw-semibold,
    .topbar-actions>.d-flex:last-child .text-muted {
        display: none;
    }
}

/* ==========================================
   SIDEBAR SOZLAMALAR (TIL VA TEMA)
   ========================================== */
.sidebar-setting-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-300);
    cursor: default;
}

.sidebar-setting-item>span {
    flex: 1;
}

/* Tema switch tugmasi */
.theme-switch-wrapper {
    margin-left: auto;
}

.theme-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--dark-border);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.theme-switch:hover {
    background: var(--gray-600);
}

.theme-switch.active {
    background: var(--primary);
}

.theme-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch.active .theme-switch-slider {
    left: 26px;
}

.theme-switch-slider .fa-sun {
    color: var(--warning);
    font-size: 0.75rem;
    display: block;
}

.theme-switch-slider .fa-moon {
    color: var(--primary);
    font-size: 0.75rem;
    display: none;
}

.theme-switch.active .theme-switch-slider .fa-sun {
    display: none;
}

.theme-switch.active .theme-switch-slider .fa-moon {
    display: block;
}

/* Sidebar til dropdown */
.language-setting {
    position: relative;
}

.sidebar-language-dropdown {
    margin-left: auto;
    position: relative;
}

.sidebar-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: var(--dark-border);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8125rem;
    color: var(--gray-300);
}

.sidebar-lang-btn:hover {
    background: var(--gray-600);
}

.sidebar-lang-btn .lang-flag {
    font-size: 1rem;
}

.sidebar-lang-btn .lang-short {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-lang-btn i.fa-chevron-down {
    font-size: 0.625rem;
    transition: var(--transition);
}

.sidebar-lang-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    min-width: 180px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.sidebar-lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sidebar-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-lang-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.sidebar-lang-option .lang-flag {
    font-size: 1.25rem;
}

.sidebar-lang-option .lang-name {
    flex: 1;
    font-weight: 500;
}

.sidebar-lang-option i.fa-check {
    color: var(--success);
    font-size: 0.875rem;
}

/* Mobile responsive sidebar sozlamalar */
@media (max-width: 768px) {
    .sidebar-lang-btn .lang-short {
        display: none;
    }

    .sidebar-lang-menu {
        right: auto;
        left: 0;
    }
}

/* ==========================================
   BILDIRISHNOMALAR (NOTIFICATIONS)
   ========================================== */
.notification-wrapper {
    position: relative;
}

.notification-btn {
    position: relative;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.dark-mode .notification-btn {
    background: var(--dark-border);
    color: var(--gray-400);
}

.dark-mode .notification-btn:hover {
    background: var(--dark-card);
    color: white;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dark-mode .notification-dropdown {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-mode .notification-header {
    border-color: var(--dark-border);
}

.notification-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--gray-800);
}

.dark-mode .notification-header h4 {
    color: white;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-50);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.read {
    opacity: 0.6;
}

.dark-mode .notification-item {
    border-color: var(--dark-border);
}

.dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-icon.info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--info);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notification-icon.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .notification-title {
    color: white;
}

.notification-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.notification-sender {
    color: var(--primary);
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.dark-mode .notification-footer {
    border-color: var(--dark-border);
}

.notification-footer a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.notification-footer a:hover {
    color: var(--primary-dark);
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.notification-loading {
    padding: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* User avatar fix */
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive notifications */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 100vw;
        right: -60px;
        border-radius: 0;
        max-height: 70vh;
    }

    .notification-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ==========================================
   XABARLAR SAHIFASI (MESSAGES PAGE)
   ========================================== */
.message-compose-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dark-mode .message-compose-card {
    background: var(--dark-card);
}

.message-type-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.message-type-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.message-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.message-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.dark-mode .message-type-btn {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--gray-400);
}

.dark-mode .message-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.recipient-selector {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.dark-mode .recipient-selector {
    border-color: var(--dark-border);
}

.recipient-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.recipient-item:hover {
    background: var(--gray-50);
}

.dark-mode .recipient-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recipient-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.recipient-info {
    flex: 1;
}

.recipient-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.recipient-detail {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.messages-history {
    margin-top: 2rem;
}

.message-card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.message-card:hover {
    box-shadow: var(--shadow);
}

.dark-mode .message-card {
    background: var(--dark-card);
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.message-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
}

.dark-mode .message-card-title {
    color: white;
}

.message-card-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: right;
}

.message-card-body {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.dark-mode .message-card-body {
    color: var(--gray-400);
}

.message-card-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.message-stats {
    display: flex;
    gap: 1rem;
}

.message-stat {
    color: var(--gray-500);
}

.message-stat i {
    margin-right: 0.25rem;
}