/* ============================================
   MODERN ADVANCED UI THEME
   Sophisticated Dark Design with Glassmorphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Premium Color Palette */
:root {
    /* Dark Background Gradients */
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #1e1e2e;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    
    /* Accent Colors - Premium Gradient */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-glow: rgba(99, 102, 241, 0.4);
    
    /* Status Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --info: #3b82f6;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border & Dividers */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    /* Animations */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme - Beautiful & Modern & Soft & Premium */
[data-theme="light"] {
    /* Soft, Clean Backgrounds - Airy & Spacious */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #fefefe;
    
    /* Glass Effect for Light Mode - Subtle & Elegant */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(99, 102, 241, 0.08);
    --glass-shadow: rgba(99, 102, 241, 0.04);
    
    /* Accent Colors - Vibrant & Eye-catching */
    --accent-primary: #5b5fc7;
    --accent-secondary: #7c7edb;
    --accent-gradient: linear-gradient(135deg, #5b5fc7 0%, #7c7edb 100%);
    --accent-glow: rgba(91, 95, 199, 0.15);
    
    /* Status Colors - Clear & Distinguishable */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-glow: rgba(59, 130, 246, 0.15);
    
    /* Rich Text Colors - High Contrast & Readable */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Elegant Borders - Soft Purple Accent */
    --border-primary: rgba(91, 95, 199, 0.12);
    --border-secondary: rgba(91, 95, 199, 0.06);
    --border-light: rgba(0, 0, 0, 0.05);
    
    /* Soft Shadows with Purple Tint - Premium Feel */
    --shadow-sm: 0 1px 3px rgba(91, 95, 199, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(91, 95, 199, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px rgba(91, 95, 199, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px rgba(91, 95, 199, 0.1), 0 10px 10px rgba(0, 0, 0, 0.05);
    
    /* Hover & Focus States */
    --hover-overlay: rgba(91, 95, 199, 0.04);
    --focus-ring: rgba(91, 95, 199, 0.2);
}

/* Theme Toggle Button - Enhanced */
.theme-toggle {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-primary);
    border-radius: 3rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.98);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    transition: all var(--transition-base);
    display: block;
}

.theme-toggle:hover svg {
    color: var(--accent-secondary);
    transform: rotate(20deg);
}

/* Theme toggle on pages with header */
.header + * .theme-toggle,
body:has(.header) .theme-toggle {
    top: 5rem;
}

/* Theme transition overlay animation */
.theme-transition-overlay {
    will-change: mask-image, opacity;
}

/* Ripple effect from button */
@keyframes theme-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0;
    pointer-events: none;
}

.theme-toggle.animating::before {
    animation: theme-ripple 0.6s ease-out;
}

/* Button pulse animation during theme change */
@keyframes theme-pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    30% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px transparent, var(--shadow-xl);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
}

.theme-toggle.animating {
    animation: theme-pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation animation */
@keyframes icon-rotate-out {
    from {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    to {
        transform: rotate(180deg) scale(0);
        opacity: 0;
    }
}

@keyframes icon-rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.theme-toggle svg.rotating-out {
    animation: icon-rotate-out 0.4s ease-out forwards;
}

.theme-toggle svg.rotating-in {
    animation: icon-rotate-in 0.4s ease-out forwards;
}

/* Responsive positioning */
@media (max-width: 768px) {
    .theme-toggle {
        top: 4rem;
        right: 1rem;
        padding: 0.625rem;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER - Premium Style
   ============================================ */

.header {
    background: rgba(19, 19, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header .logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.header .logout-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 0 20px var(--danger-glow);
    transform: translateY(-2px);
}

/* ============================================
   FORMS - Glassmorphism Design
   ============================================ */

.form-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-container > * {
    position: relative;
    z-index: 1;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-primary);
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.form-group input.valid-input {
    border-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-glow);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.813rem;
}

/* ============================================
   BUTTONS - Premium Interactive
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px var(--success-glow);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--success-glow);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px var(--danger-glow);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--danger-glow);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-tertiary);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   CARDS - Glass Effect
   ============================================ */

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    border-bottom: 1px solid var(--border-secondary);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-header p {
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    font-size: 0.938rem;
}

.card-body {
    color: var(--text-secondary);
}

/* ============================================
   TABLES - Modern Grid
   ============================================ */

.table-container {
    /* overflow-x: hidden; */
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.table thead th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--accent-primary);
}

.table tbody td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
    font-size: 0.938rem;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS BADGES - Sleek Pills
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-approved::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pending::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-rejected::before {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* ============================================
   ALERTS - Notification Style
   ============================================ */

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--info);
    color: var(--info);
}

/* ============================================
   FINGERPRINT DISPLAY - Special Style
   ============================================ */

.fingerprint-display {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed var(--accent-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-align: center;
    word-break: break-all;
    user-select: all;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.fingerprint-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   STATISTICS GRID - Dashboard Cards
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px var(--accent-glow);
    border-color: var(--accent-primary);
}

.stat-card h4 {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ============================================
   LOADING SPINNER - Modern
   ============================================ */

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        border-radius: 1.25rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .fingerprint-display {
        font-size: 0.875rem;
        padding: 1rem;
    }
}

/* ============================================
   SMART ALERT SYSTEM
   ============================================ */

.alert-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.smart-alert {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 300px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    position: relative;
    overflow: hidden;
}

.smart-alert::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 3s linear;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

.smart-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.smart-alert-content {
    flex: 1;
    color: var(--bg-primary);
}

.smart-alert-title {
    font-weight: 700;
    font-size: 0.938rem;
    margin-bottom: 0.125rem;
}

.smart-alert-message {
    font-size: 0.813rem;
    opacity: 0.8;
}

.smart-alert-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-alert-close:hover {
    opacity: 1;
}

/* Alert Types */
.smart-alert.alert-success {
    border-left-color: var(--success);
    color: var(--success);
}

.smart-alert.alert-error {
    border-left-color: var(--danger);
    color: var(--danger);
}

.smart-alert.alert-warning {
    border-left-color: var(--warning);
    color: var(--warning);
}

.smart-alert.alert-info {
    border-left-color: var(--info);
    color: var(--info);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .alert-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .smart-alert {
        min-width: auto;
    }
}

/* ============================================
   DATA TABLE EDITING STYLES - Compact Design
   ============================================ */

#data-table {
    font-size: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

#data-table th {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 10;
    padding: 0.625rem 0.75rem;
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#data-table th:first-child {
    border-top-left-radius: 0.5rem;
}

#data-table th:last-child {
    border-top-right-radius: 0.5rem;
}

#data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-secondary);
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

#data-table tbody tr {
    transition: all 0.15s ease;
}

#data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-cell-input {
    transition: all 0.2s;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem !important;
    min-height: 28px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.table-cell-input:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
    background: rgba(99, 102, 241, 0.1) !important;
    white-space: normal;
    position: relative;
    z-index: 5;
}

