/* ============================================
   MODERN DASHBOARD CSS - Clean & Professional
   ============================================ */

/* ============================================
   1. CSS VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
    /* Primary Color Palette - Professional Blue/Gray */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --info-50: #eff6ff;
    --info-500: #06b6d4;
    --info-600: #0891b2;
    --info-700: #0e7490;

    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */
[data-theme="dark"] {
    /* Dark Mode Background Colors */
    --gray-50: #18181b;
    --gray-100: #27272a;
    --gray-200: #3f3f46;
    --gray-300: #52525b;
    --gray-400: #71717a;
    --gray-500: #a1a1aa;
    --gray-600: #d4d4d8;
    --gray-700: #e4e4e7;
    --gray-800: #f4f4f5;
    --gray-900: #fafafa;

    /* Dark Mode Primary Colors - Lighter for better contrast */
    --primary-50: #1e293b;
    --primary-100: #1e3a8a;
    --primary-200: #1d4ed8;
    --primary-300: #2563eb;
    --primary-400: #3b82f6;
    --primary-500: #60a5fa;
    --primary-600: #93c5fd;
    --primary-700: #bfdbfe;
    --primary-800: #dbeafe;
    --primary-900: #eff6ff;

    /* Dark Mode Semantic Colors */
    --success-50: #14532d;
    --success-500: #22c55e;
    --success-600: #4ade80;
    --success-700: #86efac;

    --danger-50: #7f1d1d;
    --danger-500: #ef4444;
    --danger-600: #DC2626;
    --danger-700: #b91c1c;

    --warning-50: #78350f;
    --warning-500: #f59e0b;
    --warning-600: #fbbf24;
    --warning-700: #fcd34d;

    --info-50: #164e63;
    --info-500: #06b6d4;
    --info-600: #22d3ee;
    --info-700: #67e8f9;

    /* Dark Mode Shadows - Lighter for visibility */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   2. GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. NAVIGATION BAR
   ============================================ */
.modern-navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand:hover {
    color: var(--primary-600);
}

.navbar-logo {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color var(--transition-base);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.navbar-menu a:hover {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

.navbar-menu a.active {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-info-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name-nav {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.user-email-nav {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   4. CONTAINER & LAYOUT
   ============================================ */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
}

/* ============================================
   5. STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-icon.primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-card-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-card-icon.warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-card-icon.info {
    background: var(--info-50);
    color: var(--info-600);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.stat-card-footer {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   6. MODERN TABLE
   ============================================ */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.table-actions {
    display: flex;
    gap: var(--spacing-md);
}

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

.modern-table thead {
    background-color: var(--gray-50);
}

.modern-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color var(--transition-fast);
}

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

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

.modern-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* ============================================
   7. BADGES & STATUS INDICATORS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.badge-success {
    background-color: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
}

.badge-danger {
    background-color: var(--danger-50);
    color: var(--danger-700);
    border: 1px solid var(--danger-200);
}

.badge-warning {
    background-color: var(--warning-50);
    color: var(--warning-700);
    border: 1px solid var(--warning-200);
}

.badge-info {
    background-color: var(--info-50);
    color: var(--info-700);
    border: 1px solid var(--info-200);
}

.badge-primary {
    background-color: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* Status with pulse animation */
.badge-processing {
    position: relative;
}

.badge-processing::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ============================================
   8. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-600);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: var(--success-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-600);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--danger-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: white;
    color: var(--primary-600);
    border: 1px solid var(--primary-600);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary-50);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--gray-100);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.625rem;
    width: 2.5rem;
    height: 2.5rem;
}

/* ============================================
   9. FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-label.required::after {
    content: '*';
    color: var(--danger-500);
    margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--gray-900);
    transition: all var(--transition-base);
    font-family: var(--font-sans);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--danger-600);
    margin-top: var(--spacing-xs);
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

/* File upload area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    background-color: var(--gray-50);
    transition: all var(--transition-base);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-500);
    background-color: var(--primary-50);
}

.upload-icon {
    font-size: 1.75rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.upload-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.125rem;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-base);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-600);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* ============================================
   10. CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* ============================================
   11. MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-base);
}

.modal-overlay.show {
    display: flex;
}

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

.modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-slow);
}

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

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--spacing-sm);
    line-height: 1;
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* ============================================
   12. ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.alert-success {
    background-color: var(--success-50);
    border-color: var(--success-200);
    color: var(--success-800);
}

.alert-danger {
    background-color: var(--danger-50);
    border-color: var(--danger-200);
    color: var(--danger-800);
}

.alert-warning {
    background-color: var(--warning-50);
    border-color: var(--warning-200);
    color: var(--warning-800);
}

.alert-info {
    background-color: var(--info-50);
    border-color: var(--info-200);
    color: var(--info-800);
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-message {
    font-size: 0.875rem;
}

/* ============================================
   13. LOADING STATES
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-600);
    animation: spin 0.8s linear infinite;
}

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

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* ============================================
   14. UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

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

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

.text-primary {
    color: var(--primary-600);
}

.text-success {
    color: var(--success-600);
}

.text-danger {
    color: var(--danger-600);
}

.text-warning {
    color: var(--warning-600);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-4 {
    gap: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-4 {
    margin-top: var(--spacing-md);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-4 {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .modern-navbar {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: var(--spacing-md);
    }

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

    .modal {
        width: 95%;
    }

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

    /* Access code dashboard header - stack on mobile */
    .access-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    /* Table header - stack vertically */
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: var(--spacing-md);
    }

    .table-title {
        text-align: center;
        font-size: 1rem;
    }

    /* Table actions - wrap and center */
    .table-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* Slots badge */
    .slots-badge {
        width: 100%;
        justify-content: center;
    }

    /* Toggle container - full width */
    .table-actions > div {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Submit button - full width on mobile */
    .table-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Pagination - better for touch */
    #paginationControls {
        padding: 1rem;
    }

    #paginationControls > div {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #paginationControls .btn {
        padding: 0.5rem 1rem;
        min-height: 44px;
    }

    #pageNumbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pageNumbers button {
        min-width: 44px;
        min-height: 44px;
    }

    /* Table - horizontal scroll indicator */
    .modern-table {
        min-width: 600px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .dashboard-container {
        padding: var(--spacing-sm);
    }

    /* Hide toggle labels on very small screens */
    .table-actions label span,
    .table-actions label:not(:has(.toggle-switch)) {
        font-size: 0.75rem;
    }

    /* Smaller table title */
    .table-title {
        font-size: 0.9rem;
    }

    /* Stack pagination buttons */
    #paginationControls > div > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   16. PROFILE PAGE SPECIFIC
   ============================================ */
.profile-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    color: white;
    text-align: center;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: white;
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.profile-email {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* ============================================
   17. EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   18. SCORE DISPLAYS
   ============================================ */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.score-value.good {
    color: var(--success-600);
}

.score-value.medium {
    color: var(--warning-600);
}

.score-value.bad {
    color: var(--danger-600);
}

.score-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   19. DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.375rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--gray-200);
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-size: 1rem;
}

.theme-toggle-icon.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-200);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-300);
}

[data-theme="dark"] .theme-toggle-icon.active {
    background: var(--gray-100);
}

.theme-toggle .sun-icon {
    color: var(--warning-600);
}

.theme-toggle .moon-icon {
    color: var(--info-600);
}

/* ============================================
   20. DARK MODE OVERRIDES
   ============================================ */
/* Navigation */
[data-theme="dark"] .modern-navbar {
    background: var(--gray-100);
}

/* Stat Cards */
[data-theme="dark"] .stat-card {
    background: var(--gray-100);
}

/* Table Container & Rows */
[data-theme="dark"] .table-container {
    background: var(--gray-100);
}

[data-theme="dark"] .modern-table tbody tr {
    background-color: var(--gray-100);
}

[data-theme="dark"] .modern-table tbody tr:hover {
    background-color: var(--gray-200);
}

/* Cards */
[data-theme="dark"] .card {
    background: var(--gray-100);
}

/* Modals */
[data-theme="dark"] .modal {
    background: var(--gray-100);
}

/* Form Inputs */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

/* Outline Button */
[data-theme="dark"] .btn-outline {
    background-color: var(--gray-100);
}

/* Status Refunded Badge */
.status-refunded {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c6cb;
}

[data-theme="dark"] .status-refunded {
    background-color: #4a1d24;
    color: #fca5a5;
    border-color: #7f1d1d;
}

/* Primary text color - brighter for dark mode */
[data-theme="dark"] .text-primary {
    color: #60a5fa;
}

[data-theme="dark"] .font-semibold.text-primary {
    color: #60a5fa;
}

/* Toggle labels and general label text - brighter for dark mode */
[data-theme="dark"] label {
    color: #f4f4f5 !important;
}

/* Table header text */
[data-theme="dark"] .table-header {
    color: var(--gray-900);
}

[data-theme="dark"] .table-title {
    color: var(--gray-900);
}

/* Pagination text - brighter for dark mode */
[data-theme="dark"] #paginationControls {
    color: #f4f4f5;
}

[data-theme="dark"] #paginationControls span {
    color: #f4f4f5;
}

[data-theme="dark"] .btn-outline {
    color: #f4f4f5;
    border-color: var(--gray-400);
}

/* Page number buttons */
[data-theme="dark"] #pageNumbers button {
    color: #f4f4f5;
}

/* Primary button - vibrant blue in dark mode */
[data-theme="dark"] .btn-primary {
    background-color: #2563EB;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background-color: #1d4ed8;
}

/* Toggle switch - match primary button color in dark mode */
[data-theme="dark"] .toggle-switch input:checked + .toggle-slider {
    background-color: #2563EB;
}

