/* ==========================================================================
   LOKSEWA PREP - PROFESSIONAL SaaS UI (LAG-FREE)
   ========================================================================== */

:root {
    /* Premium Color Palette */
    --primary: #4f46e5;       /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --primary-light: #e0e7ff; /* Indigo 100 */
    
    --bg-main: #fafafa;       /* Very light gray/white */
    --card-bg: #ffffff;
    
    --text-main: #0f172a;     /* Slate 900 */
    --text-muted: #64748b;    /* Slate 500 */
    
    --border-color: #e2e8f0;  /* Slate 200 */
    --bg-hover: #f1f5f9;      /* Slate 100 */
    
    /* Semantic */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Pro Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4f46e5, #ec4899);
    --grad-ai: linear-gradient(135deg, #8b5cf6, #d946ef);
    
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Dark Mode Support (Optional but Pro) */
[data-theme="dark"] {
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --bg-hover: #334155;
}

/* --- BASE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* --- SLEEK NAVBAR --- */
nav, .glass-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-brand {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}
.nav-brand i { color: var(--primary); margin-right: 0.25rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a i { margin-right: 0.4rem; opacity: 0.8; }

/* --- PRO BUTTONS --- */
.btn, .btn-primary-neu {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem; font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.2s;
    border: 1px solid transparent;
    gap: 0.5rem;
}
.btn-primary-neu {
    background: var(--primary); color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary-neu:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn {
    background: var(--card-bg); color: var(--text-main);
    border-color: var(--border-color); box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--bg-hover); }

/* Fixes the giant button bug */
.btn-large { padding: 0.8rem 1.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* --- CARDS & PANELS --- */
.stat-card, .feature-card, .glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover, .hover-3d:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-grid, .exam-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0;
}

/* --- FORMS & INPUTS --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--text-main); }
.neu-input, .form-group input, textarea, select {
    width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); background: var(--bg-main);
    color: var(--text-main); font-size: 0.95rem; transition: all 0.2s;
    font-family: inherit;
}
.neu-input:focus, .form-group input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light); background: var(--card-bg);
}

/* --- TABLES --- */
.table-container { overflow-x: auto; }
table, .neu-table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: var(--bg-hover); color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; padding: 1rem; border-bottom: 1px solid var(--border-color); }
td { padding: 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-main); }

/* --- UTILITIES --- */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dashboard-header { margin-bottom: 2rem; padding-top: 1rem; }
.dashboard-header h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }

/* Radio Buttons (Exam) */
.custom-radio-label {
    display: flex; align-items: center; padding: 1rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; background: var(--card-bg);
}
.custom-radio-label:hover { background: var(--bg-hover); }
.custom-radio-label.selected { border-color: var(--primary); background: var(--primary-light); }

/* Remove old animations that caused lag */
.bg-mesh, .blob, .skeleton-shimmer { display: none !important; }
.hidden-until-loaded { opacity: 1 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem !important; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
}