/* ============================================================
   AMS — AUTONEX MANAGEMENT SYSTEM — 2D Glass Responsive Theme
   Full responsive support for Mobile (≤480), Tablet (≤768), 
   Small Desktop (≤1024), and Desktop (>1024)
   ============================================================ */

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

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Dark Theme Variables (default) */
    --bg-primary: #07080a;
    --bg-secondary: #0d0f15;
    --bg-card: rgba(20, 22, 32, 0.65);
    --bg-card-hover: rgba(28, 31, 45, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --info: #06b6d4;
    --info-glow: rgba(6, 182, 212, 0.15);
    
    --sidebar-width: 260px;
    --header-height: 64px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px -6px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --glass-blur: blur(16px);

    /* 2D Glass surface layers */
    --glass-surface-1: rgba(255, 255, 255, 0.02);
    --glass-surface-2: rgba(255, 255, 255, 0.04);
    --glass-surface-3: rgba(255, 255, 255, 0.06);
    --glass-border-subtle: rgba(255, 255, 255, 0.06);
    --glass-border-strong: rgba(255, 255, 255, 0.12);
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-theme {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --success-glow: rgba(16, 185, 129, 0.1);
    --warning-glow: rgba(245, 158, 11, 0.1);
    --danger-glow: rgba(239, 68, 68, 0.1);
    --info-glow: rgba(6, 182, 212, 0.1);
    
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.16);

    --glass-surface-1: rgba(255, 255, 255, 0.5);
    --glass-surface-2: rgba(255, 255, 255, 0.6);
    --glass-surface-3: rgba(255, 255, 255, 0.7);
    --glass-border-subtle: rgba(0, 0, 0, 0.04);
    --glass-border-strong: rgba(0, 0, 0, 0.08);
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.light-theme {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 40%),
        radial-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
}

/* ============================================================
   3. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   5. 2D GLASS PANEL — Core Component
   ============================================================ */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md), var(--glass-inner-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
}

body.light-theme .glass-panel::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--glass-inner-glow);
}

