/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Enhanced Navigation Styles */
.enhanced-navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding: 0.75rem 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100000; /* Ensure header sits above content */
}

.enhanced-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    background-size: 200px 200px, 150px 150px;
    pointer-events: none;
    opacity: 0.7;
}

/* Brand Section */
.navbar-brand-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.2rem;
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Simplified Navigation - No nav links needed */

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions .action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions .action-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Notification badge removed */

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.user-profile:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #404040, #505050);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

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

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 0.7rem;
    color: #00d4ff;
    text-transform: uppercase;
    font-weight: 500;
}

.user-menu {
    position: relative;
}

/* Dropdown arrow removed */

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100001; /* Above stat cards */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.license-status {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    margin: 0.4rem 0.75rem 0.2rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.license-active { color: #00d084; }
.license-inactive { color: #ff4757; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #ffffff;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #404040;
    margin: 0.5rem 0;
}

/* License Gate */
.gate-wrapper {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(0,212,255,0.05), transparent 40%), #1a1a1a;
    z-index: 100000; /* above app */
    padding: 20px;
}

.gate-card {
    width: 100%;
    max-width: 560px;
    background: #202020;
    border: 1px solid #2f2f2f;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    color: #fff;
}

.gate-icon { font-size: 34px; color: #ff6b6b; margin-bottom: 10px; }
.gate-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.gate-text { color: #c8c8c8; margin: 0; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #2d2d2d;
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    border: 1px solid #404040;
}

.modal-header {
    background-color: #404040;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #00d4ff;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    background-color: #2d2d2d;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #1a1a1a;
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #00d4ff;
    color: #1a1a1a;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #00b8e6;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background-color: #404040;
    color: white;
    border: 1px solid #666666;
}

.btn-secondary:hover {
    background-color: #505050;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #cccccc;
}

.auth-switch a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.section-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.tracker-section {
    padding: 2rem;
}

/* Noise Texture */
.noise-texture {
    position: relative;
}

.noise-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.02) 0%, transparent 50%);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    background-position: 0 0, 50px 50px, 25px 25px;
    pointer-events: none;
    opacity: 0.6;
}