/* Download/Success button - softer green in dark mode */
[data-theme="dark"] .btn-success {
    background-color: #059669;
}

[data-theme="dark"] .btn-success:hover:not(:disabled) {
    background-color: #047857;
}

/* Danger button - red in dark mode (Logout, Retry, Delete) */
[data-theme="dark"] .btn-danger {
    background-color: #DC2626;
}

[data-theme="dark"] .btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
}

/* Manual Check Toggle Styles */
.manual-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: #f5f3ff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e9d5ff;
}

.manual-toggle-slider {
    background: #d1d5db;
}

.manual-check-text {
    color: #7c3aed;
    font-weight: 500;
}

.manual-slot-count {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Dark mode for Manual Check Toggle */
[data-theme="dark"] .manual-check-label {
    background: #2e1065;
    border-color: #581c87;
    color: #e9d5ff;
}

[data-theme="dark"] .manual-toggle-slider {
    background: #4b5563;
}

[data-theme="dark"] .manual-check-text {
    color: #c4b5fd;
}

[data-theme="dark"] .manual-slot-count {
    color: #a78bfa;
}

[data-theme="dark"] .toggle-switch input:checked + .manual-toggle-slider {
    background-color: #7c3aed;
}

/* ============================================
   CHRISTMAS THEME
   ============================================ */

/* Christmas Theme Color Variables */
[data-theme="christmas"] {
    /* Christmas Color Palette */
    --christmas-red: #c41e3a;
    --christmas-red-light: #dc3545;
    --christmas-red-dark: #8b0000;
    --christmas-green: #228b22;
    --christmas-green-light: #2e8b57;
    --christmas-green-dark: #006400;
    --christmas-gold: #ffd700;
    --christmas-gold-light: #ffed4a;
    --christmas-silver: #c0c0c0;
    --christmas-snow: #fffafa;
    --christmas-night: #1a1a2e;
    --christmas-night-light: #16213e;

    /* Override gray colors to ensure text visibility in Christmas light mode */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #6b7280;
    --gray-500: #4b5563;
    --gray-600: #374151;
    --gray-700: #1f2937;
    --gray-800: #111827;
    --gray-900: #030712;

    /* Override primary colors with Christmas theme */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #c41e3a;
    --primary-600: #b91c1c;
    --primary-700: #991b1b;
    --primary-800: #7f1d1d;
    --primary-900: #450a0a;

    /* Christmas-themed semantic colors */
    --success-500: #228b22;
    --success-600: #2e8b57;
}

/* Christmas Theme - Light Mode Override */
[data-theme="christmas"] body,
[data-theme="christmas"] {
    background: linear-gradient(180deg, var(--gray-50) 0%, #f0f9ff 100%);
}

/* Christmas Navbar */
[data-theme="christmas"] .modern-navbar {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 50%, #1a472a 100%);
    border-bottom: 3px solid var(--christmas-gold);
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
}

[data-theme="christmas"] .modern-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--christmas-red) 0%,
        var(--christmas-gold) 25%,
        var(--christmas-green) 50%,
        var(--christmas-gold) 75%,
        var(--christmas-red) 100%
    );
}

[data-theme="christmas"] .navbar-brand {
    color: var(--christmas-snow) !important;
}

[data-theme="christmas"] .navbar-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="christmas"] .navbar-menu a:hover,
[data-theme="christmas"] .navbar-menu a.active {
    color: var(--christmas-gold) !important;
    background: rgba(255, 215, 0, 0.15);
}

/* Christmas Navbar User Info */
[data-theme="christmas"] .user-name-nav {
    color: #ffffff !important;
}

[data-theme="christmas"] .user-email-nav {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Christmas Cards */
[data-theme="christmas"] .stats-card,
[data-theme="christmas"] .card {
    border: 1px solid rgba(196, 30, 58, 0.15);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.08);
}

[data-theme="christmas"] .stats-card:hover,
[data-theme="christmas"] .card:hover {
    border-color: rgba(196, 30, 58, 0.25);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.12);
}

/* Christmas Buttons */
[data-theme="christmas"] .btn-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-red-dark) 100%);
    border-color: var(--christmas-red-dark);
}

[data-theme="christmas"] .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--christmas-red-light) 0%, var(--christmas-red) 100%);
}

[data-theme="christmas"] .btn-success {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
    border-color: var(--christmas-green-dark);
}

/* Christmas Stats Icons */
[data-theme="christmas"] .stats-icon {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
}

/* Christmas Table Headers */
[data-theme="christmas"] .modern-table thead th {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 100%);
    color: white;
}

/* Christmas Badges */
[data-theme="christmas"] .badge-success,
[data-theme="christmas"] .badge.badge-success {
    background: var(--christmas-green);
    color: white !important;
}

[data-theme="christmas"] .badge-primary,
[data-theme="christmas"] .badge.badge-primary {
    background: var(--christmas-red);
    color: white !important;
}

/* Fix for status badges in Christmas theme */
[data-theme="christmas"] .status-badge,
[data-theme="christmas"] [class*="badge"] {
    color: white !important;
}

/* Fix slots badge visibility in Christmas theme */
[data-theme="christmas"] .slots-badge,
[data-theme="christmas"] .slots-info {
    background: #1a472a !important;
    color: white !important;
    border-color: #ffd700 !important;
}

[data-theme="christmas"] .slots-badge *,
[data-theme="christmas"] .slots-info * {
    color: white !important;
}

html[data-theme="christmas"] .slots-badge,
html[data-theme="christmas"] .slots-badge span,
html[data-theme="christmas"] .slots-badge strong,
html[data-theme="christmas"] .slots-badge i {
    color: white !important;
}

/* Fix processing/status badges to be more visible */
[data-theme="christmas"] .badge-warning,
[data-theme="christmas"] .badge-info,
[data-theme="christmas"] .badge-processing {
    background: #b45309 !important;
    color: white !important;
}

[data-theme="christmas"] .badge-success,
[data-theme="christmas"] .badge-completed {
    background: #15803d !important;
    color: white !important;
}

[data-theme="christmas"] .badge-danger,
[data-theme="christmas"] .badge-failed,
[data-theme="christmas"] .badge-error {
    background: #b91c1c !important;
    color: white !important;
}

/* Christmas Page Title */
[data-theme="christmas"] .page-title::before {
    content: '\2744 ';
    color: var(--christmas-red);
}

[data-theme="christmas"] .page-title::after {
    content: ' \2744';
    color: var(--christmas-green);
}

/* Christmas Alert Info */
[data-theme="christmas"] .alert-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff3e0 100%);
    border-left: 4px solid var(--christmas-green);
}

/* Christmas Empty State - make text more visible */
[data-theme="christmas"] .empty-state,
[data-theme="christmas"] .empty-state h3,
[data-theme="christmas"] .empty-state p,
[data-theme="christmas"] .no-submissions,
[data-theme="christmas"] .no-data {
    color: #374151 !important;
}

[data-theme="christmas"] .empty-state .text-muted {
    color: #6b7280 !important;
}

/* Christmas Light Mode - Ensure all text is visible */
[data-theme="christmas"] h1,
[data-theme="christmas"] h2,
[data-theme="christmas"] h3,
[data-theme="christmas"] h4,
[data-theme="christmas"] h5,
[data-theme="christmas"] h6 {
    color: #1f2937 !important;
}

[data-theme="christmas"] p,
[data-theme="christmas"] span:not(.badge):not(.snowflake),
[data-theme="christmas"] label,
[data-theme="christmas"] li,
[data-theme="christmas"] td,
[data-theme="christmas"] .text-muted {
    color: #4b5563 !important;
}

/* Ensure slots badge text stays white in light mode - higher specificity to override span rule */
html[data-theme="christmas"] .table-actions .slots-badge,
html[data-theme="christmas"] .table-actions .slots-badge span,
html[data-theme="christmas"] .table-actions .slots-badge span:not(.x),
html[data-theme="christmas"] .slots-badge,
html[data-theme="christmas"] .slots-badge span,
html[data-theme="christmas"] .slots-badge * {
    color: white !important;
}

[data-theme="christmas"] .card-title,
[data-theme="christmas"] .section-title,
[data-theme="christmas"] .profile-name,
[data-theme="christmas"] .stats-value {
    color: #1f2937 !important;
}

[data-theme="christmas"] .stats-label,
[data-theme="christmas"] .card-subtitle,
[data-theme="christmas"] .form-label,
[data-theme="christmas"] .input-label {
    color: #4b5563 !important;
}