.table-cell-input:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Cell validation styles */
td[style*="rgba(239, 68, 68"] {
    border-left: 3px solid var(--danger) !important;
}

td[style*="rgba(245, 158, 11"] {
    border-left: 3px solid var(--warning) !important;
}

td[style*="rgba(16, 185, 129"] {
    border-left: 3px solid var(--success) !important;
}

/* Status column */
#data-table td:first-child {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Actions column */
#data-table td:last-child {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Compact table container */
.table-container {
    overflow: auto;
    max-height: 600px;
    border-radius: 0.75rem;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Custom scrollbar for table */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Tooltip for truncated text */
.table-cell-input[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-darkest);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-primary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Striped rows for better readability */
#data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

#data-table tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.01);
}

#upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Field label badges in headers */
.field-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    margin-left: 0.25rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

/* Column resize handle */
#data-table th {
    position: relative;
    user-select: none;
}

/* Compact button styles for table */
#data-table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.688rem;
    min-width: auto;
}

#data-table .btn-sm svg {
    width: 12px;
    height: 12px;
}

/* Expanded row styles */
.expanded-row {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expanded-row td {
    border-bottom: 2px solid var(--border-secondary) !important;
}

.main-row {
    cursor: pointer;
}

.main-row:hover {
    background: rgba(99, 102, 241, 0.03) !important;
}

/* Tighter table layout */
#data-table td {
    padding: 0.375rem 0.5rem;
}

