/* ========================================
   Shangti Dashboard - Theme CSS
   Modern/Minimalist Design System
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Variables - Light Mode (Default)
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;

    /* Secondary */
    --secondary: #64748b;
    --secondary-hover: #475569;

    /* Accent */
    --accent: #0ea5e9;
    --accent-hover: #0284c7;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;

    /* Gray Scale */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Background & Surface */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-elevated: #ffffff;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Borders */
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ========================================
   Dark Mode Variables
   ======================================== */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --bg-elevated: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #334155;
    --border-color-hover: #475569;

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);

    --gradient-subtle: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* ========================================
   Links
   ======================================== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ========================================
   Navbar
   ======================================== */
.navbar-custom {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
    border: none;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom .navbar-brand i {
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-custom .navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* User badge in navbar */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

.card-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Video Cards */
.video-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.video-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--gray-900);
}

.video-card .video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card .play-button {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: scale(0.9);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.video-card:hover .play-button {
    transform: scale(1);
}

.video-card .play-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.video-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.video-card .video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.video-card .video-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
    background: var(--gray-700);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--gray-600);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: transparent;
}

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

.btn-outline-secondary {
    color: var(--secondary);
    border: 1.5px solid var(--border-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
}

.btn-outline-danger {
    color: var(--danger);
    border: 1.5px solid var(--danger);
    background: transparent;
}

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

.btn-outline-warning {
    color: var(--warning);
    border: 1.5px solid var(--warning);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white;
}

.btn-outline-info {
    color: var(--info);
    border: 1.5px solid var(--info);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info);
    color: white;
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* Button Group */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.btn-group .btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* ========================================
   Forms
   ======================================== */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

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

[data-theme="dark"] .form-control {
    background: var(--gray-800);
}

/* Input Group */
.input-group {
    border-radius: var(--radius-md);
}

.input-group .input-group-text {
    background: var(--bg-surface-hover);
    border: 1.5px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

[data-theme="dark"] .input-group .input-group-text {
    background: var(--gray-700);
}

.input-group .form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Form Text */
.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* Checkbox & Radio */
.form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.bg-success {
    background: var(--success) !important;
}

.bg-warning {
    background: var(--warning) !important;
}

.bg-danger {
    background: var(--danger) !important;
}

.bg-info {
    background: var(--info) !important;
}

.bg-secondary {
    background: var(--secondary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

/* Admin Badge */
.badge-admin {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* ========================================
   Modals
   ======================================== */
.modal-content {
    background: var(--bg-surface);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    background: var(--gradient-subtle);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.btn-close {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

/* ========================================
   Tables
   ======================================== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-surface-hover);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

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

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.alert-info {
    background: var(--info-light);
    color: #155e75;
}

[data-theme="dark"] .alert-info {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
}

/* ========================================
   Progress Bars
   ======================================== */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ========================================
   Spinners
   ======================================== */
.spinner-border {
    color: var(--primary);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast-custom {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn var(--transition-base);
}

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

.toast-custom.toast-success {
    border-left: 4px solid var(--success);
}

.toast-custom.toast-danger {
    border-left: 4px solid var(--danger);
}

.toast-custom.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-custom.toast-info {
    border-left: 4px solid var(--info);
}

/* ========================================
   Auth Pages (Login/Register)
   ======================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-subtle);
}

[data-theme="dark"] .auth-wrapper {
    background: var(--bg-body);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    margin: 0;
}

.auth-body {
    padding: 0 2rem 2rem;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-surface-hover);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ========================================
   Dashboard Header
   ======================================== */
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.dashboard-header h2 i {
    color: var(--primary);
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

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

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Video Grid
   ======================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Upload Zone (Drag & Drop)
   ======================================== */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: var(--bg-surface-hover);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-zone p {
    margin: 0;
    color: var(--text-secondary);
}

.upload-zone .browse-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   Dark Mode Toggle
   ======================================== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.theme-toggle i {
    font-size: 1.1rem;
}

/* ========================================
   Processing State
   ======================================== */
.processing-overlay {
    position: absolute;
    inset: 0;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.75rem;
}

.processing-overlay .spinner-border {
    color: var(--primary-light);
}

.processing-overlay p {
    margin: 0;
    font-size: 0.875rem;
}

/* Error State */
.error-overlay {
    position: absolute;
    inset: 0;
    background: var(--danger);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
}

.error-overlay i {
    font-size: 2rem;
}

.error-overlay p {
    margin: 0;
    font-size: 0.875rem;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 767.98px) {
    .navbar-custom .navbar-brand {
        font-size: 1.1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .dashboard-header .btn {
        width: 100%;
    }

    .auth-card {
        border-radius: var(--radius-xl);
    }

    .auth-header {
        padding: 2rem 1.5rem 1rem;
    }

    .auth-body {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ========================================
   Container Adjustments
   ======================================== */
.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface-hover);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    animation: fadeIn var(--transition-slow);
}

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

.slide-up {
    animation: slideUp var(--transition-slow);
}

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