/* Form inputs in Christmas theme */
[data-theme="christmas"] input,
[data-theme="christmas"] select,
[data-theme="christmas"] textarea {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

[data-theme="christmas"] input::placeholder,
[data-theme="christmas"] textarea::placeholder {
    color: #9ca3af !important;
}

/* Info boxes and alerts in Christmas light mode */
[data-theme="christmas"] .info-box,
[data-theme="christmas"] .alert,
[data-theme="christmas"] .notice {
    color: #374151 !important;
}

[data-theme="christmas"] .info-box p,
[data-theme="christmas"] .alert p,
[data-theme="christmas"] .info-box span,
[data-theme="christmas"] .alert span {
    color: #374151 !important;
}

/* Profile page specific fixes */
[data-theme="christmas"] .profile-header h1,
[data-theme="christmas"] .profile-info h3,
[data-theme="christmas"] .topup-section h3,
[data-theme="christmas"] .topup-title {
    color: #1f2937 !important;
}

[data-theme="christmas"] .profile-email,
[data-theme="christmas"] .profile-detail,
[data-theme="christmas"] .topup-description {
    color: #4b5563 !important;
}

/* Dashboard specific fixes for Christmas theme */
[data-theme="christmas"] .table-title,
[data-theme="christmas"] .table-header h2,
[data-theme="christmas"] .section-header h2 {
    color: #1f2937 !important;
}

[data-theme="christmas"] .empty-state-title,
[data-theme="christmas"] .empty-state h3 {
    color: #374151 !important;
}

[data-theme="christmas"] .empty-state-description,
[data-theme="christmas"] .empty-state p {
    color: #4b5563 !important;
}

/* Toggle labels - Exclude bibliography/quotes - force dark text */
[data-theme="christmas"] .table-actions label,
[data-theme="christmas"] .toggle-label,
[data-theme="christmas"] .table-header label,
[data-theme="christmas"] .options-row label,
[data-theme="christmas"] .table-actions > label,
[data-theme="christmas"] .table-header .table-actions label {
    color: #1f2937 !important;
}

/* Force all labels and common text elements to be dark in Christmas theme */
html[data-theme="christmas"] label {
    color: #1f2937 !important;
}

html[data-theme="christmas"] .table-title,
html[data-theme="christmas"] h2.table-title {
    color: #1f2937 !important;
}

html[data-theme="christmas"] .empty-state-title {
    color: #374151 !important;
}

/* ============================================
   CHRISTMAS SNOWFALL ANIMATION
   ============================================ */

.christmas-snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Generate multiple snowflakes with different properties */
.snowflake:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 10s; animation-delay: 2s; font-size: 0.9rem; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 9s; animation-delay: 3s; font-size: 1.1rem; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 11s; animation-delay: 1.5s; font-size: 0.7rem; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 8s; animation-delay: 4s; font-size: 0.8rem; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 10s; animation-delay: 0.8s; font-size: 1rem; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 12s; animation-delay: 3.5s; font-size: 1.2rem; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 9s; animation-delay: 1.2s; font-size: 0.9rem; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 11s; animation-delay: 2.8s; font-size: 1.1rem; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 14s; animation-delay: 0.3s; font-size: 0.75rem; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 8s; animation-delay: 4.5s; font-size: 1.4rem; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 10s; animation-delay: 1.8s; font-size: 0.85rem; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 13s; animation-delay: 3.2s; font-size: 1rem; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 9s; animation-delay: 0.6s; font-size: 1.15rem; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 11s; animation-delay: 2.2s; font-size: 0.95rem; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 12s; animation-delay: 4.2s; font-size: 1.05rem; }
.snowflake:nth-child(20) { left: 2%; animation-duration: 10s; animation-delay: 1.7s; font-size: 0.8rem; }