#data-table th {
    padding: 0.5rem 0.5rem;
}

/* ============================================
   SEARCH INPUT STYLES
   ============================================ */

#user-search:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#user-search::placeholder {
    color: var(--text-muted);
}

/* ============================================
   LOGO STYLES
   ============================================ */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 20px var(--accent-glow));
}

.logo-icon.gradient {
    color: url(#logo-gradient);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sm .logo-icon {
    width: 32px;
    height: 32px;
}

.logo-sm .logo-text {
    font-size: 1.25rem;
}

.logo-lg .logo-icon {
    width: 56px;
    height: 56px;
}

.logo-lg .logo-text {
    font-size: 2rem;
}

.logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

/* Animated logo for loading states */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-animated .logo-icon {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Logo Clickable */
.logo-clickable {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-clickable:hover {
    transform: scale(1.05);
}

/* Back to Home Link */
.back-to-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-home:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.back-to-home svg {
    transition: transform 0.3s ease;
}

.back-to-home:hover svg {
    transform: translateX(-4px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* Viewing History Mode - Smaller Info */
#file-info.viewing-history {
    padding: 0.375rem 0.5rem;
    font-size: 0.688rem;
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
}

#file-info.viewing-history svg {
    width: 14px;
    height: 14px;
}

#file-info.viewing-history #file-name {
    font-size: 0.75rem;
}

#file-info.viewing-history #file-size {
    font-size: 0.688rem;
}

/* Select/Dropdown Styling */
select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
    cursor: pointer;
}

select:hover {
    border-color: var(--accent-primary) !important;
    background-color: var(--bg-tertiary) !important;
}

select:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Light Mode Specific Adjustments */
[data-theme="light"] .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .card:hover {
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-primary {
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px var(--accent-glow);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
}

[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Light mode expand/delete buttons in table */
[data-theme="light"] .expand-row-btn {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-primary) !important;
}

[data-theme="light"] .expand-row-btn:hover {
    background: var(--bg-elevated) !important;
    border-color: var(--accent-primary) !important;
    transform: scale(1.05);
}

[data-theme="light"] .expand-row-btn svg {
    color: var(--accent-primary) !important;
}

[data-theme="light"] .delete-row-btn {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

[data-theme="light"] .delete-row-btn:hover {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    transform: scale(1.05);
}

[data-theme="light"] .delete-row-btn svg {
    color: var(--danger) !important;
}

[data-theme="light"] .delete-row-btn:hover svg {
    color: #ffffff !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

[data-theme="light"] input:hover,
[data-theme="light"] textarea:hover,
[data-theme="light"] select:hover {
    border-color: rgba(91, 95, 199, 0.4);
    background: var(--bg-elevated);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

/* Table cell inputs in light mode */
[data-theme="light"] .table-cell-input {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}

[data-theme="light"] .table-cell-input:hover {
    background: rgba(99, 102, 241, 0.02) !important;
    border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .table-cell-input:focus {
    background: var(--bg-elevated) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.06) !important;
}

[data-theme="light"] .table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] #data-table {
    background: var(--bg-secondary);
}

[data-theme="light"] #data-table th {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    font-weight: 700;
}

[data-theme="light"] #data-table tbody tr {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

[data-theme="light"] #data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

[data-theme="light"] #data-table tbody tr:nth-child(even):not(.expanded-row) {
    background: rgba(241, 243, 245, 0.3);
}

[data-theme="light"] #data-table tbody tr:nth-child(even):not(.expanded-row):hover {
    background: rgba(99, 102, 241, 0.03);
}

[data-theme="light"] #data-table td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-secondary);
}

/* Light mode expandable row styling */
[data-theme="light"] .expanded-row {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.015) 0%, rgba(139, 92, 246, 0.015) 100%) !important;
    border-top: 1px solid rgba(99, 102, 241, 0.08) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08) !important;
}

