@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap&subset=thai');

/* ============================================
   MODERN LUXURY DESIGN SYSTEM
   Shared across Officers, Students, and Superadmin portals
   Version: 1.0
   ============================================ */

/* ============================================
   1. CSS VARIABLES - DESIGN TOKENS
   ============================================ */

:root {
    /* Backgrounds - Refined Luxury */
    --bg-primary: #EEF0F5;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8EBF2;

    /* Glass Effects - High Contrast */
    --glass-white: rgba(255, 255, 255, 0.95);
    --glass-light: rgba(255, 255, 255, 0.98);
    --glass-ultra-thin: rgba(255, 255, 255, 0.85);

    /* Accent Colors - Intense Luxury Palette */
    --accent-blue: #2A4B7C;
    /* Deep Royal Navy */
    --accent-blue-hover: #1F3A60;
    --accent-blue-light: rgba(42, 75, 124, 0.1);
    --accent-glow: rgba(42, 75, 124, 0.3);

    /* Luxury Gold Accent */
    --accent-gold: #B8860B;
    /* Dark Goldenrod */
    --accent-gold-hover: #9B7004;
    --accent-gold-light: rgba(184, 134, 11, 0.12);

    /* Status Colors - Vivid Tones */
    --success-green: #2E7D32;
    /* Forest Green */
    --success-green-bg: rgba(46, 125, 50, 0.12);
    --warning-orange: #EF6C00;
    /* Deep Orange */
    --warning-orange-bg: rgba(239, 108, 0, 0.12);
    --error-red: #C62828;
    /* Deep Red */
    --error-red-bg: rgba(198, 40, 40, 0.12);

    /* Text - Premium Contrast */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #6B6B6B;

    /* Borders - Subtle Elegance */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-focus: rgba(201, 169, 97, 0.4);
    --border-gold: rgba(201, 169, 97, 0.3);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius - Refined */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;

    /* Transitions - Smooth Premium Feel */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.4s;
}



/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: 'Sarabun', 'TH Sarabun New', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(135deg, #F5F5F7 0%, #E8E8EA 100%);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

.display-large {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.5px;
}

.display-medium {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.4px;
}

.display-small {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    letter-spacing: -0.3px;
}

.title-1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 0.007em;
}

.title-2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.011em;
}

.headline {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.022em;
}

.body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

.subheadline {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -0.016em;
}

.footnote {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: -0.008em;
}

.caption {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.33;
}

/* ============================================
   4. GLASS EFFECTS & MATERIALS
   ============================================ */

.glass-card {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-light);
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 8px 24px -4px rgba(0, 0, 0, 0.06),
        0 2px 6px -2px rgba(0, 0, 0, 0.04);
}