/* Christmas Holiday Banner */
.christmas-banner {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 50%, #1a472a 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    border-bottom: 2px solid var(--christmas-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.christmas-banner-icon {
    font-size: 1.25rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Christmas Logo with Santa Hat */
.christmas-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.christmas-hat {
    position: absolute;
    top: -12px;
    left: -5px;
    font-size: 1.25rem;
    z-index: 10;
    animation: hat-wiggle 3s ease-in-out infinite;
}

@keyframes hat-wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Christmas Title Decorations */
.christmas-title-decoration {
    font-size: 1.25rem;
    margin: 0 0.5rem;
    animation: decoration-bounce 2s ease-in-out infinite;
}

.christmas-title-decoration:first-of-type {
    animation-delay: 0s;
}

.christmas-title-decoration:last-of-type {
    animation-delay: 0.5s;
}

@keyframes decoration-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

/* Christmas Dark Mode Adjustments */
html[data-theme="christmas"] body.christmas-dark {
    background: #0f172a !important;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

/* Ensure the main wrapper also gets dark background */
html[data-theme="christmas"] body.christmas-dark .dashboard-container,
html[data-theme="christmas"] body.christmas-dark .main-content,
html[data-theme="christmas"] body.christmas-dark main {
    background: transparent !important;
}

/* Dark background for access code dashboard wrapper */
html[data-theme="christmas"] body.christmas-dark > div:not(.christmas-snow-container):not(.access-header) {
    background: transparent !important;
}

html[data-theme="christmas"] body.christmas-dark .stats-card,
html[data-theme="christmas"] body.christmas-dark .stat-card,
html[data-theme="christmas"] body.christmas-dark .card {
    background: #1e293b !important;
    border-color: rgba(196, 30, 58, 0.3) !important;
    color: #f1f5f9 !important;
}

/* Stat card text elements in dark mode */
html[data-theme="christmas"] body.christmas-dark .stat-card-title,
html[data-theme="christmas"] body.christmas-dark .stat-card-footer {
    color: #94a3b8 !important;
}

html[data-theme="christmas"] body.christmas-dark .stat-card-value {
    color: #f8fafc !important;
}

/* Theme toggle button dark mode */
html[data-theme="christmas"] body.christmas-dark .theme-toggle {
    background: #1e293b !important;
    border-color: #475569 !important;
}

html[data-theme="christmas"] body.christmas-dark .theme-toggle .sun-icon {
    color: #fbbf24 !important;
}

html[data-theme="christmas"] body.christmas-dark .theme-toggle .moon-icon {
    color: #60a5fa !important;
}

html[data-theme="christmas"] body.christmas-dark .theme-toggle-icon.active {
    background: #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .stats-value,
html[data-theme="christmas"] body.christmas-dark .page-title,
html[data-theme="christmas"] body.christmas-dark h1,
html[data-theme="christmas"] body.christmas-dark h2,
html[data-theme="christmas"] body.christmas-dark h3 {
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark .stats-label,
html[data-theme="christmas"] body.christmas-dark .page-subtitle,
html[data-theme="christmas"] body.christmas-dark p {
    color: #94a3b8 !important;
}

html[data-theme="christmas"] body.christmas-dark .modern-table {
    background: #1e293b !important;
}

html[data-theme="christmas"] body.christmas-dark .modern-table tbody tr {
    border-color: #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .modern-table tbody tr:hover {
    background: #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .modern-table td {
    color: #e2e8f0 !important;
}

html[data-theme="christmas"] body.christmas-dark .empty-state {
    color: #94a3b8 !important;
    background: transparent !important;
}

html[data-theme="christmas"] body.christmas-dark .empty-state h3,
html[data-theme="christmas"] body.christmas-dark .empty-state-title {
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark .empty-state p,
html[data-theme="christmas"] body.christmas-dark .empty-state-description {
    color: #94a3b8 !important;
}

html[data-theme="christmas"] body.christmas-dark .empty-state i,
html[data-theme="christmas"] body.christmas-dark .empty-state .icon {
    color: #64748b !important;
}

html[data-theme="christmas"] body.christmas-dark .alert-info {
    background: linear-gradient(135deg, #1a3a28 0%, #2d3a2d 100%) !important;
    border-left-color: #22c55e !important;
    color: #d1fae5 !important;
}

/* Additional dark mode overrides for text elements */
html[data-theme="christmas"] body.christmas-dark .section-title,
html[data-theme="christmas"] body.christmas-dark label,
html[data-theme="christmas"] body.christmas-dark span:not(.badge):not(.snowflake) {
    color: #e2e8f0 !important;
}

/* Fix toggle/checkbox text in Christmas dark mode */
html[data-theme="christmas"] body.christmas-dark .upload-options span,
html[data-theme="christmas"] body.christmas-dark .upload-options label,
html[data-theme="christmas"] body.christmas-dark .options-row span,
html[data-theme="christmas"] body.christmas-dark .options-row label,
html[data-theme="christmas"] body.christmas-dark .toggle-text,
html[data-theme="christmas"] body.christmas-dark .toggle-label,
html[data-theme="christmas"] body.christmas-dark .form-check-label,
html[data-theme="christmas"] body.christmas-dark .card-header span,
html[data-theme="christmas"] body.christmas-dark .card span:not(.badge):not(.snowflake) {
    color: #f1f5f9 !important;
}

/* Table container and header dark background in Christmas dark mode */
html[data-theme="christmas"] body.christmas-dark .table-container {
    background: #1e293b !important;
    border-radius: var(--radius-lg);
}

html[data-theme="christmas"] body.christmas-dark .table-header {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* Pagination controls dark mode */
html[data-theme="christmas"] body.christmas-dark #paginationControls,
html[data-theme="christmas"] body.christmas-dark .pagination-controls,
html[data-theme="christmas"] body.christmas-dark [id="paginationControls"] {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .pagination-info,
html[data-theme="christmas"] body.christmas-dark #paginationControls span {
    color: #e2e8f0 !important;
}

html[data-theme="christmas"] body.christmas-dark .pagination-btn,
html[data-theme="christmas"] body.christmas-dark .page-btn {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

html[data-theme="christmas"] body.christmas-dark .pagination-btn:hover,
html[data-theme="christmas"] body.christmas-dark .page-btn:hover {
    background: #475569 !important;
}

html[data-theme="christmas"] body.christmas-dark .pagination-btn.active,
html[data-theme="christmas"] body.christmas-dark .page-btn.active {
    background: #c41e3a !important;
    color: white !important;
}

/* Pagination buttons - ghost and outline styles for dark mode */
html[data-theme="christmas"] body.christmas-dark #paginationControls .btn-ghost,
html[data-theme="christmas"] body.christmas-dark #paginationControls .btn-outline {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

html[data-theme="christmas"] body.christmas-dark #paginationControls .btn-ghost:hover,
html[data-theme="christmas"] body.christmas-dark #paginationControls .btn-outline:hover {
    background: #475569 !important;
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark #paginationControls .btn-primary {
    background: #c41e3a !important;
    color: white !important;
}

/* REFUNDED badge dark mode */
html[data-theme="christmas"] body.christmas-dark .badge-refunded,
html[data-theme="christmas"] body.christmas-dark .badge-secondary,
html[data-theme="christmas"] body.christmas-dark .badge-neutral {
    background: #475569 !important;
    color: #f8fafc !important;
    border: 1px solid #64748b !important;
}

/* Also fix for light mode REFUNDED badge visibility */
[data-theme="christmas"] .badge-refunded,
[data-theme="christmas"] .badge-secondary,
[data-theme="christmas"] .badge-neutral {
    background: #64748b !important;
    color: white !important;
}

/* Manual check label dark mode */
html[data-theme="christmas"] body.christmas-dark .manual-check-label {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="christmas"] body.christmas-dark .manual-check-text,
html[data-theme="christmas"] body.christmas-dark .manual-slot-count {
    color: #e2e8f0 !important;
}

html[data-theme="christmas"] body.christmas-dark .table-header h2,
html[data-theme="christmas"] body.christmas-dark .table-title {
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark .table-actions label,
html[data-theme="christmas"] body.christmas-dark .table-header label {
    color: #e2e8f0 !important;
}

/* Modal styling in Christmas dark mode - dark themed modals */
html[data-theme="christmas"] body.christmas-dark .modal,
html[data-theme="christmas"] body.christmas-dark .modal-content {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(196, 30, 58, 0.3) !important;
}

html[data-theme="christmas"] body.christmas-dark .modal-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal-footer {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal h1,
html[data-theme="christmas"] body.christmas-dark .modal h2,
html[data-theme="christmas"] body.christmas-dark .modal h3,
html[data-theme="christmas"] body.christmas-dark .modal h4,
html[data-theme="christmas"] body.christmas-dark .modal h5,
html[data-theme="christmas"] body.christmas-dark .modal-title,
html[data-theme="christmas"] body.christmas-dark .modal-header h1,
html[data-theme="christmas"] body.christmas-dark .modal-header h2,
html[data-theme="christmas"] body.christmas-dark .modal-header h3 {
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark .modal p,
html[data-theme="christmas"] body.christmas-dark .modal span:not(.badge),
html[data-theme="christmas"] body.christmas-dark .modal label,
html[data-theme="christmas"] body.christmas-dark .modal li,
html[data-theme="christmas"] body.christmas-dark .modal-body p,
html[data-theme="christmas"] body.christmas-dark .modal-body span:not(.badge),
html[data-theme="christmas"] body.christmas-dark .modal-body label,
html[data-theme="christmas"] body.christmas-dark .modal-body li {
    color: #cbd5e1 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal .text-muted {
    color: #94a3b8 !important;
}

/* Modal requirements box dark mode - fix inline style variables */
html[data-theme="christmas"] body.christmas-dark .modal-body > form > div[style*="primary-50"],
html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="background-color: var(--primary-50)"] {
    background-color: #1a3a28 !important;
    border-color: #2d5a3f !important;
}

html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="primary-50"] h4,
html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="primary-50"] span,
html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="primary-50"] strong,
html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="primary-50"] p {
    color: #e2e8f0 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="primary-50"] i {
    color: #4ade80 !important;
}

/* Force all modal body text to be visible in dark mode */
html[data-theme="christmas"] body.christmas-dark .modal-body div[style*="gray-700"],
html[data-theme="christmas"] body.christmas-dark .modal-body span[style*="gray-700"],
html[data-theme="christmas"] body.christmas-dark .modal-body [style*="color: var(--gray"] {
    color: #e2e8f0 !important;
}

/* Override CSS variables inside modals for dark mode */
html[data-theme="christmas"] body.christmas-dark .modal,
html[data-theme="christmas"] body.christmas-dark .modal-body {
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-300: #475569;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-900: #f8fafc;
    --primary-50: #1a3a28;
    --primary-200: #2d5a3f;
    --primary-600: #4ade80;
    --warning-50: #422006;
    --warning-200: #854d0e;
    --warning-700: #fbbf24;
}

/* Catch-all for modal text visibility */
html[data-theme="christmas"] body.christmas-dark .modal-body span,
html[data-theme="christmas"] body.christmas-dark .modal-body div {
    color: #e2e8f0;
}

html[data-theme="christmas"] body.christmas-dark .modal-body strong {
    color: #f8fafc !important;
}

/* Email code block in modal */
html[data-theme="christmas"] body.christmas-dark .modal-body code {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

/* Topup packages dark mode styling */
html[data-theme="christmas"] body.christmas-dark .topup-package {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="christmas"] body.christmas-dark .topup-package:hover {
    border-color: #c41e3a !important;
    background: #1e293b !important;
}

html[data-theme="christmas"] body.christmas-dark .topup-package h4,
html[data-theme="christmas"] body.christmas-dark .topup-package .package-title {
    color: #f8fafc !important;
}

html[data-theme="christmas"] body.christmas-dark .topup-package p,
html[data-theme="christmas"] body.christmas-dark .topup-package .package-description {
    color: #94a3b8 !important;
}

/* File upload area dark mode */
html[data-theme="christmas"] body.christmas-dark .file-upload-area,
html[data-theme="christmas"] body.christmas-dark .upload-area,
html[data-theme="christmas"] body.christmas-dark .dropzone {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

html[data-theme="christmas"] body.christmas-dark .file-upload-area:hover,
html[data-theme="christmas"] body.christmas-dark .upload-area:hover {
    border-color: #c41e3a !important;
    background: #1e293b !important;
}

/* Modal input fields dark mode */
html[data-theme="christmas"] body.christmas-dark .modal input,
html[data-theme="christmas"] body.christmas-dark .modal select,
html[data-theme="christmas"] body.christmas-dark .modal textarea {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal input::placeholder,
html[data-theme="christmas"] body.christmas-dark .modal textarea::placeholder {
    color: #64748b !important;
}

/* Modal close button styling */
html[data-theme="christmas"] body.christmas-dark .modal-close {
    color: #94a3b8 !important;
}

html[data-theme="christmas"] body.christmas-dark .modal-close:hover {
    color: #f8fafc !important;
}

/* =====================================================
   NEW YEAR THEME - Happy New Year 2026 Celebration
   ===================================================== */

[data-theme="newyear"] {
    /* New Year Color Palette */
    --newyear-midnight: #0c1445;
    --newyear-midnight-light: #1a237e;
    --newyear-purple: #1a0a2e;
    --newyear-purple-light: #2d1b4e;
    --newyear-gold: #ffd700;
    --newyear-gold-light: #ffed4a;
    --newyear-gold-dark: #b8860b;
    --newyear-silver: #c0c0c0;
    --newyear-silver-light: #e8e8e8;
    --newyear-champagne: #f7e7ce;
    --newyear-rose: #e8b4b8;
    --newyear-white: #ffffff;
    --newyear-night-sky: #0f0c29;
    --newyear-text-dark: #1a1a2e;
    --newyear-text-muted: #64748b;
}

/* =====================================================
   NEW YEAR LIGHT MODE (Default)
   ===================================================== */

/* Body - Light cream/champagne background */
[data-theme="newyear"] body,
[data-theme="newyear"] {
    background: linear-gradient(180deg, #f8f6f0 0%, #fdf8e8 50%, #f5f0e0 100%) !important;
    min-height: 100vh;
}

/* Navbar styling - Midnight blue with gold accents (stays dark for festive look) */
[data-theme="newyear"] .modern-navbar {
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 100%) !important;
    border-bottom: 3px solid var(--newyear-gold);
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
}

/* Festive top stripe - gold shimmer */
[data-theme="newyear"] .modern-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--newyear-gold) 0%,
        var(--newyear-silver) 25%,
        var(--newyear-gold) 50%,
        var(--newyear-silver) 75%,
        var(--newyear-gold) 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

[data-theme="newyear"] .navbar-brand {
    color: var(--newyear-white) !important;
}

[data-theme="newyear"] .navbar-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="newyear"] .navbar-menu a:hover {
    color: var(--newyear-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1) !important;
}

[data-theme="newyear"] .navbar-menu a.active {
    color: var(--newyear-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 6px;
}

[data-theme="newyear"] .user-name-nav {
    color: var(--newyear-white) !important;
}

[data-theme="newyear"] .user-email-nav {
    color: var(--newyear-silver) !important;
}

/* Cards with elegant light styling for Light Mode */
[data-theme="newyear"] .stats-card,
[data-theme="newyear"] .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.15);
}

[data-theme="newyear"] .stats-card:hover,
[data-theme="newyear"] .card:hover {
    border-color: var(--newyear-gold) !important;
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.25);
}

/* Card header styling - Light Mode */
[data-theme="newyear"] .card-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
}

[data-theme="newyear"] .card-header h3,
[data-theme="newyear"] .card-header .card-title {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] .card-header i {
    color: var(--newyear-gold-dark) !important;
}

/* Card body text - Light Mode */
[data-theme="newyear"] .card-body .form-label {
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .card-body .form-help,
[data-theme="newyear"] .card-body small {
    color: var(--newyear-text-muted) !important;
}

[data-theme="newyear"] .card-body div[style*="gray-600"] {
    color: var(--newyear-text-muted) !important;
}

/* Buttons - Gold themed */
[data-theme="newyear"] .btn-primary {
    background: linear-gradient(135deg, var(--newyear-gold) 0%, var(--newyear-gold-dark) 100%);
    border-color: var(--newyear-gold-dark);
    color: #0c1445 !important;
    font-weight: 600;
}

[data-theme="newyear"] .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--newyear-gold-light) 0%, var(--newyear-gold) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

[data-theme="newyear"] .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
}

/* Stats icons */
[data-theme="newyear"] .stats-icon {
    background: linear-gradient(135deg, var(--newyear-gold) 0%, var(--newyear-midnight-light) 100%);
}

/* Table headers */
[data-theme="newyear"] .modern-table thead th {
    background: linear-gradient(135deg, var(--newyear-midnight) 0%, var(--newyear-midnight-light) 100%) !important;
    color: var(--newyear-gold) !important;
    border-bottom: 2px solid var(--newyear-gold);
}

/* Badges */
[data-theme="newyear"] .badge-success,
[data-theme="newyear"] .badge.badge-success {
    background: #10b981;
}

[data-theme="newyear"] .badge-primary,
[data-theme="newyear"] .badge.badge-primary {
    background: var(--newyear-gold);
    color: #0c1445 !important;
}

[data-theme="newyear"] .status-badge,
[data-theme="newyear"] [class*="badge"] {
    font-weight: 600;
}

/* Slots badge styling */
[data-theme="newyear"] .slots-badge,
[data-theme="newyear"] .slots-info {
    background: transparent !important;
    color: inherit !important;
}

[data-theme="newyear"] .slots-badge *,
[data-theme="newyear"] .slots-info * {
    color: inherit !important;
}

html[data-theme="newyear"] .slots-badge,
html[data-theme="newyear"] .slots-badge span,
html[data-theme="newyear"] .slots-badge strong,
html[data-theme="newyear"] .slots-badge i {
    background: transparent !important;
    color: inherit !important;
}

/* Page title decorations - stars */
[data-theme="newyear"] .page-title::before {
    content: '✨ ';
    color: var(--newyear-gold);
}

[data-theme="newyear"] .page-title::after {
    content: ' ✨';
    color: var(--newyear-gold);
}

/* Alert styling - Light Mode */
[data-theme="newyear"] .alert-info {
    background: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid var(--newyear-gold);
    color: var(--newyear-text-dark) !important;
}

/* ===========================================
   NEW YEAR TABLE CONTAINER & CONTENT AREA (Light Mode)
   =========================================== */

/* Make the table container light for Light Mode */
[data-theme="newyear"] .table-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.1);
}