[data-theme="light"] .expanded-row td {
    background: transparent !important;
}

/* Light mode expandable row inputs */
[data-theme="light"] .expanded-row input,
[data-theme="light"] .expanded-row textarea {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .expanded-row input:hover,
[data-theme="light"] .expanded-row textarea:hover {
    border-color: rgba(99, 102, 241, 0.2) !important;
    background: var(--bg-elevated) !important;
}

[data-theme="light"] .expanded-row input:focus,
[data-theme="light"] .expanded-row textarea:focus {
    border-color: var(--accent-primary) !important;
    background: var(--bg-elevated) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    outline: none;
}

/* Light mode expandable field containers */
[data-theme="light"] .expanded-row > td > div > div {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-secondary) !important;
    border-left: 3px solid var(--accent-primary) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="light"] .expanded-row > td > div > div:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border-primary) !important;
}

/* Light mode field labels */
[data-theme="light"] .expanded-row > td > div > div > div:first-child {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
}

/* Phone numbers field - yellow border */
[data-theme="light"] .expanded-row .phone-numbers-input {
    border-color: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .expanded-row .phone-numbers-input:focus {
    border-color: var(--warning) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.06) !important;
}

[data-theme="light"] .expanded-row > td > div > div:has(.phone-numbers-input) {
    border-left-color: var(--warning) !important;
}

/* Social media field - blue border */
[data-theme="light"] .expanded-row .social-input {
    border-color: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .expanded-row .social-input:focus {
    border-color: var(--info) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06) !important;
}

[data-theme="light"] .expanded-row > td > div > div:has(.socials-grid) {
    border-left-color: var(--info) !important;
    grid-column: span 2;
}

/* Light mode helper text */
[data-theme="light"] .expanded-row > td > div > div > div:last-child {
    color: var(--text-tertiary) !important;
}

/* Light Mode Alert/Notification Styling */
[data-theme="light"] .smart-alert {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-primary) !important;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="light"] .smart-alert-content {
    color: var(--text-primary) !important;
}

[data-theme="light"] .smart-alert-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .smart-alert-message {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .smart-alert.alert-success {
    border-left-color: var(--success) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-success .smart-alert-icon {
    color: var(--success) !important;
}

[data-theme="light"] .smart-alert.alert-error {
    border-left-color: var(--danger) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(239, 68, 68, 0.03) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-error .smart-alert-icon {
    color: var(--danger) !important;
}

[data-theme="light"] .smart-alert.alert-warning {
    border-left-color: var(--warning) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(245, 158, 11, 0.03) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-warning .smart-alert-icon {
    color: var(--warning) !important;
}

[data-theme="light"] .smart-alert.alert-info {
    border-left-color: var(--info) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.03) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-info .smart-alert-icon {
    color: var(--info) !important;
}

[data-theme="light"] .smart-alert-close {
    color: var(--text-tertiary) !important;
}

[data-theme="light"] .smart-alert-close:hover {
    color: var(--text-primary) !important;
}

/* Confirmation Modal Light Mode */
[data-theme="light"] .confirm-modal-overlay {
    background: rgba(10, 10, 15, 0.6) !important;
    backdrop-filter: blur(8px);
}

[data-theme="light"] .confirm-modal {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-primary) !important;
    box-shadow: var(--shadow-xl) !important;
}

[data-theme="light"] .confirm-modal-title {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

[data-theme="light"] .confirm-modal-message {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .confirm-modal-buttons .btn {
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="light"] .upload-history-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .upload-history-item.active {
    background: rgba(99, 102, 241, 0.12);
}

/* ============================================
   ENHANCED LIGHT MODE - COMPREHENSIVE IMPROVEMENTS
   ============================================ */

/* Body & Background */
[data-theme="light"] body {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    color: var(--text-primary);
}

/* Enhanced Header with Subtle Gradient */
[data-theme="light"] .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Enhanced Logo in Light Mode */
[data-theme="light"] .logo-icon {
    filter: drop-shadow(0 2px 8px var(--accent-glow));
}

[data-theme="light"] .logo:hover .logo-icon {
    filter: drop-shadow(0 4px 16px var(--accent-glow));
}

/* Enhanced Card Styling */
[data-theme="light"] .card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-primary);
}

/* Enhanced Form Elements */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):hover,
[data-theme="light"] textarea:hover,
[data-theme="light"] select:hover {
    border-color: var(--border-primary);
    background: var(--bg-elevated);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 0 0 1px var(--hover-overlay);
}

[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px var(--focus-ring), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

/* Enhanced Button Styling */
[data-theme="light"] .btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.01em;
}

[data-theme="light"] .btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--accent-glow), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 16px var(--accent-glow), 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px var(--accent-glow);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--success-glow), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
}

