:root {
    /* Premium Gold Palette */
    --gold-50: #FFFBEB;
    --gold-100: #FEF3C7;
    --gold-200: #FDE68A;
    --gold-300: #FCD34D;
    --gold-400: #FBBF24;
    --gold-500: #F59E0B;
    --gold-600: #D97706;
    --gold-primary: #D4AF37;
    --gold-dark: #92400E;
    
    /* Deep Navy Theme (Dark Mode - Default) */
    --bg-primary: #0A1628;
    --bg-secondary: #0F1D32;
    --bg-tertiary: #162340;
    --bg-card: #0F1D32;
    --bg-hover: #1A2C4E;
    --bg-input: rgba(255, 255, 255, 0.08);
    
    /* Borders */
    --border-subtle: rgba(212, 175, 55, 0.08);
    --border-default: rgba(212, 175, 55, 0.15);
    --border-gold: rgba(212, 175, 55, 0.35);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    
    /* Chart Colors for Dark */
    --chart-grid: rgba(255, 255, 255, 0.1);
    --chart-text: rgba(255, 255, 255, 0.7);
}

/* Theme Transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    /* Light Background */
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #F0F2F5;
    --bg-input: #FFFFFF;
    
    /* Light Borders */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-gold: rgba(180, 140, 20, 0.3);
    --border-light: rgba(0, 0, 0, 0.05);
    
    /* Light Text */
    --text-primary: #1A2744;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    
    /* Adjust Gold for Light Mode */
    --gold-primary: #B8860B;
    
    /* Chart Colors for Light */
    --chart-grid: rgba(0, 0, 0, 0.1);
    --chart-text: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Premium Typography Classes */
.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-heading {
    font-family: 'Outfit', sans-serif;
}

.font-body {
    font-family: 'DM Sans', sans-serif;
}

/* Letter Spacing Utilities */
.tracking-tight { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.sidebar-brand-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.sidebar-brand-text span {
    color: var(--gold-400);
    font-style: italic;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-family: 'Outfit', sans-serif;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.nav-item {
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary) !important;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--gold-400) !important;
    border: 1px solid var(--border-gold);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: 0 4px 4px 0;
}

.nav-badge {
    margin-left: auto;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(184, 134, 11, 0.2);
    color: var(--gold-400);
    border-radius: 6px;
}

/* ===== MAIN CONTENT ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--gold-primary);
    padding: 1rem 2rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Live DateTime Display */
.live-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.live-datetime i {
    color: var(--gold-400);
    font-size: 0.85rem;
}

.live-datetime .datetime-separator {
    color: var(--border-color);
    margin: 0 0.25rem;
}

#liveDate {
    font-weight: 500;
    color: var(--text-primary);
}

#liveTime {
    font-family: 'DM Sans', monospace;
    font-weight: 600;
    color: var(--gold-400);
    min-width: 70px;
}

/* Responsive - hide date on smaller screens */
@media (max-width: 768px) {
    .live-datetime {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    #liveDate,
    .live-datetime .bi-calendar3,
    .datetime-separator {
        display: none;
    }
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--gold-400);
}

.breadcrumb-nav span {
    color: var(--text-muted);
}

.breadcrumb-nav .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Header Center - Live Rates Slider */
.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    overflow: hidden;
    position: relative;
}

.rates-slider-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.rates-slider {
    display: flex;
    gap: 1rem;
    animation: slideRates 15s linear infinite;
}

.rates-slider:hover {
    animation-play-state: paused;
}

@keyframes slideRates {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.live-rate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
    min-width: fit-content;
}

.live-rate-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
}