/* ============================================================
   6. APP LAYOUT — Sidebar + Main
   ============================================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 17, 24, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.8);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 20px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
}

body.light-theme .logo-text {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item a svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    transition: transform 0.2s ease;
}

.nav-item:hover a, 
.nav-item.active a {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .nav-item:hover a,
body.light-theme .nav-item.active a {
    background: rgba(15, 23, 42, 0.04);
}

.nav-item.active a {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-left: 3px solid var(--accent-purple);
    padding-left: 11px;
}

body.light-theme .nav-item.active a {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.nav-item:hover a svg {
    transform: translateX(3px);
}

.user-profile-menu {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    border: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* --- MAIN CONTENT WRAPPER --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - var(--sidebar-width));
}

.dashboard-layout > div {
    min-width: 0;
}

/* --- HEADER --- */
.header {
    height: var(--header-height);
    background: rgba(8, 9, 12, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 97;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

body.light-theme .header {
    background: rgba(241, 245, 249, 0.7);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.content-body {
    padding: 24px;
    flex-grow: 1;
    min-width: 0;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: var(--font-body);
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.light-theme .btn-secondary {
    background: rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

body.light-theme .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
}

.btn-danger {
    background: var(--danger-glow);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

/* ============================================================
   8. STAT CARDS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-purple);
}

.stat-card.blue::before { background: var(--accent-blue); }
.stat-card.green::before { background: var(--success); }
.stat-card.pink::before { background: var(--accent-pink); }
.stat-card.yellow::before { background: var(--warning); }

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

.stat-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-surface-2);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   9. DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-section {
    padding: 20px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================================
   10. ATTENDANCE / CLOCK WIDGET
   ============================================================ */
.clock-widget {
    text-align: center;
    padding: 24px 20px;
}

.live-time {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .live-time {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.camera-preview-container {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-lg);
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px dashed var(--border-color);
    margin: 0 auto 16px auto;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview-container.active {
    border-style: solid;
    border-color: var(--accent-purple);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.camera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-placeholder {
    position: absolute;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 16px;
    pointer-events: none;
}

.camera-pulse-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.clock-status {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   11. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-present { background: var(--success-glow); color: var(--success); }
.badge-late { background: var(--warning-glow); color: var(--warning); }
.badge-half-day { background: var(--info-glow); color: var(--info); }
.badge-absent { background: var(--danger-glow); color: var(--danger); }

.badge-pending { background: var(--warning-glow); color: var(--warning); }
.badge-approved { background: var(--success-glow); color: var(--success); }
.badge-rejected { background: var(--danger-glow); color: var(--danger); }

.badge-active { background: var(--success-glow); color: var(--success); }
.badge-inactive { background: var(--text-muted); color: #cbd5e1; }

.badge-gps {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge-gps:hover {
    background: var(--accent-blue);
    color: white;
}

.badge-photo {
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge-photo:hover {
    background: var(--accent-pink);
    color: white;
}

/* ============================================================
   12. SWITCH TOGGLES (Settings)
   ============================================================ */
.switch-control {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

body.light-theme .switch-slider {
    background-color: rgba(0, 0, 0, 0.08);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background: var(--gradient-primary);
    border-color: transparent;
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.settings-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.settings-card-item:last-child {
    border-bottom: none;
}

.settings-item-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.settings-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============================================================
   13. TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-md);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

body.light-theme .custom-table th {
    background: rgba(0, 0, 0, 0.02);
}

.custom-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .custom-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* ============================================================
   14. FORMS & INPUTS
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

body.light-theme .form-control {
    background: rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .form-control:focus {
    background: rgba(255, 255, 255, 0.8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================================
   15. MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 550px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox-image-container {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: black;
}

.lightbox-image-container img {
    max-width: 100%;
    object-fit: contain;
}

/* ============================================================
   16. TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    max-width: 360px;
    width: calc(100% - 32px);
}

.toast {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast-icon { flex-shrink: 0; }
.toast-message { font-size: 0.82rem; font-weight: 500; }

/* ============================================================
   17. LOGIN PAGE
   ============================================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.login-logo svg {
    width: 24px;
    height: 24px;
    color: white;
}

.login-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.login-alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    background: var(--danger-glow);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   18. SEARCH & FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
    min-width: 180px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-input-wrapper input {
    padding-left: 44px;
}

.filter-select {
    width: 180px;
}

/* ============================================================
   19. ACTIVITY LOGS
   ============================================================ */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-wrapper.green { background: var(--success-glow); color: var(--success); }
.activity-icon-wrapper.blue { background: var(--info-glow); color: var(--info); }
.activity-icon-wrapper.purple { background: var(--accent-purple); color: white; }
.activity-icon-wrapper.yellow { background: var(--warning-glow); color: var(--warning); }
.activity-icon-wrapper.danger { background: var(--danger-glow); color: var(--danger); }

.activity-content {
    flex-grow: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.82rem;
    margin-bottom: 3px;
}

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

.activity-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   20. CARD LIST ITEMS
   ============================================================ */
.card-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.card-list-item:last-child {
    border-bottom: none;
}

.card-list-item-title {
    font-weight: 500;
    font-size: 0.875rem;
}

.card-list-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============================================================
   21. BAR CHART (Attendance)
   ============================================================ */
.bar-chart-container {
    display: flex;
    height: 160px;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 16px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36px;
    height: 100%;
    justify-content: flex-end;
    gap: 6px;
}

.chart-bar-fill {
    width: 100%;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
    min-height: 4px;
}

.chart-bar-fill::after {
    content: attr(data-percentage) '%';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.chart-bar-wrapper:hover .chart-bar-fill::after {
    opacity: 1;
}

.chart-bar-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================================
   22. LEAVE CARDS
   ============================================================ */
.leaves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.leave-request-card {
    padding: 18px;
}

.leave-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.leave-request-body {
    margin-bottom: 14px;
}

.leave-request-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.leave-request-reason {
    font-size: 0.82rem;
    background: var(--glass-surface-2);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    word-break: break-word;
}

.leave-request-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   23. PROFILE LAYOUT
   ============================================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.profile-layout > div {
    min-width: 0;
}

.profile-sidebar {
    text-align: center;
    padding: 28px 20px;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.profile-meta-list {
    margin-top: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.profile-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    gap: 8px;
    flex-wrap: wrap;
}

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

.profile-meta-value {
    font-weight: 600;
    word-break: break-word;
    text-align: right;
}

/* ============================================================
   24. UTILITY CLASSES
   ============================================================ */
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mobile-only { display: none; }
.desktop-only { display: inline; }

/* ============================================================
   25. FACE SCANNER OVERLAY
   ============================================================ */
.camera-preview-container {
    position: relative;
    overflow: hidden;
}

.camera-scanner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 12, 0.45);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius-sm);
    animation: fadeIn 0.25s ease-in-out;
}

.scanner-laser {
    width: 90%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--success), transparent);
    box-shadow: 0 0 12px var(--success), 0 0 4px var(--success);
    position: absolute;
    top: 10%;
    left: 5%;
    animation: scanLaser 2s linear infinite;
}

.scanner-text {
    color: #ffffff;
    font-size: 0.7rem;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    margin-top: 40px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
    animation: pulseScan 1s infinite alternate;
}

@keyframes scanLaser {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

@keyframes pulseScan {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

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

/* ============================================================
   26. RESPONSIVE: LARGE DESKTOP (≥1280px)
   ============================================================ */
@media (min-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .content-body {
        padding: 28px 32px;
    }
}

/* ============================================================
   27. RESPONSIVE: SMALL DESKTOP / LARGE TABLET (769px–1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 72px;
        padding: 20px 6px;
    }
    
    .sidebar .logo-text,
    .sidebar .nav-item a span,
    .sidebar .user-info {
        display: none;
    }
    
    .sidebar .logo-container {
        padding-bottom: 14px;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .sidebar .nav-item a {
        justify-content: center;
        padding: 10px;
    }

    .sidebar .nav-item.active a {
        border-left: none;
        padding-left: 10px;
        border-bottom: 2px solid var(--accent-purple);
    }
    
    .sidebar .user-profile-menu {
        justify-content: center;
    }
    
    .main-wrapper {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

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

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .content-body {
        padding: 20px;
    }

    .header {
        padding: 0 20px;
    }
}

/* ============================================================
   28. RESPONSIVE: TABLET PORTRAIT (577px–768px)
   ============================================================ */
@media (max-width: 768px) {
    .mobile-only { display: inline-flex; }
    .desktop-only { display: none; }
    
    /* Sidebar becomes drawer overlay */
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
        box-shadow: none;
        background: rgba(15, 17, 24, 0.97);
        padding: 20px 14px;
    }
    
    body.light-theme .sidebar {
        background: rgba(255, 255, 255, 0.97);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar .logo-text,
    .sidebar .nav-item a span,
    .sidebar .user-info {
        display: inline;
    }
    
    .sidebar .logo-container {
        justify-content: flex-start;
        padding-bottom: 20px;
        padding-left: 12px;
    }
    
    .sidebar .nav-item a {
        justify-content: flex-start;
        padding: 10px 14px;
    }

    .sidebar .nav-item.active a {
        border-left: 3px solid var(--accent-purple);
        border-bottom: none;
        padding-left: 11px;
    }
    
    .sidebar .user-profile-menu {
        justify-content: flex-start;
    }
    
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(5, 6, 8, 0.7);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 98;
    }
    
    .mobile-sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .header {
        padding: 0 16px;
        height: 56px;
    }
    
    .content-body {
        padding: 16px;
    }

    .page-title {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-title {
        font-size: 0.7rem;
    }
    
    .system-status-pill {
        display: none !important;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-select {
        width: 100%;
    }

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

    .leave-request-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-section {
        padding: 16px;
    }

    .bar-chart-container {
        height: 140px;
    }

    .chart-bar-wrapper {
        width: 28px;
    }

    .live-time {
        font-size: 1.65rem;
    }

    .modal-content {
        max-width: 100%;
        margin: 8px;
        border-radius: var(--border-radius-md);
    }

    .modal-body {
        padding: 16px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .toast-container {
        max-width: 300px;
    }

    /* Table cells tighter */
    .custom-table th,
    .custom-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   29. RESPONSIVE: MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-body {
        padding: 12px;
    }

    .header {
        padding: 0 12px;
        height: 52px;
    }

    .page-title {
        font-size: 1rem;
    }

    .header-actions {
        gap: 6px;
    }
    
    .custom-table th, 
    .custom-table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-desc {
        font-size: 0.68rem;
    }

    .clock-widget {
        padding: 16px 12px;
    }

    .live-time {
        font-size: 1.45rem;
    }

    .camera-preview-container {
        max-width: 200px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.78rem;
        gap: 6px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .glass-panel {
        border-radius: var(--border-radius-md);
    }

    .login-card {
        padding: 24px 20px;
    }

    .login-title {
        font-size: 1.2rem;
    }

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

    .form-control {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .section-header {
        margin-bottom: 12px;
    }

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

    .dashboard-section {
        padding: 14px;
        margin-bottom: 16px;
    }

    .settings-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .profile-sidebar {
        padding: 20px 16px;
    }

    .profile-avatar-large {
        width: 72px;
        height: 72px;
        font-size: 1.6rem;
    }

    .leave-request-card {
        padding: 14px;
    }

    .toast-container {
        max-width: 100%;
        right: 8px;
        left: 8px;
        width: auto;
    }

    .toast {
        padding: 10px 12px;
    }

    .toast-message {
        font-size: 0.78rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-input-wrapper {
        min-width: 100%;
    }

    .modal-overlay {
        padding: 8px;
    }

    .modal-content {
        border-radius: var(--border-radius-sm);
    }

    .modal-body {
        padding: 14px;
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-title {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .bar-chart-container {
        height: 120px;
    }

    .chart-bar-wrapper {
        width: 22px;
    }

    .chart-bar-label {
        font-size: 0.6rem;
    }

    .activity-item {
        gap: 8px;
    }

    .activity-icon-wrapper {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .activity-text {
        font-size: 0.78rem;
    }

    .activity-time {
        font-size: 0.68rem;
    }
}

/* ============================================================
   30. RESPONSIVE: VERY SMALL MOBILE (≤360px)
   ============================================================ */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .content-body {
        padding: 10px;
    }

    .header {
        height: 48px;
        padding: 0 10px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .login-card {
        padding: 20px 16px;
    }

    .camera-preview-container {
        max-width: 160px;
    }

    .sidebar {
        width: 240px;
    }
}

/* ============================================================
   31. PRINT STYLES
   ============================================================ */
@media print {
    .sidebar,
    .header,
    .mobile-sidebar-overlay,
    .toast-container,
    .btn,
    .modal-overlay {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .glass-panel {
        border: 1px solid #ddd;
        box-shadow: none;
        backdrop-filter: none;
        background: #fff;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* Custom Select Option Theme Support */
select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

body.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Customer Offer Tab Layout Styling */
.customer-offer-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    height: calc(100vh - 200px);
    overflow: hidden;
}
.co-form-panel {
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.co-preview-panel {
    overflow-y: auto;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.co-paper-doc {
    position: relative;
    overflow: hidden;
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    color: #1e293b;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
    transform-origin: top center;
}

/* Tablet screens layout adjustments */
@media (max-width: 1024px) {
    .customer-offer-container {
        grid-template-columns: 360px 1fr;
        gap: 14px;
    }
    .co-preview-panel {
        padding: 12px;
    }
    .co-paper-doc {
        width: 100%;
        min-height: auto;
        padding: 24px;
    }
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .customer-offer-container {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        gap: 20px;
    }
    .co-form-panel {
        overflow-y: visible;
        padding-right: 0;
    }
    .co-preview-panel {
        overflow-y: visible;
        padding: 10px;
        background: transparent;
    }
    .co-paper-doc {
        width: 100%;
        min-height: auto;
        padding: 16px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Global Form Control Style Overrides to ensure Theme Readability (Dark & Light Mode) */
.form-control, 
select.form-control,
input.form-control,
textarea.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

body.light-theme .form-control, 
body.light-theme select.form-control,
body.light-theme input.form-control,
body.light-theme textarea.form-control {
    background: rgba(0, 0, 0, 0.02) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.form-control:focus,
select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.light-theme .form-control:focus,
body.light-theme select.form-control:focus,
body.light-theme input.form-control:focus,
body.light-theme textarea.form-control:focus {
    background: rgba(255, 255, 255, 0.8) !important;
}