[data-theme="light"] .btn-success:hover {
    box-shadow: 0 4px 16px var(--success-glow), 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--danger-glow), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
}

[data-theme="light"] .btn-danger:hover {
    box-shadow: 0 4px 16px var(--danger-glow), 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Enhanced Table Styling */
[data-theme="light"] .table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: 0.75rem;
}

[data-theme="light"] #data-table {
    background: var(--bg-secondary);
}

[data-theme="light"] #data-table th {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.688rem;
    padding: 0.75rem 0.625rem;
}

[data-theme="light"] #data-table tbody tr {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

[data-theme="light"] #data-table tbody tr:hover {
    background: var(--hover-overlay);
    box-shadow: inset 0 0 0 1px var(--border-primary);
}

[data-theme="light"] #data-table tbody tr:nth-child(even):not(.expanded-row) {
    background: rgba(248, 249, 250, 0.5);
}

[data-theme="light"] #data-table tbody tr:nth-child(even):not(.expanded-row):hover {
    background: var(--hover-overlay);
}

[data-theme="light"] #data-table td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
}

/* Enhanced Table Cell Inputs */
[data-theme="light"] .table-cell-input {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
}

[data-theme="light"] .table-cell-input:hover {
    background: rgba(91, 95, 199, 0.03) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="light"] .table-cell-input:focus {
    background: var(--bg-elevated) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px var(--focus-ring) !important;
}

/* Enhanced Expandable Row Styling */
[data-theme="light"] .expanded-row {
    background: linear-gradient(135deg, rgba(91, 95, 199, 0.02) 0%, rgba(124, 126, 219, 0.02) 100%) !important;
    border-top: 1px solid var(--border-primary) !important;
    border-bottom: 2px solid var(--border-primary) !important;
}

[data-theme="light"] .expanded-row td {
    background: transparent !important;
    padding: 1.5rem 2rem !important;
}

/* Enhanced Expandable Field Containers */
[data-theme="light"] .expanded-row > td > div > div {
    background: var(--bg-elevated) !important;
    border: 1.5px solid var(--border-light) !important;
    border-left: 3px solid var(--accent-primary) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .expanded-row > td > div > div:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--border-primary) !important;
    transform: translateY(-1px);
}

/* Enhanced Field Labels */
[data-theme="light"] .expanded-row > td > div > div > div:first-child {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
    font-size: 0.625rem;
}