.glass-ultra-thin {
    background: var(--glass-ultra-thin);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.elevated-card {
    background: var(--bg-secondary);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 12px 32px -8px rgba(0, 0, 0, 0.08),
        0 4px 16px -4px rgba(0, 0, 0, 0.04);
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3D5A8C 100%);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    box-shadow:
        0 4px 12px rgba(42, 75, 124, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue-hover) 0%, #2A4B7C 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(42, 75, 124, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #D4A017 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    box-shadow:
        0 4px 12px rgba(184, 134, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, #B8860B 100%);
    box-shadow:
        0 6px 16px rgba(184, 134, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--success-green) 0%, #A2C579 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 4px 12px rgba(136, 176, 75, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7A9F42 0%, #95B66B 100%);
    box-shadow:
        0 6px 16px rgba(136, 176, 75, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   6. FORM INPUTS
   ============================================ */

.input-field {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 18px;
    color: var(--text-primary);
    width: 100%;
    transition: all var(--duration-normal) ease;
    font-family: inherit;
    height: auto;
}

select.input-field {
    height: 52px;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow:
        0 0 0 4px var(--accent-blue-light),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-field::placeholder {
    color: var(--text-tertiary);
}

.input-field:read-only,
.input-field:disabled {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: var(--border-light);
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.008em;
}

.radio-container span {
    font-size: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    animation: fade-in-up 0.4s var(--ease-out);
}

.section-header {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: var(--accent-blue);
}

/* ============================================
   7. CARDS
   ============================================ */

.card-tahoe {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--duration-slow) var(--ease-in-out);
}

.card-tahoe:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 12px 32px -8px rgba(0, 0, 0, 0.10),
        0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

/* ============================================
   8. ANIMATIONS
   ============================================ */

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale-in {
    animation: scale-in 0.4s var(--ease-out);
}

.animate-fade-in-up {
    animation: fade-in-up 0.4s var(--ease-out);
}

/* ============================================
   9. UTILITIES
   ============================================ */

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

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

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

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

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

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

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

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

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

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

.pb-lg {
    padding-bottom: var(--spacing-lg);
}

.pb-xl {
    padding-bottom: var(--spacing-xl);
}

.w-100 {
    width: 100%;
}

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

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

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

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

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

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

.text-accent {
    color: var(--accent-blue);
}

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

.p-0 {
    padding: 0;
}

.p-3 {
    padding: var(--spacing-md);
}

.border-bottom {
    border-bottom: 1px solid var(--border-light);
}

.border-b {
    border-bottom: 1px solid var(--border-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.col-span-2 {
    grid-column: span 2;
}

.flex {
    display: flex;
}

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

.justify-end {
    justify-content: flex-end;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.hidden {
    display: none !important;
}

/* ============================================
   10. ACCESSIBILITY
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   11. LAYOUT (Desktop Default)
   ============================================ */

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

.content-area {
    margin-left: 260px;
    padding-top: 60px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.footer-tahoe {
    margin-left: 260px;
    background: var(--glass-light);
    border-top: 1px solid var(--border-light);
    padding: 20px 24px;
    backdrop-filter: blur(20px);
    transition: margin-left 0.3s ease;
}

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */

/* Mobile Navigation Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Tablet & Mobile Styles */
@media (max-width: 1024px) {
    .sidebar-tahoe {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    }

    .sidebar-tahoe.active {
        transform: translateX(0);
    }

    .content-area,
    footer {
        margin-left: 0 !important;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-tahoe {
        padding: 0 16px;
    }
}

/* Mobile Specific */
@media (max-width: 768px) {
    .display-large {
        font-size: 40px;
    }

    .display-medium {
        font-size: 32px;
    }

    .title-1 {
        font-size: 24px;
    }

    .login-container,
    .signup-container {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: auto;
    }

    .dashboard-container {
        padding: 16px;
    }

    .hero-section {
        padding: 24px;
    }

    .hero-title {
        font-size: 24px;
    }

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

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   13. TYPEAHEAD AUTOCOMPLETE
   ============================================ */

.twitter-typeahead {
    width: 100% !important;
    position: relative;
}

.tt-menu {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    padding: 4px 0;
    z-index: 9999 !important;
    position: absolute !important;
}

.tt-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-primary);
    transition: background var(--duration-fast) ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
    background: var(--accent-blue);
    color: #3005f0;
}

.tt-dataset {
    background: transparent;
}

.twitter-typeahead .input-field {
    background: var(--bg-secondary);
}

/* ============================================
   14. SIDEBAR NAVIGATION (Added)
   ============================================ */

.sidebar-tahoe {
    width: 260px;
    height: 100vh;
    background: var(--glass-light);
    border-right: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-in-out);
    font-weight: 500;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 62, 92, 0.3);
}

.nav-item i {
    font-size: 20px;
}

.brand {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand i {
    font-size: 32px;
    color: var(--accent-blue);
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ============================================
   15. DASHBOARD SPECIFIC
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0051D5 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.25);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s var(--ease-in-out);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 16px 40px -12px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    font-size: 32px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.stat-footer {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.section-card {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.major-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.major-item:hover {
    border-color: var(--border-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.major-name {
    font-weight: 500;
    color: var(--text-primary);
}

.major-level {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s var(--ease-in-out);
}

.action-btn:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.action-label {
    font-size: 13px;
    font-weight: 500;
}

.status-badge.status-passed {
    background: var(--success-green-bg);
    color: var(--success-green);
}

.status-badge.status-pending {
    background: var(--warning-orange-bg);
    color: var(--warning-orange);
}

.status-badge.status-failed {
    background: var(--error-red-bg);
    color: var(--error-red);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   16. AUTHENTICATION (Added)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #F0F2F5 0%, #E3E8EE 100%);
}

.auth-card {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    width: 100%;
    max-width: 530px;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

/* ============================================
   17. FORM ELEMENTS (Checkbox/Radio)
   ============================================ */

/* Radio */
.radio-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
}

.radio-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
    position: relative;
    padding-left: 0;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* ============================================
   18. LOGIN RESPONSIVENESS FIXES
   ============================================ */

.auth-header .auth-icon {
    font-size: 48px;
    color: var(--accent-blue);
    margin-bottom: 16px;
    transition: font-size 0.3s ease;
}

.auth-header .auth-title {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-with-icon {
    padding-left: 40px !important;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
}

.auth-status-badge {
    width: 100%;
    text-align: center;
    padding: 12px;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.btn-full-width {
    width: 100%;
    padding: 14px;
    justify-content: center;
}

.auth-footer-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
        align-items: flex-start;
        /* Align to top on mobile to avoid keyboard covering */
        padding-top: 40px;
    }

    .auth-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .auth-header .auth-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .auth-header .auth-title {
        font-size: 24px;
    }

    .btn-primary {
        padding: 12px;
        /* Slightly smaller button on mobile */
    }
}

/* ============================================
   16. MOBILE SIDEBAR
   ============================================ */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .sidebar-tahoe {
        transform: translateX(-100%);
        z-index: 999;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .sidebar-tahoe.active {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 0 !important;
        padding-top: 80px;
        /* Space for mobile header */
    }
}

/* ============================================
   17. MODERN SAAS UPLOAD (Pastel Luxury - Compact)
   ============================================ */
.upload-modern-container {
    background: var(--glass-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius-lg);
    padding: 12px;
    /* Reduced 50% */
    box-shadow:
        0 8px 32px -8px rgba(42, 75, 124, 0.1),
        0 4px 12px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.upload-area {
    border: 1.5px dashed rgba(184, 134, 11, 0.3);
    /* Thinner border */
    border-radius: var(--radius-md);
    padding: 16px 12px;
    /* Reduced 50% */
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxury);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Reduced gap */
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 75, 124, 0.08);
}

.upload-icon-circle {
    width: 36px;
    /* Reduced 64% */
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FA 100%);
    box-shadow:
        0 4px 8px rgba(184, 134, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 18px;
    /* Reduced font */
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon-circle {
    color: var(--accent-blue);
    transform: scale(1.05) rotate(5deg);
}

.upload-text {
    font-size: 13px;
    /* Reduced font */
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.upload-link:hover {
    color: var(--accent-gold);
}

/* File Preview Item */
.file-preview-item {
    background: var(--glass-white);
    border-radius: var(--radius-sm);
    /* Smaller radius */
    padding: 10px;
    /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-top: 10px;
    /* Reduced margin */
    border: 1px solid var(--border-light);
    animation: fade-in-up 0.4s var(--ease-out);
}

.file-thumb {
    width: 32px;
    /* Reduced size */
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EBF2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 16px;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.file-name {
    font-size: 13px;
    /* Reduced font */
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.file-size {
    font-size: 11px;
    /* Reduced font */
    color: var(--text-tertiary);
}

/* Progress Bar */
.progress-container {
    margin-top: 6px;
    /* Reduced margin */
}

.progress-track {
    height: 4px;
    /* Thinner */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    /* Smaller font */
    color: var(--text-tertiary);
    font-weight: 500;
}

.upload-actions {
    display: flex;
    gap: 6px;
}

.action-icon-btn {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    /* Smaller icon */
    padding: 6px;
    /* Reduced padding */
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.action-icon-btn:hover {
    background: var(--bg-primary);
    color: var(--error-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.upload-preview-img {
    height: 180px;
    /* Adjust this value to resizing manually */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.upload-preview-img:hover {
    transform: scale(1.05);
}

/* ============================================
   19. PREMIUM UPLOAD COMPONENT (Refactored)
   ============================================ */

.upload-area-premium {
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-medium);
}

.upload-icon-premium {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.file-preview-premium {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.upload-btn-premium {
    box-shadow: 0 4px 12px rgba(42, 75, 124, 0.2);
}