/* Table Styles */
.table-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #2c2c2c 50%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a3a;
    position: relative;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.table-dark thead th {
    background: linear-gradient(135deg, #3a3a3a 0%, #404040 50%, #3a3a3a 100%);
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1.2rem 1.25rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
}

.table-dark thead th:first-child {
    text-align: left;
}

.table-dark thead th:last-child {
    text-align: center;
    border-right: none;
}

.table-dark tbody td {
    padding: 1.4rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(1px);
    text-align: center;
}

.table-dark tbody td:first-child {
    text-align: left;
}

.table-dark tbody td:last-child {
    text-align: center;
    border-right: none;
}

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

.table-dark tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.table-dark tbody tr {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.table-dark tbody tr:hover {
    border-left-color: rgba(0, 212, 255, 0.4);
}

.profit-positive {
    color: #00ff88 !important;
}

.profit-negative {
    color: #ff4757 !important;
}

.trend-up {
    color: #00ff88;
}

.trend-down {
    color: #ff4757;
}

.trend-neutral {
    color: #ffa502;
}

/* Action Buttons */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.action-btn.btn-success {
    background-color: #00d084;
    color: #ffffff;
}

.action-btn.btn-success:hover {
    background-color: #00b874;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
}

.action-btn.btn-danger {
    background-color: #ff4757;
    color: #ffffff;
}

.action-btn.btn-danger:hover {
    background-color: #ff3742;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .fas {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row Update Animation */
.row-updating {
    background-color: #404040 !important;
    transition: background-color 0.3s ease;
}

.row-updated {
    background-color: #2d5a2d !important;
    transition: background-color 0.3s ease;
}

.price-updated {
    animation: priceFlash 0.6s ease;
}

@keyframes priceFlash {
    0% { background-color: transparent; }
    50% { background-color: #00d4ff33; }
    100% { background-color: transparent; }
}

/* Player Name Styling */
.player-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

/* Quantity Badge Styling */
.quantity-badge {
    display: inline-block;
    background: linear-gradient(135deg, #404040 0%, #4a4a4a 50%, #404040 100%);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.quantity-badge:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Price Styling */
.price-coins {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-coins::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('https://wowvendor.com/app/uploads/2024/10/coins.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Trend Styling */
.trend-indicator {
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-up {
    color: #00d084;
}

.trend-down {
    color: #ff4757;
}

.trend-neutral {
    color: #ffa502;
}

/* Updated Time Styling */
.updated-time {
    color: #999999;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Profit Styling */
.profit-amount {
    font-weight: 600;
    font-size: 1rem;
}

.profit-percentage {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}


/* No Players (Empty State) */
.no-players {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 100%), #232323;
    border-radius: 16px;
    border: 1px solid #2f2f2f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.no-players .icon-wrap {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin: 0 auto 12px;
    color: #00d4ff;
    background: linear-gradient(135deg, #00d4ff33, #00d4ff11);
    border: 1px solid #00d4ff33;
}

.no-players .icon-wrap i { font-size: 28px; }

.no-players .empty-title {
    color: #ffffff;
    margin: 0 0 6px;
    font-weight: 700;
}

.no-players .empty-sub {
    color: #c8c8c8;
    margin-bottom: 1.5rem;
}

.no-players .btn-primary {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 212, 255, 0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.no-players .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.28);
}

/* Toast Notifications - Enhanced */
.toast-container {
    position: fixed;
    top: 90px; /* slightly below the navbar */
    right: 20px;
    z-index: 200000; /* above navbar and dropdowns */
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Override Bootstrap .toast defaults */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.toast:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.toast:hover::before {
    left: 100%;
}


/* Type colors for toasts - dark theme friendly */
.toast.success {
    border-color: #00d084;
    background: linear-gradient(135deg, #133a2a 0%, #0f2e22 100%);
}

.toast.error {
    border-color: #ff4757;
    background: linear-gradient(135deg, #3a191c 0%, #2b1214 100%);
}

.toast.info {
    border-color: #00d4ff;
    background: linear-gradient(135deg, #152b3a 0%, #112131 100%);
}

.toast-header {
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important; /* override Bootstrap gray */
    border-bottom: none !important;     /* unify with card */
    padding: 8px 0 4px 0;               /* visually integrated */
}

/* Header text tint based on type */
.toast.success .toast-header { color: #a8f0c9; }
.toast.error .toast-header { color: #ff9ea6; }
.toast.info .toast-header { color: #9ad7ff; }

.toast-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.1);
}

.toast-body {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 2px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Light Theme Support */
body.light-theme {
    background-color: #f5f5f5;
    color: #333333;
}

body.light-theme .enhanced-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%) !important;
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

body.light-theme .brand-title {
    color: #333333;
}

/* Light theme nav links removed */

body.light-theme .user-name {
    color: #333333;
}

body.light-theme .toast {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .toast-header {
    color: #333333;
}

body.light-theme .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .table-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.02);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.05);
    --bs-table-border-color: rgba(0, 0, 0, 0.08);
    color: #333333;
}

body.light-theme .table-dark thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: #495057;
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
}

/* Mobile Responsive for Enhanced Header */
@media (max-width: 992px) {
    .navbar-brand-section {
        gap: 1rem;
    }
    
    .brand-status {
        display: none;
    }
    
    .navbar-actions {
        gap: 1rem;
    }
    
    .user-info {
        display: none;
    }
    
    .quick-actions .action-btn {
        width: 35px;
        height: 35px;
    }
    
    .dropdown-menu {
        right: -50px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .navbar-brand-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-profile {
        padding: 0.25rem;
        border-radius: 20px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracker-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 800px;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0;
    }

    .tracker-section {
        padding: 0.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .table {
        font-size: 0.875rem;
    }

    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #2f2f2f 50%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.stat-info p {
    color: #cccccc;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Search Input Styling */
.search-container .form-control {
    background-color: #404040;
    border: 1px solid #666666;
    color: #ffffff;
}

.search-container .form-control:focus {
    background-color: #404040;
    border-color: #00d4ff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.search-container .form-control::placeholder {
    color: #cccccc;
}

/* Readonly Form Control Styling */
.form-control-readonly {
    background-color: #2a2a2a !important;
    border: 1px solid #555555 !important;
    color: #cccccc !important;
    cursor: not-allowed;
}

.form-control-readonly:focus {
    background-color: #2a2a2a !important;
    border-color: #555555 !important;
    box-shadow: none !important;
}

/* Additional Styling */
.navbar-text {
    color: #cccccc !important;
}

.btn-outline-light {
    border-color: #666666;
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #666666;
    border-color: #666666;
    color: #ffffff;
}

/* Custom scrollbar for table */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #404040;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999999 !important;
}

.small {
    font-size: 0.875rem;
}

.hidden {
    display: none;
}