/* Enhanced Input Fields in Expandable Rows */
[data-theme="light"] .expanded-row input:not([readonly]),
[data-theme="light"] .expanded-row textarea:not([readonly]) {
    background: var(--bg-secondary) !important;
    border: 1.5px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .expanded-row input:not([readonly]):hover,
[data-theme="light"] .expanded-row textarea:not([readonly]):hover {
    border-color: var(--border-primary) !important;
    background: var(--bg-elevated) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 0 0 1px var(--hover-overlay);
}

[data-theme="light"] .expanded-row input:not([readonly]):focus,
[data-theme="light"] .expanded-row textarea:not([readonly]):focus {
    border-color: var(--accent-primary) !important;
    background: var(--bg-elevated) !important;
    box-shadow: 0 0 0 3px var(--focus-ring), inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    outline: none;
}

/* Phone Numbers Field - Warning Accent */
[data-theme="light"] .expanded-row > td > div > div:has(.phone-numbers-input) {
    border-left-color: var(--warning) !important;
}

[data-theme="light"] .expanded-row .phone-numbers-input:not([readonly]):focus {
    border-color: var(--warning) !important;
    box-shadow: 0 0 0 3px var(--warning-glow) !important;
}

/* Social Media Field - Info Accent */
[data-theme="light"] .expanded-row > td > div > div:has(.socials-grid) {
    border-left-color: var(--info) !important;
}

[data-theme="light"] .expanded-row .social-input:not([readonly]):focus {
    border-color: var(--info) !important;
    box-shadow: 0 0 0 3px var(--info-glow) !important;
}

/* Enhanced Action Buttons in Table */
[data-theme="light"] .expand-row-btn {
    background: var(--bg-tertiary) !important;
    border: 1.5px solid var(--border-light) !important;
    transition: all 0.2s ease;
}

[data-theme="light"] .expand-row-btn:hover:not([disabled]) {
    background: var(--bg-elevated) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 2px 8px var(--accent-glow);
    transform: scale(1.1);
}

[data-theme="light"] .expand-row-btn svg {
    color: var(--accent-primary) !important;
}

[data-theme="light"] .delete-row-btn {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.2) !important;
    transition: all 0.2s ease;
}

[data-theme="light"] .delete-row-btn:hover:not([disabled]) {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    box-shadow: 0 2px 8px var(--danger-glow);
    transform: scale(1.1);
}

[data-theme="light"] .delete-row-btn svg {
    color: var(--danger) !important;
}

[data-theme="light"] .delete-row-btn:hover:not([disabled]) svg {
    color: #ffffff !important;
}

/* Enhanced Alert/Notification System */
[data-theme="light"] .smart-alert {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: var(--shadow-xl) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .smart-alert.alert-success {
    border-left-width: 4px;
    border-left-color: var(--success) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-error {
    border-left-width: 4px;
    border-left-color: var(--danger) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-warning {
    border-left-width: 4px;
    border-left-color: var(--warning) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
}

[data-theme="light"] .smart-alert.alert-info {
    border-left-width: 4px;
    border-left-color: var(--info) !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.04) 100%) !important;
}

/* Enhanced Upload History Panel */
[data-theme="light"] .upload-history-item {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-light);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .upload-history-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

[data-theme="light"] .upload-history-item.active {
    background: linear-gradient(135deg, rgba(91, 95, 199, 0.08) 0%, rgba(124, 126, 219, 0.08) 100%);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), inset 3px 0 0 var(--accent-primary);
}

/* Enhanced Pagination */
[data-theme="light"] .pagination-controls {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

[data-theme="light"] .pagination-controls button {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    transition: all 0.2s ease;
}

[data-theme="light"] .pagination-controls button:hover:not([disabled]) {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Enhanced Search Input */
[data-theme="light"] #data-search,
[data-theme="light"] #user-search {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-light);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] #data-search:focus,
[data-theme="light"] #user-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--focus-ring), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Enhanced Confirmation Modal */
[data-theme="light"] .confirm-overlay {
    background: rgba(10, 10, 15, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .confirm-dialog {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* Enhanced Theme Toggle Button */
[data-theme="light"] #theme-toggle-button {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] #theme-toggle-button:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--focus-ring);
}

/* Enhanced Scrollbar */
[data-theme="light"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    border: 2px solid var(--bg-tertiary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

/* Enhanced Read-Only State in Light Mode */
[data-theme="light"] input[readonly],
[data-theme="light"] textarea[readonly] {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: var(--border-light) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

[data-theme="light"] button[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    filter: grayscale(40%);
}

/* Enhanced File Upload Area */
[data-theme="light"] #initial-upload {
    border: 2px dashed var(--border-primary);
    transition: all 0.3s ease;
}

[data-theme="light"] #initial-upload:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-2px);
}

/* Enhanced Status Badges */
[data-theme="light"] .status-approved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .status-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .status-declined {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Dashboard Layout */
@media (max-width: 1200px) {
    .dashboard-container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    #upload-history-panel {
        width: 100% !important;
        max-height: 300px !important;
    }
    
    .dashboard-main-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 0.5rem;
    }
    
    .table-container {
        max-height: 400px;
    }
    
    #data-table {
        font-size: 0.688rem;
    }
    
    #data-table th,
    #data-table td {
        padding: 0.375rem 0.5rem;
    }
}

/* Upload History Panel */
.upload-history-item {
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.upload-history-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(0.875rem - 3px);
}

.upload-history-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(0.875rem - 3px);
}

.upload-history-item:last-child {
    border-bottom: none;
}

.upload-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.upload-item-filename {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    flex: 1;
    margin-right: 0.5rem;
}

.upload-item-time {
    font-size: 0.688rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.upload-item-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.688rem;
}

.upload-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.188rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.upload-stat.total {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.upload-stat.valid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.upload-stat.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

#upload-history-panel {
    position: sticky;
    top: 1.5rem;
}

#upload-history-panel::-webkit-scrollbar {
    width: 6px;
}