[data-theme="newyear"] .table-header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4) !important;
}

/* Table header labels and toggles - Light Mode */
[data-theme="newyear"] .table-header label,
[data-theme="newyear"] .table-actions label,
[data-theme="newyear"] .options-row label,
[data-theme="newyear"] .toggle-label,
[data-theme="newyear"] .toggle-text {
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .table-header span,
[data-theme="newyear"] .table-actions span:not(.badge),
[data-theme="newyear"] .options-row span {
    color: var(--newyear-text-dark) !important;
}

/* Table title - Light Mode */
[data-theme="newyear"] .table-title,
[data-theme="newyear"] .table-header h2,
[data-theme="newyear"] .section-header h2 {
    color: var(--newyear-midnight) !important;
}

/* Empty state styling - Light Mode */
[data-theme="newyear"] .empty-state {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

[data-theme="newyear"] .empty-state h3,
[data-theme="newyear"] .empty-state-title,
[data-theme="newyear"] .no-submissions h3 {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] .empty-state p,
[data-theme="newyear"] .empty-state-description,
[data-theme="newyear"] .no-submissions p {
    color: var(--newyear-text-muted) !important;
}

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

[data-theme="newyear"] .empty-state i,
[data-theme="newyear"] .empty-state .icon {
    color: var(--newyear-gold-dark) !important;
    opacity: 0.8;
}

/* General text colors - Light Mode */
[data-theme="newyear"] h1,
[data-theme="newyear"] h2,
[data-theme="newyear"] h3,
[data-theme="newyear"] h4,
[data-theme="newyear"] h5,
[data-theme="newyear"] h6 {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] p,
[data-theme="newyear"] span:not(.badge):not(.confetti):not(.firework):not(.sparkle),
[data-theme="newyear"] label,
[data-theme="newyear"] li,
[data-theme="newyear"] td,
[data-theme="newyear"] .text-muted {
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .card-title,
[data-theme="newyear"] .section-title,
[data-theme="newyear"] .profile-name,
[data-theme="newyear"] .stats-value {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] .stats-label,
[data-theme="newyear"] .card-subtitle,
[data-theme="newyear"] .form-label,
[data-theme="newyear"] .input-label {
    color: var(--newyear-text-muted) !important;
}

/* Form inputs - Light Mode */
[data-theme="newyear"] input,
[data-theme="newyear"] select,
[data-theme="newyear"] textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] input::placeholder,
[data-theme="newyear"] textarea::placeholder {
    color: var(--newyear-text-muted) !important;
}

/* Tables - Light Mode */
[data-theme="newyear"] .modern-table {
    background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="newyear"] .modern-table tbody tr {
    background: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="newyear"] .modern-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.15) !important;
}

[data-theme="newyear"] .modern-table td {
    color: var(--newyear-text-dark) !important;
    border-color: rgba(255, 215, 0, 0.2) !important;
}

/* ===========================================
   NEW YEAR MODAL STYLING (Light Mode)
   =========================================== */

/* Modal backdrop and container - Light Mode */
[data-theme="newyear"] .modal,
[data-theme="newyear"] .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fefcf5 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    color: var(--newyear-text-dark) !important;
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.2);
}

[data-theme="newyear"] .modal-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

[data-theme="newyear"] .modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.3) !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

[data-theme="newyear"] .modal h1,
[data-theme="newyear"] .modal h2,
[data-theme="newyear"] .modal h3,
[data-theme="newyear"] .modal h4,
[data-theme="newyear"] .modal h5,
[data-theme="newyear"] .modal-title {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] .modal p,
[data-theme="newyear"] .modal span:not(.badge),
[data-theme="newyear"] .modal label,
[data-theme="newyear"] .modal li,
[data-theme="newyear"] .modal-body p,
[data-theme="newyear"] .modal-body span:not(.badge),
[data-theme="newyear"] .modal-body label,
[data-theme="newyear"] .modal-body li {
    color: var(--newyear-text-dark) !important;
}

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

[data-theme="newyear"] .modal input,
[data-theme="newyear"] .modal select,
[data-theme="newyear"] .modal textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .modal input::placeholder,
[data-theme="newyear"] .modal textarea::placeholder {
    color: var(--newyear-text-muted) !important;
}

[data-theme="newyear"] .modal-close,
[data-theme="newyear"] .modal .btn-close,
[data-theme="newyear"] .modal .close {
    color: var(--newyear-text-muted) !important;
    filter: none;
}

/* File upload area in modals - Light Mode */
[data-theme="newyear"] .file-upload-area,
[data-theme="newyear"] .upload-area,
[data-theme="newyear"] .dropzone {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px dashed rgba(255, 215, 0, 0.5) !important;
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .file-upload-area:hover,
[data-theme="newyear"] .upload-area:hover,
[data-theme="newyear"] .dropzone:hover {
    border-color: var(--newyear-gold) !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

[data-theme="newyear"] .file-upload-area p,
[data-theme="newyear"] .file-upload-area span,
[data-theme="newyear"] .upload-area p,
[data-theme="newyear"] .upload-area span {
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .file-upload-area i,
[data-theme="newyear"] .upload-area i {
    color: var(--newyear-gold-dark) !important;
}

/* Top-up packages in modal - Light Mode */
[data-theme="newyear"] .topup-package,
[data-theme="newyear"] .package-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .topup-package:hover,
[data-theme="newyear"] .package-card:hover {
    border-color: var(--newyear-gold) !important;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.2) !important;
}

[data-theme="newyear"] .topup-package h4,
[data-theme="newyear"] .topup-package .package-title,
[data-theme="newyear"] .package-card h4 {
    color: var(--newyear-midnight) !important;
}

[data-theme="newyear"] .topup-package p,
[data-theme="newyear"] .topup-package .package-description,
[data-theme="newyear"] .package-card p {
    color: var(--newyear-text-muted) !important;
}

/* Info boxes and alerts in modals - Light Mode */
[data-theme="newyear"] .modal .alert,
[data-theme="newyear"] .modal .info-box {
    background: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid var(--newyear-gold) !important;
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .modal .alert-info {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--newyear-gold) !important;
}

[data-theme="newyear"] .modal .alert-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.6) !important;
}

[data-theme="newyear"] .modal .alert p,
[data-theme="newyear"] .modal .alert span,
[data-theme="newyear"] .modal .info-box p,
[data-theme="newyear"] .modal .info-box span {
    color: var(--newyear-text-dark) !important;
}

/* Requirements list styling - Light Mode */
[data-theme="newyear"] .modal ul li,
[data-theme="newyear"] .modal ol li {
    color: var(--newyear-text-dark) !important;
}

[data-theme="newyear"] .modal strong {
    color: var(--newyear-gold-dark) !important;
}

/* Slot info box - Light Mode */
[data-theme="newyear"] .slot-info,
[data-theme="newyear"] .credits-info {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: var(--newyear-text-dark) !important;
}

/* ===========================================
   SPECTACULAR NEW YEAR FIREWORK SHOW
   Amazing 2026 Reveal - Triggers every 30 seconds
   =========================================== */

.newyear-firework-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.newyear-firework-show.active {
    opacity: 1;
    visibility: visible;
}

/* Dark overlay for dramatic effect */
.firework-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
}

.newyear-firework-show.active .firework-overlay {
    animation: overlay-fade 8s ease-out forwards;
}