.live-rate-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-rate-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-rate-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.live-rate-change {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.live-rate-change.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.live-rate-change.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.live-rate-prices {
    display: flex;
    gap: 0.75rem;
}

.live-rate-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.live-rate-price-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.live-rate-price-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.header-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    background: #dc3545;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Dropdown */
.notification-dropdown {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.notification-dropdown .dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.notification-dropdown .text-gold {
    color: var(--gold-primary);
    text-decoration: none;
}

.notification-dropdown .text-gold:hover {
    text-decoration: underline;
}

/* Header User Profile */
.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-user:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.header-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.header-user-chevron {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.header-user[aria-expanded="true"] .header-user-chevron {
    transform: rotate(180deg);
}

/* Header Dropdown */
.header-dropdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    min-width: 200px;
}

.header-dropdown .dropdown-item {
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s;
}

.header-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.header-dropdown .dropdown-divider {
    border-color: var(--border-default);
    margin: 0.5rem 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

/* ===== CARDS ===== */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: visible;
    transition: all 0.3s ease;
}

.card-custom:hover {
    border-color: var(--border-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-custom h5 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.card-header-custom h5 i {
    color: var(--gold-400);
}

.card-body-custom {
    padding: 1.5rem;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold-400);
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== TABLES ===== */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    --bs-table-bg: transparent;
}

.table-custom th,
.table-custom td {
    background-color: transparent !important;
}

.table-custom thead th {
    font-family: 'Outfit', sans-serif;
    padding: 1rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: var(--bg-hover);
}

.table-custom tbody td {
    font-family: 'DM Sans', sans-serif;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* DataTables Dark Theme */
.table-dark-custom,
.table-dark-custom thead,
.table-dark-custom tbody,
.table-dark-custom tr,
.table-dark-custom td,
.table-dark-custom th {
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(212, 175, 55, 0.05) !important;
    background-color: transparent !important;
    background: transparent !important;
}

.table-dark-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-dark-custom thead tr {
    background: rgba(0, 0, 0, 0.3) !important;
}

.table-dark-custom thead th {
    font-family: 'Outfit', sans-serif;
    background: transparent !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-top: none !important;
    color: var(--gold-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

.table-dark-custom tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.table-dark-custom tbody tr:hover {
    background: rgba(212, 175, 55, 0.08) !important;
}

.table-dark-custom tbody td {
    font-family: 'DM Sans', sans-serif;
    border: none !important;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.table-dark-custom tbody tr:last-child td {
    border-bottom: none !important;
}

/* ===== MODAL STYLES ===== */
.modal-backdrop {
    background-color: rgba(10, 22, 40, 0.9) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-content {
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px;
}

.modal-header {
    border-bottom-color: rgba(212, 175, 55, 0.15) !important;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top-color: rgba(212, 175, 55, 0.15) !important;
    padding: 1rem 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== BUTTONS ===== */
.btn-gold {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    letter-spacing: 0.02em;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
    color: var(--bg-primary);
}

.btn-gold-outline {
    font-family: 'Outfit', sans-serif;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-gold-outline:hover {
    background: rgba(184, 134, 11, 0.1);
    color: var(--gold-300);
}

.btn-navy {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-navy:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-action-view {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.btn-action-view:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93C5FD;
}

.btn-action-edit {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--gold-400);
}

.btn-action-edit:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-300);
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.btn-action-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.btn-action-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== DATATABLES CUSTOM STYLES ===== */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length {
    padding-bottom: 0;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_filter {
    padding-bottom: 1.25rem;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    margin: 0;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    margin: 0 0.5rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    width: 280px;
    margin-left: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.85rem center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: var(--text-muted);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Premium Pagination */
.dataTables_wrapper .dataTables_paginate {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px !important;
    background: transparent;
    border: 2px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    color: var(--text-secondary) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dataTables_wrapper .dataTables_paginate .paginate_button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button span,
.dataTables_wrapper .dataTables_paginate .paginate_button i {
    position: relative;
    z-index: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    border-color: var(--gold-primary) !important;
    color: var(--gold-400) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: transparent !important;
    border: 2px solid var(--gold-primary) !important;
    color: var(--gold-400) !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3),
                inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--gold-400) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                inset 0 0 25px rgba(212, 175, 55, 0.15);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--bg-tertiary) !important;
    border-color: var(--border-subtle) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    background: var(--bg-tertiary);
    border-color: var(--border-gold) !important;
    color: var(--gold-400) !important;
    font-weight: 600;
    min-width: 48px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover:not(.disabled),
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover:not(.disabled) {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: var(--gold-primary) !important;
    color: var(--gold-300) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.last {
    display: none;
}

/* Ellipsis style */
.dataTables_wrapper .dataTables_paginate .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Info text */
.dataTables_wrapper .dataTables_info {
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Footer area */
.dataTables_wrapper > .row:last-child {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 16px 16px;
    margin: 0 !important;
    padding: 0.5rem 0;
}

.dataTables_empty {
    text-align: center;
    padding: 4rem 2rem !important;
    color: var(--text-muted);
}

table.dataTable thead th {
    border-bottom: 1px solid var(--border-subtle) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-400);
    padding: 1rem 1.25rem !important;
}

table.dataTable tbody td {
    padding: 1rem 1.25rem !important;
    vertical-align: middle;
}

table.dataTable tbody tr {
    transition: all 0.2s ease;
}

table.dataTable tbody tr:hover {
    background: var(--bg-hover) !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

/* Sorting icons */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 0.3;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1;
    color: var(--gold-400);
}

/* ===== FORMS ===== */
.form-control,
.form-control-custom {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-control-custom:focus {
    background: var(--bg-tertiary) !important;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    color: var(--text-primary) !important;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-control-custom:disabled,
.form-control-custom[readonly],
.form-control:disabled,
.form-control[readonly] {
    background: var(--bg-secondary) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-muted) !important;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Checkbox ve Radio Stilleri */
.form-check {
    min-height: 1.5rem;
    padding-left: 1.7em;
    margin-bottom: 0.5rem;
}

.form-check-input {
    background-color: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    margin-left: -1.7em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.form-check-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    outline: 0;
}

/* Switch (On/Off) Stilleri */
.form-switch {
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    width: 2.5em !important;
    height: 1.25em !important;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%255, 255, 255, 0.5'/%3e%3c/svg%3e") !important;
    background-position: left center !important;
    border-radius: 2em !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-switch .form-check-input:checked {
    background-position: right center !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%255, 255, 255, 0.75'/%3e%3c/svg%3e") !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

.form-switch .form-check-input:checked:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Light Mode Uyumluluğu */
[data-theme="light"] .form-check-input {
    border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

[data-theme="light"] .form-switch .form-check-input {
    background-color: rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%250, 0, 0, 0.5'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .form-switch .form-check-input:checked {
    background-color: var(--gold-primary) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%250, 0, 0, 0.5'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .form-switch .form-check-input:checked:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Select ve Textarea */
.form-select,
textarea.form-control,
textarea.form-control-custom {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary) !important;
}

.form-select:focus,
textarea.form-control:focus {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    color: var(--text-primary) !important;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-label-custom {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 10px 0 0 10px;
}

/* Premium Icon Input Group */
.input-group-premium {
    position: relative;
}

.input-group-premium .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    z-index: 4;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.input-group-premium .form-control-custom {
    padding-left: 2.75rem;
    border-radius: 10px !important;
}

.input-group-premium textarea.form-control-custom {
    padding-top: 0.75rem;
}

.input-group-premium textarea.form-control-custom + .input-icon,
.input-group-premium .input-icon-top {
    top: 1rem;
    transform: translateY(0);
}

.input-group-premium:focus-within .input-icon {
    color: var(--gold-400);
    opacity: 1;
}

/* Legacy input-group fix */
.input-group .input-group-text {
    border-right: none;
}

.input-group .form-control-custom.border-start-0 {
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
}

.input-group:focus-within .input-group-text {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.input-group:focus-within .form-control-custom {
    border-color: var(--gold-primary);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.4em 0.75em;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 6px;
}

.badge-gold {
    background: rgba(184, 134, 11, 0.15);
    color: var(--gold-400);
    border: 1px solid var(--border-gold);
}

.bg-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ADE80 !important;
}

.bg-warning {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #FBBF24 !important;
}

.bg-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #F87171 !important;
}

.bg-info {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38BDF8 !important;
}

.bg-primary {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818CF8 !important;
}

/* Status Badges - Emanet Durumları */
.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border: 1px solid !important;
}
.status-badge i {
    font-size: 0.8rem !important;
}
.status-stored {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}
.status-withdrawn {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.status-partial {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}
.status-extended {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #a855f7 !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}
.status-pending {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}
.status-cancelled {
    background: rgba(107, 114, 128, 0.15) !important;
    color: #9ca3af !important;
    border-color: rgba(107, 114, 128, 0.3) !important;
}
}

.bg-secondary {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #94A3B8 !important;
}

/* ===== PAGE HEADER ===== */
.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.page-subtitle {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ADE80;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #F87171;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--gold-400);
}

.dropdown-divider {
    border-color: var(--border-subtle);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex !important;
    }

    .top-header {
        padding: 0.75rem 1rem;
    }

    .header-center {
        display: none;
    }

    .header-user-info {
        display: none;
    }

    .header-user {
        padding: 0.4rem;
    }

    .breadcrumb-nav {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }
}

.menu-toggle {
    display: none;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--gold-primary);
    z-index: 1060;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.mobile-menu-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bg-primary);
}

.mobile-menu-brand-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-brand-text span {
    color: var(--gold-400);
    font-style: italic;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mobile-menu-body {
    padding: 1rem;
}

.mobile-nav-section {
    margin-bottom: 1.25rem;
}

.mobile-nav-section-title {
    font-family: 'Outfit', sans-serif;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--gold-400);
    border: 1px solid var(--border-gold);
}

.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.mobile-user-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-menu-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-action-btn.logout {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.mobile-action-btn.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Mobile Rate Cards */
.mobile-rates {
    display: none;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .mobile-rates {
        display: flex;
        gap: 0.75rem;
    }
}

.mobile-rate-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
}

.mobile-rate-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
}

.mobile-rate-content {
    display: flex;
    flex-direction: column;
}

.mobile-rate-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mobile-rate-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .stat-card .stat-value {
        font-size: 1.75rem;
    }

    .card-header-custom {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card-body-custom {
        padding: 1rem;
    }

    .table-custom thead th,
    .table-custom tbody td {
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .btn-gold,
    .btn-gold-outline,
    .btn-navy {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 200px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        padding: 0.75rem 1rem;
    }

    /* Form fixes */
    .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0.75rem;
    }

    .card-custom {
        border-radius: 12px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    /* DataTable mobile */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 36px;
        height: 36px;
        padding: 0 10px !important;
    }
}

/* Progress Bar */
.progress {
    background: var(--bg-tertiary);
    border-radius: 4px;
    height: 6px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
}

/* Text colors */
.text-muted { color: var(--text-muted) !important; }
.text-gold { color: var(--gold-400) !important; }

/* Border colors for dividers */
.gold-divider {
    border-color: var(--border-gold) !important;
    opacity: 0.5;
}

/* Shimmer effect for icons */
.shimmer {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 50%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerAnim 2s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes shimmerAnim {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Guest Layout */
.guest-layout {
    padding: 2rem 0;
}

/* ===== CUSTOM TOAST STYLES ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}
.custom-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}
.custom-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.custom-toast.toast-success::before { background: #22c55e; }
.custom-toast.toast-error::before { background: #ef4444; }
.custom-toast.toast-warning::before { background: #f59e0b; }
.custom-toast.toast-info::before { background: #3b82f6; }

.custom-toast .toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.custom-toast.toast-success .toast-icon { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.custom-toast.toast-error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.custom-toast.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.custom-toast.toast-info .toast-icon { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.custom-toast .toast-content {
    flex: 1;
    min-width: 0;
}
.custom-toast .toast-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.custom-toast .toast-message {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.custom-toast .toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.custom-toast .toast-close:hover {
    opacity: 1;
}
.custom-toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: progress 5s linear forwards;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}
.custom-toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* ===== SWEETALERT2 CUSTOM STYLES ===== */
.swal-custom-popup {
    border: 1px solid var(--border-gold) !important;
    border-radius: 16px !important;
}
.swal-custom-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.5rem !important;
}
.swal-custom-confirm {
    font-family: 'Outfit', sans-serif !important;
    padding: 0.75rem 2rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}
.swal-custom-cancel {
    font-family: 'Outfit', sans-serif !important;
    padding: 0.75rem 2rem !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}
.swal-custom-input {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
}
.swal-custom-input:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}
.swal2-icon {
    border-color: var(--gold-primary) !important;
}
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}
.swal2-icon.swal2-success {
    border-color: #22c55e !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, 0.3) !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #22c55e !important;
}
.swal2-html-container {
    color: var(--text-secondary) !important;
}

/* Tom Select Premium Styles */
.ts-wrapper {
    border: none !important;
    position: relative;
    z-index: 10;
}
.ts-wrapper.focus {
    z-index: 1000;
}
.ts-dropdown {
    z-index: 1001 !important;
}
.ts-wrapper .ts-control {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}
.ts-wrapper .ts-control:hover {
    border-color: var(--border-gold) !important;
}
.ts-wrapper.focus .ts-control {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}
.ts-wrapper .ts-control input {
    color: var(--text-primary) !important;
}
.ts-wrapper .ts-control input::placeholder {
    color: var(--text-muted) !important;
}
.ts-dropdown {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 12px !important;
    margin-top: 4px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    position: absolute !important;
}
.ts-dropdown .ts-dropdown-content {
    max-height: 300px !important;
    padding: 8px !important;
}
.ts-dropdown .option {
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease !important;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%) !important;
    color: var(--gold-primary) !important;
}
.ts-dropdown .option.selected {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%) !important;
    color: var(--gold-primary) !important;
}
.ts-dropdown .optgroup-header {
    color: var(--gold-primary) !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid var(--border-default) !important;
    margin-bottom: 4px !important;
}
.ts-wrapper .item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: var(--gold-primary) !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.9rem !important;
}
.ts-wrapper.single .ts-control .item {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
}
.ts-dropdown .no-results {
    padding: 12px 16px !important;
    color: var(--text-muted) !important;
    text-align: center !important;
}
.ts-wrapper .ts-control > input {
    min-width: 100px !important;
}
/* Clear button */
.ts-wrapper .clear-button {
    color: var(--text-muted) !important;
}
.ts-wrapper .clear-button:hover {
    color: var(--gold-primary) !important;
}
/* Highlight matched text */
.ts-dropdown .option .highlight {
    background: rgba(212, 175, 55, 0.3) !important;
    color: var(--gold-primary) !important;
    border-radius: 2px !important;
    padding: 0 2px !important;
}

/* ===== SIDEBAR SUBMENU STYLES ===== */
.nav-item.has-submenu {
    position: relative;
}

.nav-item.has-submenu .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.nav-item.has-submenu .submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.nav-item.has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.nav-item.has-submenu .submenu.show {
    max-height: 200px;
}

.nav-item.has-submenu .nav-link.sub {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 8px;
    margin: 2px 0;
}

.nav-item.has-submenu .nav-link.sub:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.nav-item.has-submenu .nav-link.sub.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
}

.nav-item.has-submenu .nav-link.sub i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Mobile Submenu Styles */
.mobile-nav-submenu {
    margin-bottom: 0.5rem;
}

.mobile-nav-submenu-toggle {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-submenu-toggle:hover,
.mobile-nav-submenu-toggle.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.mobile-nav-submenu-toggle i:first-child {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.mobile-nav-submenu-toggle .submenu-arrow {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-nav-submenu-toggle.open .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
}

.mobile-nav-submenu-items.show {
    max-height: 200px;
}

.mobile-nav-link.sub {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
}

.mobile-nav-link.sub i {
    font-size: 0.95rem !important;
}

/* ===== LIGHT MODE SPECIFIC OVERRIDES ===== */
[data-theme="light"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar {
    background: var(--bg-secondary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card-custom {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-card {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header {
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .table-custom thead th {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

[data-theme="light"] .table-custom tbody tr {
    background: var(--bg-card);
}

[data-theme="light"] .table-custom tbody tr:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .btn-gold {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: #FFFFFF;
}

[data-theme="light"] .btn-gold:hover {
    background: linear-gradient(135deg, #9A7209 0%, #B8860B 100%);
    color: #FFFFFF;
}

[data-theme="light"] .btn-navy {
    background: linear-gradient(135deg, #1A2744 0%, #2C3E5A 100%);
    color: #FFFFFF;
}

[data-theme="light"] .badge-gold {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(218, 165, 32, 0.1) 100%);
    color: #8B6914;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .text-gold {
    color: #8B6914 !important;
}

[data-theme="light"] .sidebar-nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-nav-link.active {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(218, 165, 32, 0.08) 100%);
    color: #8B6914;
    border-color: rgba(184, 134, 11, 0.4);
}

[data-theme="light"] .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-item:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .mobile-menu {
    background: var(--bg-secondary);
}

[data-theme="light"] .mobile-nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link.active {
    background: rgba(184, 134, 11, 0.1);
    color: #8B6914;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-control-custom {
    background: var(--bg-primary) !important;
    border-color: var(--border-default);
    color: var(--text-primary) !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-control-custom:focus {
    background: #FFFFFF !important;
    border-color: var(--gold-primary);
}

[data-theme="light"] .form-select {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-default);
    color: var(--text-primary) !important;
}

[data-theme="light"] .input-group-text {
    background: var(--bg-primary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

[data-theme="light"] .alert {
    border-color: var(--border-default);
}

[data-theme="light"] .live-rates-wrapper {
    background: var(--bg-primary);
}

[data-theme="light"] .live-rate {
    color: var(--text-primary);
}

[data-theme="light"] .page-title {
    color: var(--text-primary);
}

[data-theme="light"] .page-subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .card-header-custom {
    border-bottom-color: var(--border-default);
}

[data-theme="light"] .gold-divider {
    border-color: rgba(184, 134, 11, 0.2);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary);
}

[data-theme="light"] .header-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .header-btn:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
}

[data-theme="light"] .sidebar-brand-text {
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-section-title {
    color: var(--text-muted);
}

/* Theme Toggle Button Animation */
#themeToggle {
    transition: transform 0.3s ease;
}

#themeToggle:hover {
    transform: rotate(15deg);
}

[data-theme="light"] #themeIcon::before {
    content: "\F5A2"; /* bi-sun-fill */
}

/* ===== ADDITIONAL LIGHT MODE FIXES ===== */

/* Text Colors */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-light {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}

/* Table Fixes */
[data-theme="light"] .table {
    color: var(--text-primary);
}

[data-theme="light"] .table td,
[data-theme="light"] .table th {
    color: var(--text-primary);
    border-color: var(--border-default);
}

[data-theme="light"] .table-custom tbody td {
    color: var(--text-primary);
    background: var(--bg-card);
}

[data-theme="light"] .table-hover tbody tr:hover td {
    background: var(--bg-hover);
}

[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background: var(--bg-primary);
}

[data-theme="light"] .dataTables_wrapper .dataTables_info,
[data-theme="light"] .dataTables_wrapper .dataTables_length,
[data-theme="light"] .dataTables_wrapper .dataTables_filter {
    color: var(--text-secondary);
}

[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gold-primary) !important;
    color: #fff !important;
    border-color: var(--gold-primary) !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* List Group */
[data-theme="light"] .list-group-item {
    background: var(--bg-card);
    border-color: var(--border-default);
    color: var(--text-primary);
}

[data-theme="light"] .list-group-item.bg-transparent {
    background: transparent !important;
}

[data-theme="light"] .list-group-item-action:hover {
    background: var(--bg-hover);
}

/* Breadcrumb */
[data-theme="light"] .breadcrumb {
    color: var(--text-secondary);
}

[data-theme="light"] .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Card Body Custom Text */
[data-theme="light"] .card-body-custom {
    color: var(--text-primary);
}

[data-theme="light"] .card-body-custom p,
[data-theme="light"] .card-body-custom span,
[data-theme="light"] .card-body-custom div {
    color: inherit;
}

/* Info Items */
[data-theme="light"] .info-item .info-value {
    color: var(--text-primary);
}

[data-theme="light"] .info-item .info-label {
    color: var(--text-muted);
}

/* Modal */
[data-theme="light"] .modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="light"] .modal-header {
    border-color: var(--border-default);
}

[data-theme="light"] .modal-footer {
    border-color: var(--border-default);
}

[data-theme="light"] .modal-title {
    color: var(--text-primary);
}

[data-theme="light"] .btn-close {
    filter: invert(0);
}

/* Badges */
[data-theme="light"] .badge.bg-dark {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .badge.bg-secondary {
    background: #6c757d !important;
    color: #fff !important;
}

/* Activity Timeline */
[data-theme="light"] .activity-timeline .activity-item {
    color: var(--text-primary);
}

[data-theme="light"] .activity-timeline .fw-medium {
    color: var(--text-primary);
}

/* Stat Cards */
[data-theme="light"] .stat-card .stat-value {
    color: var(--text-primary);
}

[data-theme="light"] .stat-card .stat-label {
    color: var(--text-secondary);
}

/* Progress Bars */
[data-theme="light"] .progress {
    background: var(--bg-primary);
}

/* Border Colors */
[data-theme="light"] .border-secondary {
    border-color: var(--border-default) !important;
}

[data-theme="light"] .border-bottom {
    border-color: var(--border-default) !important;
}

/* Customer/Deposit Detail Pages */
[data-theme="light"] .customer-stats .stat-box,
[data-theme="light"] .deposit-info-box {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .info-box {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .info-box h6,
[data-theme="light"] .info-box .fw-bold {
    color: var(--text-primary);
}

/* Transaction Cards */
[data-theme="light"] .transaction-card {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="light"] .transaction-card .transaction-amount {
    color: var(--text-primary);
}

/* Tabs */
[data-theme="light"] .nav-tabs {
    border-color: var(--border-default);
}

[data-theme="light"] .nav-tabs .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-tabs .nav-link.active {
    background: var(--bg-card);
    border-color: var(--border-default);
    color: var(--gold-primary);
}

[data-theme="light"] .nav-tabs .nav-link:hover {
    border-color: var(--border-default);
}

/* Timeline */
[data-theme="light"] .timeline-item {
    color: var(--text-primary);
}

[data-theme="light"] .timeline-item::before {
    background: var(--border-default);
}

/* Avatar */
[data-theme="light"] .avatar-sm,
[data-theme="light"] .header-user-avatar {
    background: var(--bg-primary);
    color: var(--gold-primary);
}

/* Filter Cards */
[data-theme="light"] .filter-card {
    background: var(--bg-card);
    border-color: var(--border-default);
}

/* Summary Boxes */
[data-theme="light"] .summary-box {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Tom Select */
[data-theme="light"] .ts-wrapper .ts-control {
    background: var(--bg-primary) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .ts-wrapper .ts-dropdown {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="light"] .ts-wrapper .ts-dropdown .option {
    color: var(--text-primary);
}

[data-theme="light"] .ts-wrapper .ts-dropdown .option:hover,
[data-theme="light"] .ts-wrapper .ts-dropdown .option.active {
    background: var(--bg-hover);
}

/* Inline Text in Cards */
[data-theme="light"] strong,
[data-theme="light"] b {
    color: inherit;
}

/* Fix specific page elements */
[data-theme="light"] .customer-balance,
[data-theme="light"] .deposit-amount,
[data-theme="light"] .transaction-value {
    color: var(--text-primary);
}

/* Empty State */
[data-theme="light"] .empty-state {
    color: var(--text-muted);
}

/* Chart adjustments handled via JS, but basic text */
[data-theme="light"] canvas {
    color: var(--text-primary);
}

/* Code/Pre tags */
[data-theme="light"] code {
    background: var(--bg-primary);
    color: var(--gold-primary);
}

/* Scrollbar for light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Fix rgba text colors that don't work well in light mode */
[data-theme="light"] [style*="color: rgba(255"] {
    color: var(--text-secondary) !important;
}

/* Input Group Text */
[data-theme="light"] .input-group-text {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: var(--border-default) !important;
    color: var(--gold-primary) !important;
}

/* Info Labels & Values in Detail Pages */
[data-theme="light"] .info-label,
[data-theme="light"] label.form-label,
[data-theme="light"] .detail-label {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .info-value,
[data-theme="light"] .detail-value {
    color: var(--text-primary) !important;
}

/* Row items with inline styles */
[data-theme="light"] .row[style*="border-color: rgba(255,255,255"],
[data-theme="light"] div[style*="border-color: rgba(255,255,255"] {
    border-color: var(--border-default) !important;
}

/* Modal specific overrides */
[data-theme="light"] .modal-body .list-group-item {
    background: var(--bg-primary) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

/* Customer Query Pages */
[data-theme="light"] .query-card,
[data-theme="light"] .company-card {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Settings Pages */
[data-theme="light"] .settings-item,
[data-theme="light"] .setting-row {
    border-color: var(--border-default) !important;
}

[data-theme="light"] .settings-value,
[data-theme="light"] .setting-value {
    color: var(--text-primary) !important;
}

/* Deposit Form */
[data-theme="light"] .deposit-form .form-control,
[data-theme="light"] .deposit-form .form-select {
    background: var(--bg-primary) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

/* Blacklist Alert */
[data-theme="light"] .alert-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #856404 !important;
}

/* H5, H6 in Cards */
[data-theme="light"] .card h5,
[data-theme="light"] .card h6,
[data-theme="light"] .card-body h5,
[data-theme="light"] .card-body h6 {
    color: var(--text-primary);
}

/* Small and Muted Text */
[data-theme="light"] small,
[data-theme="light"] .small {
    color: var(--text-muted);
}

[data-theme="light"] small.text-white,
[data-theme="light"] small.text-light {
    color: var(--text-secondary) !important;
}

/* Icon colors in light mode */
[data-theme="light"] .bi[style*="color: rgba(255,255,255"] {
    color: var(--text-muted) !important;
}

/* Stat boxes in customer/deposit pages */
[data-theme="light"] .stat-number,
[data-theme="light"] .stat-amount {
    color: var(--text-primary) !important;
}

[data-theme="light"] .stat-title,
[data-theme="light"] .stat-subtitle {
    color: var(--text-secondary) !important;
}

/* Timeline descriptions */
[data-theme="light"] .timeline-description,
[data-theme="light"] .log-description {
    color: var(--text-primary) !important;
}

[data-theme="light"] .timeline-date,
[data-theme="light"] .log-date {
    color: var(--text-muted) !important;
}

/* Profile page specific */
[data-theme="light"] .profile-info .info-item label {
    color: var(--text-secondary);
}

[data-theme="light"] .profile-info .info-item span {
    color: var(--text-primary);
}

/* Two Factor Auth page */
[data-theme="light"] .two-factor-form .btn-link {
    color: var(--text-muted) !important;
}

/* Company info page */
[data-theme="light"] .company-details label,
[data-theme="light"] .company-details .label {
    color: var(--text-secondary);
}

[data-theme="light"] .company-details .value {
    color: var(--text-primary);
}

/* Deposit index empty state */
[data-theme="light"] .empty-deposits,
[data-theme="light"] .no-data {
    color: var(--text-muted);
}

/* Fix inline border colors */
[data-theme="light"] [style*="border-color: rgba(255,255,255"] {
    border-color: var(--border-default) !important;
}

/* Fix inline background rgba colors */
[data-theme="light"] [style*="background: rgba(255,255,255,0.0"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.1"] {
    background: var(--bg-hover) !important;
}

/* SweetAlert2 Light Mode */
[data-theme="light"] .swal2-popup {
    background: #ffffff !important;
    color: #1a2744 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .swal2-title {
    color: #1a2744 !important;
}

[data-theme="light"] .swal2-html-container {
    color: #4a5568 !important;
}

[data-theme="light"] .swal2-content {
    color: #4a5568 !important;
}

[data-theme="light"] .swal2-input,
[data-theme="light"] .swal2-textarea,
[data-theme="light"] .swal2-select {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #1a2744 !important;
}

[data-theme="light"] .swal2-input:focus,
[data-theme="light"] .swal2-textarea:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

[data-theme="light"] .swal2-validation-message {
    background: #fef3cd !important;
    color: #856404 !important;
}

[data-theme="light"] .swal2-footer {
    border-top-color: #dee2e6 !important;
    color: #6c757d !important;
}

[data-theme="light"] .swal2-footer a {
    color: var(--gold-primary) !important;
}

[data-theme="light"] .swal2-close {
    color: #6c757d !important;
}

[data-theme="light"] .swal2-close:hover {
    color: #1a2744 !important;
}

/* SweetAlert2 Buttons Light Mode */
[data-theme="light"] .swal2-confirm {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #c9a227 100%) !important;
    color: #000 !important;
}

[data-theme="light"] .swal2-cancel {
    background: #6c757d !important;
    color: #fff !important;
}

[data-theme="light"] .swal2-deny {
    background: #dc3545 !important;
    color: #fff !important;
}

/* SweetAlert2 Timer Progress */
[data-theme="light"] .swal2-timer-progress-bar {
    background: var(--gold-primary) !important;
}

/* SweetAlert2 Toast Light Mode */
[data-theme="light"] .swal2-popup.swal2-toast {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Paragraph text */
[data-theme="light"] p {
    color: var(--text-primary);
}

[data-theme="light"] p.text-muted,
[data-theme="light"] p.text-secondary {
    color: var(--text-muted) !important;
}

/* Breadcrumb */
[data-theme="light"] .breadcrumb-item {
    color: var(--text-secondary);
}

[data-theme="light"] .breadcrumb-item.active {
    color: var(--text-muted);
}

[data-theme="light"] .breadcrumb-item a {
    color: var(--gold-primary);
}

/* Dropdown in light mode */
[data-theme="light"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-default);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-item:hover {
    background: var(--bg-hover);
}

[data-theme="light"] .dropdown-divider {
    border-color: var(--border-default);
}

/* Pagination */
[data-theme="light"] .pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-default);
    color: var(--text-primary);
}

[data-theme="light"] .pagination .page-item.active .page-link {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
}

[data-theme="light"] .pagination .page-item.disabled .page-link {
    background: var(--bg-primary);
    color: var(--text-muted);
}

/* Accordion */
[data-theme="light"] .accordion-item {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="light"] .accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background: var(--bg-hover);
    color: var(--gold-primary);
}

[data-theme="light"] .accordion-body {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Offcanvas */
[data-theme="light"] .offcanvas {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="light"] .offcanvas-header {
    border-color: var(--border-default);
}

/* Tooltip */
[data-theme="light"] .tooltip .tooltip-inner {
    background: var(--navy-dark);
    color: #fff;
}

/* Popover */
[data-theme="light"] .popover {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="light"] .popover-header {
    background: var(--bg-primary);
    border-color: var(--border-default);
    color: var(--text-primary);
}

[data-theme="light"] .popover-body {
    color: var(--text-primary);
}

/* Close button */
[data-theme="light"] .btn-close {
    filter: none;
}

/* Calculated Display Field */
.calculated-display {
    background: rgba(212, 175, 55, 0.1) !important;
    font-weight: bold !important;
    color: var(--gold-primary) !important;
}

[data-theme="light"] .calculated-display {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold-dark) !important;
}

/* Fix all remaining inline rgba(255,255,255) colors */
[data-theme="light"] span[style*="rgba(255,255,255"],
[data-theme="light"] div[style*="rgba(255,255,255"],
[data-theme="light"] a[style*="rgba(255,255,255"],
[data-theme="light"] small[style*="rgba(255,255,255"],
[data-theme="light"] p[style*="rgba(255,255,255"] {
    color: var(--text-secondary) !important;
}

/* Customer Query Pages */
[data-theme="light"] .customer-query-card {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="light"] .deposit-item,
[data-theme="light"] .company-item {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Sidebar in light mode */
[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 1px solid var(--border-default);
}

[data-theme="light"] .sidebar .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar .nav-link:hover {
    color: var(--gold-primary);
    background: var(--bg-hover);
}

[data-theme="light"] .sidebar .nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

/* Header */
[data-theme="light"] .header-wrapper,
[data-theme="light"] header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Fix hr elements */
[data-theme="light"] hr {
    border-color: var(--border-default);
    opacity: 1;
}

/* Notification/Alert banners */
[data-theme="light"] .alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #0c5460;
}

[data-theme="light"] .alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

[data-theme="light"] .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

/* Fix specific text elements */
[data-theme="light"] .text-white-50 {
    color: var(--text-muted) !important;
}

[data-theme="light"] .text-white-75 {
    color: var(--text-secondary) !important;
}

/* Icons that were using white */
[data-theme="light"] i.bi[style*="color: rgba(255,255,255"] {
    color: var(--text-muted) !important;
}

/* Fix specific card titles and labels */
[data-theme="light"] .card-title {
    color: var(--text-primary);
}

[data-theme="light"] .card-subtitle {
    color: var(--text-muted);
}

/* Deposit/Transaction Detail Labels */
[data-theme="light"] .detail-row label,
[data-theme="light"] .info-row label,
[data-theme="light"] .form-row label {
    color: var(--text-secondary);
}

[data-theme="light"] .detail-row .value,
[data-theme="light"] .info-row .value {
    color: var(--text-primary);
}

/* Table headers - ensure visibility */
[data-theme="light"] th {
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
}

/* Table cells */
[data-theme="light"] td {
    color: var(--text-primary);
}

/* Links in tables */
[data-theme="light"] td a {
    color: var(--gold-primary);
}

[data-theme="light"] td a:hover {
    color: var(--gold-dark);
}

/* ===== THEMED MODAL STYLES ===== */
/* Base modal styles for both themes */
.modal-themed {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.modal-header-themed {
    border-color: var(--border-gold);
    background: var(--bg-primary);
}

.modal-body-themed {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-footer-themed {
    border-color: var(--border-gold);
    background: var(--bg-primary);
}

/* Gold text helper */
.text-gold {
    color: var(--gold-primary) !important;
}

/* Modal themed text colors */
.modal-themed .text-muted,
.modal-themed small.text-muted {
    color: var(--text-muted) !important;
}

.modal-themed .text-light {
    color: var(--text-primary) !important;
}

/* Modal themed alert */
.modal-themed .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Light mode modal overrides */
[data-theme="light"] .modal-themed {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: #1a2744;
}

[data-theme="light"] .modal-header-themed {
    border-color: rgba(212, 175, 55, 0.2);
    background: #f8f9fa;
}

[data-theme="light"] .modal-body-themed {
    background: #ffffff;
    color: #1a2744;
}

[data-theme="light"] .modal-footer-themed {
    border-color: rgba(212, 175, 55, 0.2);
    background: #f8f9fa;
}

[data-theme="light"] .modal-themed .text-muted,
[data-theme="light"] .modal-themed small.text-muted {
    color: #6c757d !important;
}

[data-theme="light"] .modal-themed .text-light {
    color: #1a2744 !important;
}

[data-theme="light"] .modal-themed .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #0c5460;
}

[data-theme="light"] .modal-themed hr {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-themed .form-control-custom {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #1a2744;
}

[data-theme="light"] .modal-themed .form-control-custom:focus {
    background: #ffffff;
    border-color: var(--gold-primary);
}

[data-theme="light"] .modal-themed .form-control-custom::placeholder {
    color: #adb5bd;
}

[data-theme="light"] .modal-themed .form-label-custom {
    color: #495057;
}

/* Close button for themed modals */
[data-theme="light"] .modal-themed .btn-close {
    filter: none;
}

/* ========================================
   DataTables Loading & Skeleton Effects
   ======================================== */

/* DataTables Processing Overlay */
.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 16px !important;
    padding: 2rem 3rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    z-index: 100 !important;
    color: var(--text-primary) !important;
    font-size: 0 !important;
}

.dataTables_processing::before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-default);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: dtSpinner 0.8s linear infinite;
}

.dataTables_processing::after {
    content: "Yükleniyor...";
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold-primary);
    text-align: center;
    letter-spacing: 0.5px;
}

@keyframes dtSpinner {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading for Tables */
.skeleton-table {
    width: 100%;
    padding: 0.5rem;
    min-height: 300px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
}

.skeleton-row:last-child {
    border-bottom: none;
}

.skeleton-cell {
    background: linear-gradient(90deg, 
        var(--bg-hover) 0%,
        rgba(212, 175, 55, 0.15) 50%, 
        var(--bg-hover) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
    border-radius: 6px;
    height: 18px;
}

.skeleton-cell.small { width: 50px; flex-shrink: 0; }
.skeleton-cell.medium { width: 100px; flex-shrink: 0; }
.skeleton-cell.large { flex: 1; min-width: 120px; }
.skeleton-cell.badge { width: 70px; height: 26px; border-radius: 13px; flex-shrink: 0; }
.skeleton-cell.action { width: 36px; height: 30px; border-radius: 8px; flex-shrink: 0; }

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Gold Pulse Loading */
.loading-gold-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 3rem;
}

.loading-gold-pulse span {
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: goldPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.loading-gold-pulse span:nth-child(1) { animation-delay: 0s; }
.loading-gold-pulse span:nth-child(2) { animation-delay: 0.2s; }
.loading-gold-pulse span:nth-child(3) { animation-delay: 0.4s; }

@keyframes goldPulse {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Initial Table Loading State */
.table-loading {
    position: relative;
    min-height: 300px;
}

.table-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 10;
}

.table-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-default);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: dtSpinner 0.8s linear infinite;
    z-index: 11;
}

/* DataTables Fade In Animation */
.dataTables_wrapper {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Table Row Fade In */
.table-custom tbody tr {
    animation: rowFadeIn 0.3s ease-out forwards;
    opacity: 0;
}

.table-custom tbody tr:nth-child(1) { animation-delay: 0.02s; }
.table-custom tbody tr:nth-child(2) { animation-delay: 0.04s; }
.table-custom tbody tr:nth-child(3) { animation-delay: 0.06s; }
.table-custom tbody tr:nth-child(4) { animation-delay: 0.08s; }
.table-custom tbody tr:nth-child(5) { animation-delay: 0.10s; }
.table-custom tbody tr:nth-child(6) { animation-delay: 0.12s; }
.table-custom tbody tr:nth-child(7) { animation-delay: 0.14s; }
.table-custom tbody tr:nth-child(8) { animation-delay: 0.16s; }
.table-custom tbody tr:nth-child(9) { animation-delay: 0.18s; }
.table-custom tbody tr:nth-child(10) { animation-delay: 0.20s; }
.table-custom tbody tr:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Light Mode Adjustments */
[data-theme="light"] .dataTables_processing {
    background: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .dataTables_processing::before {
    border-color: #e5e7eb;
    border-top-color: var(--gold-primary);
}

[data-theme="light"] .skeleton-cell {
    background: linear-gradient(90deg, 
        #f3f4f6 25%, 
        rgba(212, 175, 55, 0.15) 50%, 
        #f3f4f6 75%
    );
    background-size: 200% 100%;
}

[data-theme="light"] .table-loading::before {
    background: #ffffff;
}

[data-theme="light"] .table-loading::after {
    border-color: #e5e7eb;
    border-top-color: var(--gold-primary);
}