#upload-history-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#upload-history-panel::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

#upload-history-panel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    overflow: hidden;
}

.dashboard-main-row {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
}

.dashboard-main-content {
    flex: 1;
    min-width: 0; /* Important for flex child overflow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card overflow fix */
.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Ensure table container respects parent width */
.card-body .table-container {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   READ-ONLY MODE STYLING
   ============================================ */

/* Readonly inputs in dark mode */
input[readonly],
textarea[readonly] {
    cursor: not-allowed !important;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--border-secondary) !important;
}

input[readonly]:hover,
textarea[readonly]:hover,
input[readonly]:focus,
textarea[readonly]:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--border-secondary) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Readonly inputs in light mode */
.light-mode input[readonly],
.light-mode textarea[readonly] {
    cursor: not-allowed !important;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary);
}

.light-mode input[readonly]:hover,
.light-mode textarea[readonly]:hover,
.light-mode input[readonly]:focus,
.light-mode textarea[readonly]:focus {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Disabled delete button styling */
button[disabled] {
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    filter: grayscale(50%);
}

button[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}
 
 / *   L e v e l   &   R e w a r d   A n i m a t i o n s   * / 
 
 @ k e y f r a m e s   s l i d e I n R i g h t   {   f r o m   {   t r a n s f o r m :   t r a n s l a t e X ( 1 0 0 % % ) ;   o p a c i t y :   0 ;   }   t o   {   t r a n s f o r m :   t r a n s l a t e X ( 0 ) ;   o p a c i t y :   1 ;   }   } 
 
 @ k e y f r a m e s   f a d e O u t   {   f r o m   {   o p a c i t y :   1 ;   }   t o   {   o p a c i t y :   0 ;   }   } 
 
 . l e v e l - n o t i f i c a t i o n   {   a n i m a t i o n :   s l i d e I n R i g h t   0 . 5 s   e a s e - o u t ,   f a d e O u t   0 . 5 s   e a s e - o u t   3 . 5 s ;   } 
 
 
/* Navbar User Stats Styling */
.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
    padding: 1rem 2rem;
}

/* Responsive adjustments for navbar */
@media (max-width: 1600px) {
    .header-content {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
}

/* Duplicate Counter Animation */
@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 152, 0, 0.9);
        transform: scale(1.2);
    }
}

/* Submission Loading Modal */
.submission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.submission-modal:not([style*="display: none"]) {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.submission-modal-content {
    background: linear-gradient(135deg, rgba(20, 21, 30, 0.98) 0%, rgba(30, 31, 45, 0.98) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.2);
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    position: relative;
}

.submission-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 6px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: submission-spin 1s linear infinite;
}

@keyframes submission-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submission-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.submission-modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.submission-modal-message #submission-record-count {
    font-weight: 700;
    color: var(--accent-primary);
}

.submission-progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submission-progress-dots .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: submission-dot-pulse 1.4s ease-in-out infinite;
}

.submission-progress-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.submission-progress-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.submission-progress-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes submission-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Light mode styles for submission modal */
body.light-mode .submission-modal {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode .submission-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(99, 102, 241, 0.1);
}

body.light-mode .submission-spinner {
    border-color: rgba(99, 102, 241, 0.15);
    border-top-color: var(--accent-primary);
}