@keyframes overlay-fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Multiple firework bursts at different positions */
.firework-burst {
    position: absolute;
    width: 10px;
    height: 10px;
}

.firework-burst-1 { top: 20%; left: 20%; }
.firework-burst-2 { top: 15%; left: 75%; }
.firework-burst-3 { top: 30%; left: 50%; }
.firework-burst-4 { top: 25%; left: 35%; }
.firework-burst-5 { top: 20%; left: 65%; }

/* Firework particles */
.burst-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
}

/* First burst - Gold */
.firework-burst-1 .burst-particle { background: #ffd700; box-shadow: 0 0 6px #ffd700, 0 0 12px #ffd700; }
.newyear-firework-show.active .firework-burst-1 .burst-particle {
    animation: burst-explode 2s ease-out forwards;
    animation-delay: 0.5s;
}

/* Second burst - Red/Pink */
.firework-burst-2 .burst-particle { background: #ff6b6b; box-shadow: 0 0 6px #ff6b6b, 0 0 12px #ff6b6b; }
.newyear-firework-show.active .firework-burst-2 .burst-particle {
    animation: burst-explode 2s ease-out forwards;
    animation-delay: 1s;
}

/* Third burst - Teal/Cyan */
.firework-burst-3 .burst-particle { background: #4ecdc4; box-shadow: 0 0 6px #4ecdc4, 0 0 12px #4ecdc4; }
.newyear-firework-show.active .firework-burst-3 .burst-particle {
    animation: burst-explode 2.5s ease-out forwards;
    animation-delay: 1.5s;
}

/* Fourth burst - Purple */
.firework-burst-4 .burst-particle { background: #a855f7; box-shadow: 0 0 6px #a855f7, 0 0 12px #a855f7; }
.newyear-firework-show.active .firework-burst-4 .burst-particle {
    animation: burst-explode 2s ease-out forwards;
    animation-delay: 2s;
}

/* Fifth burst - Silver */
.firework-burst-5 .burst-particle { background: #e0e0e0; box-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.newyear-firework-show.active .firework-burst-5 .burst-particle {
    animation: burst-explode 2s ease-out forwards;
    animation-delay: 2.5s;
}

/* Particle angles - 24 particles per burst for fuller effect */
.burst-particle:nth-child(1) { --angle: 0deg; --dist: 120px; }
.burst-particle:nth-child(2) { --angle: 15deg; --dist: 100px; }
.burst-particle:nth-child(3) { --angle: 30deg; --dist: 130px; }
.burst-particle:nth-child(4) { --angle: 45deg; --dist: 110px; }
.burst-particle:nth-child(5) { --angle: 60deg; --dist: 125px; }
.burst-particle:nth-child(6) { --angle: 75deg; --dist: 105px; }
.burst-particle:nth-child(7) { --angle: 90deg; --dist: 120px; }
.burst-particle:nth-child(8) { --angle: 105deg; --dist: 115px; }
.burst-particle:nth-child(9) { --angle: 120deg; --dist: 130px; }
.burst-particle:nth-child(10) { --angle: 135deg; --dist: 100px; }
.burst-particle:nth-child(11) { --angle: 150deg; --dist: 125px; }
.burst-particle:nth-child(12) { --angle: 165deg; --dist: 110px; }
.burst-particle:nth-child(13) { --angle: 180deg; --dist: 120px; }
.burst-particle:nth-child(14) { --angle: 195deg; --dist: 105px; }
.burst-particle:nth-child(15) { --angle: 210deg; --dist: 130px; }
.burst-particle:nth-child(16) { --angle: 225deg; --dist: 115px; }
.burst-particle:nth-child(17) { --angle: 240deg; --dist: 125px; }
.burst-particle:nth-child(18) { --angle: 255deg; --dist: 100px; }
.burst-particle:nth-child(19) { --angle: 270deg; --dist: 120px; }
.burst-particle:nth-child(20) { --angle: 285deg; --dist: 110px; }
.burst-particle:nth-child(21) { --angle: 300deg; --dist: 130px; }
.burst-particle:nth-child(22) { --angle: 315deg; --dist: 105px; }
.burst-particle:nth-child(23) { --angle: 330deg; --dist: 125px; }
.burst-particle:nth-child(24) { --angle: 345deg; --dist: 115px; }

@keyframes burst-explode {
    0% {
        transform: rotate(var(--angle)) translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: rotate(var(--angle)) translateY(0) scale(1.5);
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) translateY(var(--dist)) scale(0);
        opacity: 0;
    }
}

/* Falling sparks after explosion */
.falling-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
}

.newyear-firework-show.active .spark {
    animation: spark-fall 3s ease-in forwards;
}

.spark:nth-child(1) { left: 15%; top: 25%; background: #ffd700; animation-delay: 1s; }
.spark:nth-child(2) { left: 25%; top: 20%; background: #ff6b6b; animation-delay: 1.2s; }
.spark:nth-child(3) { left: 35%; top: 30%; background: #4ecdc4; animation-delay: 1.4s; }
.spark:nth-child(4) { left: 45%; top: 25%; background: #ffd700; animation-delay: 1.6s; }
.spark:nth-child(5) { left: 55%; top: 20%; background: #a855f7; animation-delay: 1.8s; }
.spark:nth-child(6) { left: 65%; top: 28%; background: #ff6b6b; animation-delay: 2s; }
.spark:nth-child(7) { left: 75%; top: 22%; background: #4ecdc4; animation-delay: 2.2s; }
.spark:nth-child(8) { left: 85%; top: 26%; background: #ffd700; animation-delay: 2.4s; }
.spark:nth-child(9) { left: 20%; top: 35%; background: #e0e0e0; animation-delay: 2.6s; }
.spark:nth-child(10) { left: 40%; top: 32%; background: #ffd700; animation-delay: 2.8s; }
.spark:nth-child(11) { left: 60%; top: 35%; background: #ff6b6b; animation-delay: 3s; }
.spark:nth-child(12) { left: 80%; top: 30%; background: #4ecdc4; animation-delay: 3.2s; }

@keyframes spark-fall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 0 10px currentColor;
    }
    100% {
        opacity: 0;
        transform: translateY(200px) scale(0.3);
        box-shadow: 0 0 2px currentColor;
    }
}

/* SPECTACULAR 2026 Year Reveal */
.year-reveal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.year-reveal {
    font-size: 12rem;
    font-weight: 900;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
    background: linear-gradient(
        45deg,
        #ffd700 0%,
        #ffed4a 15%,
        #ff6b6b 30%,
        #ffd700 45%,
        #4ecdc4 60%,
        #a855f7 75%,
        #ffd700 90%,
        #ffed4a 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: scale(0.3);
    letter-spacing: 20px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 60px rgba(255, 107, 107, 0.6))
            drop-shadow(0 0 90px rgba(78, 205, 196, 0.4));
    position: relative;
}

.newyear-firework-show.active .year-reveal {
    animation: year-spectacular 8s ease-out forwards;
}

@keyframes year-spectacular {
    0% {
        opacity: 0;
        transform: scale(0.1);
        filter: blur(20px) drop-shadow(0 0 0 transparent);
        background-position: 0% 50%;
    }
    20% {
        opacity: 1;
        transform: scale(1.3);
        filter: blur(0) drop-shadow(0 0 50px rgba(255, 215, 0, 1))
                drop-shadow(0 0 100px rgba(255, 107, 107, 0.8));
        background-position: 50% 50%;
    }
    30% {
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
    }
    70% {
        opacity: 1;
        transform: scale(1);
        background-position: 50% 50%;
    }
    85% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
        filter: blur(10px) drop-shadow(0 0 100px rgba(255, 215, 0, 0));
        background-position: 0% 50%;
    }
}

/* Happy New Year text under 2026 */
.happy-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    opacity: 0;
    margin-top: -20px;
    letter-spacing: 8px;
}

.newyear-firework-show.active .happy-text {
    animation: happy-appear 8s ease-out forwards;
}

@keyframes happy-appear {
    0%, 15% {
        opacity: 0;
        transform: translateY(20px);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Glowing ring around 2026 */
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 3px solid transparent;
    opacity: 0;
}

.newyear-firework-show.active .glow-ring {
    animation: ring-expand 8s ease-out forwards;
}

@keyframes ring-expand {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        border-color: #ffd700;
        box-shadow: 0 0 50px #ffd700, inset 0 0 50px #ffd700;
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        border-color: #ff6b6b;
        box-shadow: 0 0 80px #ff6b6b, inset 0 0 30px #ff6b6b;
    }
    40% {
        border-color: #4ecdc4;
        box-shadow: 0 0 60px #4ecdc4, inset 0 0 20px #4ecdc4;
    }
    60% {
        border-color: #a855f7;
        box-shadow: 0 0 40px #a855f7, inset 0 0 10px #a855f7;
    }
    80% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 0 transparent;
    }
}

/* Sparkle stars around the display */
.sparkle-star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
}

.newyear-firework-show.active .sparkle-star {
    animation: star-twinkle 4s ease-out forwards;
}

.sparkle-star:nth-child(1) { top: 20%; left: 10%; animation-delay: 0.5s; color: #ffd700; }
.sparkle-star:nth-child(2) { top: 15%; left: 90%; animation-delay: 0.8s; color: #ff6b6b; }
.sparkle-star:nth-child(3) { top: 40%; left: 5%; animation-delay: 1.1s; color: #4ecdc4; }
.sparkle-star:nth-child(4) { top: 35%; left: 95%; animation-delay: 1.4s; color: #a855f7; }
.sparkle-star:nth-child(5) { top: 60%; left: 8%; animation-delay: 1.7s; color: #ffd700; }
.sparkle-star:nth-child(6) { top: 55%; left: 92%; animation-delay: 2s; color: #ff6b6b; }
.sparkle-star:nth-child(7) { top: 75%; left: 15%; animation-delay: 2.3s; color: #4ecdc4; }
.sparkle-star:nth-child(8) { top: 70%; left: 85%; animation-delay: 2.6s; color: #e0e0e0; }

@keyframes star-twinkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    40% {
        transform: scale(1) rotate(360deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.3) rotate(540deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(720deg);
    }
}

/* ===========================================
   MOBILE RESPONSIVE - Firework Animation
   =========================================== */

/* Tablet devices */
@media (max-width: 1024px) {
    .year-reveal {
        font-size: 8rem;
        letter-spacing: 12px;
    }

    .happy-text {
        font-size: 2rem;
        letter-spacing: 6px;
    }

    .glow-ring {
        width: 400px;
        height: 400px;
    }

    .firework-burst {
        transform: scale(0.8);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .year-reveal {
        font-size: 5rem;
        letter-spacing: 8px;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 40px rgba(255, 107, 107, 0.6));
    }

    .happy-text {
        font-size: 1.25rem;
        letter-spacing: 4px;
        margin-top: -10px;
    }

    .glow-ring {
        width: 280px;
        height: 280px;
    }

    .firework-burst {
        transform: scale(0.6);
    }

    /* Reposition firework bursts for mobile */
    .firework-burst-1 { top: 15%; left: 25%; }
    .firework-burst-2 { top: 10%; left: 75%; }
    .firework-burst-3 { top: 25%; left: 50%; }
    .firework-burst-4 { top: 20%; left: 35%; }
    .firework-burst-5 { top: 15%; left: 65%; }

    .sparkle-star {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .year-reveal {
        font-size: 3.5rem;
        letter-spacing: 5px;
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 30px rgba(255, 107, 107, 0.5));
    }

    .happy-text {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-top: -5px;
    }

    .glow-ring {
        width: 200px;
        height: 200px;
    }

    .firework-burst {
        transform: scale(0.4);
    }

    /* Hide some firework bursts on very small screens */
    .firework-burst-4,
    .firework-burst-5 {
        display: none;
    }

    /* Hide some sparkle stars on small screens */
    .sparkle-star:nth-child(3),
    .sparkle-star:nth-child(4),
    .sparkle-star:nth-child(7),
    .sparkle-star:nth-child(8) {
        display: none;
    }

    .sparkle-star {
        font-size: 0.875rem;
    }
}

/* ===========================================
   FLOATING HAPPY NEW YEAR TRIGGER BUTTON
   Always visible - Click to trigger animation
   =========================================== */

.newyear-trigger-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 100%);
    border: 2px solid var(--newyear-gold);
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3),
                0 0 30px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    animation: gentle-glow 2s ease-in-out infinite;
}

.newyear-trigger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5),
                0 0 50px rgba(255, 215, 0, 0.2);
    border-color: var(--newyear-gold-light);
}

.newyear-trigger-btn:active {
    transform: scale(0.98);
}

@keyframes gentle-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3),
                    0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.5),
                    0 0 40px rgba(255, 215, 0, 0.2);
    }
}

.newyear-trigger-icon {
    font-size: 1.5rem;
    animation: icon-bounce 1.5s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.newyear-trigger-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Tablet - slightly smaller */
@media (max-width: 1024px) {
    .newyear-trigger-btn {
        padding: 10px 16px;
    }

    .newyear-trigger-icon {
        font-size: 1.25rem;
    }

    .newyear-trigger-text {
        font-size: 0.8125rem;
    }
}

/* Mobile - compact version */
@media (max-width: 768px) {
    .newyear-trigger-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        gap: 6px;
    }

    .newyear-trigger-icon {
        font-size: 1.125rem;
    }

    .newyear-trigger-text {
        font-size: 0.75rem;
    }
}

/* Small mobile - icon only with abbreviated text */
@media (max-width: 480px) {
    .newyear-trigger-btn {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        gap: 5px;
    }

    .newyear-trigger-icon {
        font-size: 1rem;
    }

    .newyear-trigger-text {
        font-size: 0.6875rem;
    }
}

/* Very small screens - show only icon */
@media (max-width: 360px) {
    .newyear-trigger-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .newyear-trigger-text {
        display: none;
    }

    .newyear-trigger-icon {
        font-size: 1.25rem;
    }
}

/* New Year banner styling */
.newyear-banner {
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 50%, #1a0a2e 100%);
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--newyear-gold);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
}

.newyear-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.newyear-banner-icon {
    font-size: 1.8rem;
    animation: bounce-icon 1s ease-in-out infinite;
}

.newyear-banner-icon:first-child {
    animation-delay: 0s;
}

.newyear-banner-icon:last-child {
    animation-delay: 0.5s;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.newyear-banner-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--newyear-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* =====================================================
   NEW YEAR DARK MODE VARIANT
   ===================================================== */

html[data-theme="newyear"] body.newyear-dark {
    background: linear-gradient(180deg, #050714 0%, #0a0515 50%, #030208 100%) !important;
}

html[data-theme="newyear"] body.newyear-dark .dashboard-container,
html[data-theme="newyear"] body.newyear-dark .main-content,
html[data-theme="newyear"] body.newyear-dark main {
    background: transparent !important;
}

html[data-theme="newyear"] body.newyear-dark .stats-card,
html[data-theme="newyear"] body.newyear-dark .stat-card,
html[data-theme="newyear"] body.newyear-dark .card {
    background: rgba(12, 20, 69, 0.6) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card header styling - Dark mode */
html[data-theme="newyear"] body.newyear-dark .card-header {
    background: rgba(12, 20, 69, 0.8) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .card-header h3,
html[data-theme="newyear"] body.newyear-dark .card-header .card-title {
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .card-header i {
    color: var(--newyear-gold) !important;
}

/* Card body styling - Dark mode */
html[data-theme="newyear"] body.newyear-dark .card-body {
    background: transparent !important;
}

/* Override CSS variables inside cards for dark mode */
html[data-theme="newyear"] body.newyear-dark .card,
html[data-theme="newyear"] body.newyear-dark .card-body {
    --gray-50: #1a0a2e;
    --gray-100: #0c1445;
    --gray-200: rgba(255, 215, 0, 0.3);
    --gray-300: #6b7280;
    --gray-500: #e2e8f0;
    --gray-600: #e2e8f0;
    --gray-700: #e2e8f0;
    --gray-900: #ffffff;
    --primary-600: #ffd700;
}

/* Card body inline styled text visibility - Dark mode */
html[data-theme="newyear"] body.newyear-dark .card-body div,
html[data-theme="newyear"] body.newyear-dark .card-body span:not(.badge) {
    color: #e2e8f0;
}

html[data-theme="newyear"] body.newyear-dark .card-body div[style*="font-weight: 600"],
html[data-theme="newyear"] body.newyear-dark .card-body div[style*="font-weight: 700"] {
    color: #ffffff !important;
}

html[data-theme="newyear"] body.newyear-dark .card-body div[style*="primary-600"] {
    color: var(--newyear-gold) !important;
}

/* Form labels and inputs in cards - Dark mode */
html[data-theme="newyear"] body.newyear-dark .card-body .form-label {
    color: var(--newyear-silver-light) !important;
}

html[data-theme="newyear"] body.newyear-dark .card-body .form-help,
html[data-theme="newyear"] body.newyear-dark .card-body small {
    color: var(--newyear-silver) !important;
}

/* Navbar active link fix - Dark mode */
html[data-theme="newyear"] body.newyear-dark .navbar-menu a.active {
    background: rgba(255, 215, 0, 0.15) !important;
    color: var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .navbar-menu a {
    background: transparent !important;
}

html[data-theme="newyear"] body.newyear-dark .stat-card-title,
html[data-theme="newyear"] body.newyear-dark .stat-card-footer {
    color: var(--newyear-silver) !important;
}

html[data-theme="newyear"] body.newyear-dark .stat-card-value {
    color: var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .theme-toggle {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .stats-value,
html[data-theme="newyear"] body.newyear-dark .page-title,
html[data-theme="newyear"] body.newyear-dark h1,
html[data-theme="newyear"] body.newyear-dark h2,
html[data-theme="newyear"] body.newyear-dark h3 {
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .stats-label,
html[data-theme="newyear"] body.newyear-dark .page-subtitle,
html[data-theme="newyear"] body.newyear-dark p {
    color: var(--newyear-silver) !important;
}

html[data-theme="newyear"] body.newyear-dark .modern-table {
    background: rgba(12, 20, 69, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .modern-table tbody tr {
    background: rgba(12, 20, 69, 0.3) !important;
}

html[data-theme="newyear"] body.newyear-dark .modern-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1) !important;
}

html[data-theme="newyear"] body.newyear-dark .modern-table td {
    color: var(--newyear-silver-light) !important;
}

html[data-theme="newyear"] body.newyear-dark .empty-state {
    background: rgba(12, 20, 69, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .empty-state h3,
html[data-theme="newyear"] body.newyear-dark .empty-state-title {
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .empty-state p,
html[data-theme="newyear"] body.newyear-dark .empty-state-description {
    color: var(--newyear-silver) !important;
}

html[data-theme="newyear"] body.newyear-dark .alert-info {
    background: rgba(12, 20, 69, 0.5) !important;
    border-left: 4px solid var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .section-title,
html[data-theme="newyear"] body.newyear-dark label,
html[data-theme="newyear"] body.newyear-dark span:not(.badge):not(.firework):not(.sparkle) {
    color: var(--newyear-silver-light) !important;
}

html[data-theme="newyear"] body.newyear-dark .table-container {
    background: rgba(12, 20, 69, 0.3) !important;
}

html[data-theme="newyear"] body.newyear-dark .table-header {
    background: rgba(12, 20, 69, 0.4) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
}

/* Manual Check Toggle - Dark mode */
html[data-theme="newyear"] body.newyear-dark .manual-check-label {
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #e9d5ff !important;
}

html[data-theme="newyear"] body.newyear-dark .manual-check-text {
    color: #c4b5fd !important;
}

html[data-theme="newyear"] body.newyear-dark .manual-slot-count {
    color: #a78bfa !important;
}

html[data-theme="newyear"] body.newyear-dark .manual-toggle-slider {
    background: #4b5563 !important;
}

html[data-theme="newyear"] body.newyear-dark .toggle-switch input:checked + .manual-toggle-slider {
    background-color: #7c3aed !important;
}

html[data-theme="newyear"] body.newyear-dark #paginationControls,
html[data-theme="newyear"] body.newyear-dark .pagination-controls {
    background: rgba(12, 20, 69, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .pagination-info,
html[data-theme="newyear"] body.newyear-dark #paginationControls span {
    color: var(--newyear-silver) !important;
}

html[data-theme="newyear"] body.newyear-dark .pagination-btn,
html[data-theme="newyear"] body.newyear-dark .page-btn {
    background: rgba(255, 215, 0, 0.1) !important;
    color: var(--newyear-silver-light) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .pagination-btn:hover,
html[data-theme="newyear"] body.newyear-dark .page-btn:hover {
    background: rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .pagination-btn.active,
html[data-theme="newyear"] body.newyear-dark .page-btn.active {
    background: var(--newyear-gold) !important;
    color: #0c1445 !important;
}

/* Slots badge icon visibility - Dark mode */
html[data-theme="newyear"] body.newyear-dark .slots-badge,
html[data-theme="newyear"] body.newyear-dark .slots-info {
    color: var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .slots-badge i,
html[data-theme="newyear"] body.newyear-dark .slots-info i {
    color: var(--newyear-gold) !important;
}

html[data-theme="newyear"] body.newyear-dark .slots-badge span,
html[data-theme="newyear"] body.newyear-dark .slots-info span {
    color: var(--newyear-silver-light) !important;
}

/* Processing/Warning badge - Dark mode friendly */
html[data-theme="newyear"] body.newyear-dark .badge-warning,
html[data-theme="newyear"] body.newyear-dark .badge-processing {
    background: rgba(234, 179, 8, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
}

/* Other badge types - Dark mode */
html[data-theme="newyear"] body.newyear-dark .badge-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .badge-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .badge-info {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .badge-primary {
    background: rgba(255, 215, 0, 0.2) !important;
    color: var(--newyear-gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
}

/* Modal styling for New Year theme */
html[data-theme="newyear"] body.newyear-dark .modal,
html[data-theme="newyear"] body.newyear-dark .modal-content {
    background: linear-gradient(180deg, #0c1445 0%, #1a0a2e 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal h1,
html[data-theme="newyear"] body.newyear-dark .modal h2,
html[data-theme="newyear"] body.newyear-dark .modal h3,
html[data-theme="newyear"] body.newyear-dark .modal h4,
html[data-theme="newyear"] body.newyear-dark .modal h5,
html[data-theme="newyear"] body.newyear-dark .modal-title {
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal p,
html[data-theme="newyear"] body.newyear-dark .modal span:not(.badge),
html[data-theme="newyear"] body.newyear-dark .modal label,
html[data-theme="newyear"] body.newyear-dark .modal-body p,
html[data-theme="newyear"] body.newyear-dark .modal-body span:not(.badge) {
    color: var(--newyear-silver-light) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal input,
html[data-theme="newyear"] body.newyear-dark .modal select,
html[data-theme="newyear"] body.newyear-dark .modal textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package {
    background: rgba(12, 20, 69, 0.5) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package:hover {
    border-color: var(--newyear-gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package h4,
html[data-theme="newyear"] body.newyear-dark .topup-package .package-title {
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark .file-upload-area,
html[data-theme="newyear"] body.newyear-dark .upload-area,
html[data-theme="newyear"] body.newyear-dark .dropzone {
    background: rgba(12, 20, 69, 0.4) !important;
    border: 2px dashed rgba(255, 215, 0, 0.3) !important;
}

html[data-theme="newyear"] body.newyear-dark .file-upload-area:hover,
html[data-theme="newyear"] body.newyear-dark .upload-area:hover {
    border-color: var(--newyear-gold) !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

/* Dark mode - Form inputs */
html[data-theme="newyear"] body.newyear-dark input,
html[data-theme="newyear"] body.newyear-dark select,
html[data-theme="newyear"] body.newyear-dark textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: var(--newyear-white) !important;
}

html[data-theme="newyear"] body.newyear-dark input::placeholder,
html[data-theme="newyear"] body.newyear-dark textarea::placeholder {
    color: var(--newyear-silver) !important;
}

/* Dark mode - Empty state icon */
html[data-theme="newyear"] body.newyear-dark .empty-state i,
html[data-theme="newyear"] body.newyear-dark .empty-state .icon {
    color: var(--newyear-gold) !important;
}

/* Dark mode - Table header labels */
html[data-theme="newyear"] body.newyear-dark .table-header h2,
html[data-theme="newyear"] body.newyear-dark .table-title {
    color: var(--newyear-white) !important;
}

/* Dark mode - Slots and Credits info boxes */
html[data-theme="newyear"] body.newyear-dark .slot-info,
html[data-theme="newyear"] body.newyear-dark .credits-info {
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: var(--newyear-silver-light) !important;
}

/* ===========================================
   NEW YEAR DARK MODE - Modal CSS Variable Overrides
   Fixes inline style text visibility in dark modals
   =========================================== */

/* Override CSS variables inside modals for dark mode */
html[data-theme="newyear"] body.newyear-dark .modal,
html[data-theme="newyear"] body.newyear-dark .modal-body {
    --gray-50: #1a0a2e;
    --gray-100: #0c1445;
    --gray-200: rgba(255, 215, 0, 0.3);
    --gray-300: #6b7280;
    --gray-500: #e2e8f0;
    --gray-600: #e2e8f0;
    --gray-700: #e2e8f0;
    --gray-900: #ffffff;
    --primary-50: rgba(255, 215, 0, 0.15);
    --primary-200: rgba(255, 215, 0, 0.4);
    --primary-600: #ffd700;
    --warning-50: rgba(255, 193, 7, 0.15);
    --warning-200: rgba(255, 193, 7, 0.4);
    --warning-700: #ffc107;
    --info-50: rgba(139, 92, 246, 0.15);
    --info-200: rgba(139, 92, 246, 0.4);
}

/* Requirements box in modal - make text visible */
html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"],
html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="background-color: var(--primary-50)"] {
    background: rgba(255, 215, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"] h4,
html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"] span,
html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"] strong,
html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"] div {
    color: #e2e8f0 !important;
}

html[data-theme="newyear"] body.newyear-dark .modal-body div[style*="primary-50"] i {
    color: #ffd700 !important;
}

/* Catch-all for modal text visibility */
html[data-theme="newyear"] body.newyear-dark .modal-body span,
html[data-theme="newyear"] body.newyear-dark .modal-body div:not(.burst-particle):not(.spark):not(.sparkle-star) {
    color: #e2e8f0;
}

html[data-theme="newyear"] body.newyear-dark .modal-body strong {
    color: #ffffff !important;
}

/* Alert boxes in modals */
html[data-theme="newyear"] body.newyear-dark .modal .alert,
html[data-theme="newyear"] body.newyear-dark .modal .alert-info,
html[data-theme="newyear"] body.newyear-dark .modal .alert-warning {
    background: rgba(255, 215, 0, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

html[data-theme="newyear"] body.newyear-dark .modal .alert .alert-content,
html[data-theme="newyear"] body.newyear-dark .modal .alert .alert-message,
html[data-theme="newyear"] body.newyear-dark .modal .alert .alert-title {
    color: #e2e8f0 !important;
}

html[data-theme="newyear"] body.newyear-dark .modal .alert-icon {
    color: #ffd700 !important;
}

/* Top-up package cards - fix grey text visibility */
html[data-theme="newyear"] body.newyear-dark .topup-package div,
html[data-theme="newyear"] body.newyear-dark .topup-package span {
    color: #e2e8f0 !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="font-size: 1.25rem"],
html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="font-weight: 700"] {
    color: #ffffff !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="font-size: 0.875rem"],
html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="gray-500"] {
    color: #cbd5e1 !important;
}

html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="primary-600"],
html[data-theme="newyear"] body.newyear-dark .topup-package div[style*="font-size: 1.5rem"] {
    color: #ffd700 !important;
}

/* Modal close button */
html[data-theme="newyear"] body.newyear-dark .modal-close {
    color: #94a3b8 !important;
}

html[data-theme="newyear"] body.newyear-dark .modal-close:hover {
    color: #ffffff !important;
}

/* Modal paragraph text */
html[data-theme="newyear"] body.newyear-dark .modal-body > p,
html[data-theme="newyear"] body.newyear-dark .modal-body p[style*="gray-600"] {
    color: #e2e8f0 !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        opacity: 0.5;
    }

    .christmas-banner-icon {
        animation: none;
    }

    .firework,
    .sparkle {
        animation: none;
        opacity: 0.5;
    }

    .newyear-banner-text {
        animation: none;
    }

    [data-theme="newyear"] .modern-navbar::before {
        animation: none;
    }
}
