/* ============================================================
   NHAVA LEARN — UI v2.0
   Aesthetic: Refined dark sidebar + clean white canvas
   Font: DM Sans (display) + Inter (body)
   Design: Layered depth, vivid accents, subtle motion
   ============================================================ */

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

/* ── Design tokens ──────────────────────────────────────────── */
:root {
    /* Brand */
    --nl-primary:       #2563eb;
    --nl-primary-light: #3b82f6;
    --nl-primary-glow:  rgba(37,99,235,.18);
    --nl-accent:        #06b6d4;
    --nl-success:       #10b981;
    --nl-warning:       #f59e0b;
    --nl-danger:        #ef4444;

    /* Layout */
    --nl-sidebar-w:   256px;
    --nl-topbar-h:    60px;
    --nl-radius:      12px;
    --nl-radius-lg:   18px;

    /* Surfaces */
    --nl-bg:          #f0f4f8;
    --nl-surface:     #ffffff;
    --nl-surface-2:   #f8fafc;
    --nl-border:      #e4e9f0;
    --nl-border-soft: rgba(0,0,0,.06);

    /* Text */
    --nl-text:        #0f172a;
    --nl-text-2:      #334155;
    --nl-text-muted:  #64748b;
    --nl-text-faint:  #94a3b8;

    /* Sidebar (deep navy, slightly warm) */
    --nl-sb-bg:       #111827;
    --nl-sb-surface:  #1a2235;
    --nl-sb-border:   rgba(255,255,255,.07);
    --nl-sb-text:     #9ca3af;
    --nl-sb-active:   #ffffff;

    /* Shadows */
    --nl-shadow-xs:   0 1px 2px rgba(0,0,0,.05);
    --nl-shadow-sm:   0 1px 6px rgba(0,0,0,.07);
    --nl-shadow-md:   0 4px 20px rgba(0,0,0,.09);
    --nl-shadow-lg:   0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--nl-bg);
    color: var(--nl-text);
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Auth ───────────────────────────────────────────────────── */
.nl-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--nl-sb-bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 110%, rgba(6,182,212,.2) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.nl-auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.nl-auth-wrapper { width: 100%; max-width: 420px; position: relative; z-index: 1; }

.nl-auth-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.15);
}

.nl-auth-brand { text-align: center; margin-bottom: 2rem; }

.nl-auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--nl-primary) 0%, var(--nl-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto .75rem;
    box-shadow: 0 8px 24px var(--nl-primary-glow);
}

.nl-auth-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    color: var(--nl-text);
}

.nl-auth-subtitle { color: var(--nl-text-muted); font-size: .875rem; margin: 0; }
.nl-auth-footer { text-align: center; margin-top: 1.25rem; color: var(--nl-text-muted); font-size: .85rem; }

/* ── App layout ─────────────────────────────────────────────── */
.nl-app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────── */
.nl-sidebar {
    width: var(--nl-sidebar-w);
    height: 100vh;
    background: var(--nl-sb-bg);
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    border-right: 1px solid var(--nl-sb-border);
}

/* Subtle gradient overlay on sidebar */
.nl-sidebar::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: var(--nl-sidebar-w);
    height: 200px;
    background: linear-gradient(180deg, rgba(37,99,235,.12) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Brand */
.nl-sidebar-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--nl-sb-border);
    flex-shrink: 0;
}

.nl-logo-text {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nl-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nl-primary) 0%, var(--nl-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
}

.nl-logo { max-height: 44px; max-width: 130px; object-fit: contain; }

.nl-school-name {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .01em;
}

/* School logo brand block */
.nl-brand-with-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.nl-school-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}
.nl-school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}
.nl-brand-text { overflow: hidden; }
.nl-brand-app {
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1;
    margin-bottom: .15rem;
}
.nl-brand-wordmark {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Nav sections */
.nl-nav-section { padding: .5rem 0; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }

.nl-nav-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.2);
    padding: .9rem .875rem .3rem;
}

.nl-nav-section .nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .875rem;
    margin: .05rem .5rem;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--nl-sb-text);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
}

.nl-nav-section .nav-link i {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .15s;
}

.nl-nav-section .nav-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.nl-nav-section .nav-link:hover i { opacity: 1; }

.nl-nav-section .nav-link.active {
    background: rgba(37,99,235,.25);
    color: #fff;
    font-weight: 600;
}
.nl-nav-section .nav-link.active i {
    opacity: 1;
    color: var(--nl-primary-light);
}

/* Sidebar footer */
.nl-sidebar-footer {
    padding: .875rem 1rem;
    border-top: 1px solid var(--nl-sb-border);
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    background: rgba(0,0,0,.15);
}

.nl-user-info { display: flex; align-items: center; gap: .6rem; flex: 1; overflow: hidden; min-width: 0; }

.nl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nl-primary) 0%, var(--nl-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
    overflow: hidden;
}
.nl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nl-user-name { font-size: .8rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-user-role { font-size: .68rem; color: rgba(255,255,255,.3); white-space: nowrap; }

.nl-logout-btn { color: rgba(255,255,255,.3); font-size: 1rem; text-decoration: none; transition: color .15s; flex-shrink: 0; }
.nl-logout-btn:hover { color: var(--nl-danger); }

/* ── Main ───────────────────────────────────────────────────── */
.nl-main {
    margin-left: var(--nl-sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.nl-topbar {
    height: var(--nl-topbar-h);
    background: var(--nl-surface);
    border-bottom: 1px solid var(--nl-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--nl-shadow-xs);
}

.nl-page-title h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--nl-text);
}
.nl-page-title span { font-size: .78rem; color: var(--nl-text-muted); }

.nl-content { padding: 1.5rem; flex: 1; }

/* ── Stat cards ─────────────────────────────────────────────── */
.nl-stat-card {
    background: var(--nl-surface);
    border-radius: var(--nl-radius);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--nl-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid var(--nl-border-soft);
}

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

/* Coloured top bar */
.nl-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--nl-radius) var(--nl-radius) 0 0;
}

.nl-stat-blue::before   { background: linear-gradient(90deg,#2563eb,#06b6d4); }
.nl-stat-green::before  { background: linear-gradient(90deg,#10b981,#34d399); }
.nl-stat-purple::before { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.nl-stat-orange::before { background: linear-gradient(90deg,#f59e0b,#fcd34d); }

/* Faint icon watermark */
.nl-stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    opacity: .06;
    pointer-events: none;
}

.nl-stat-blue   .nl-stat-icon { color: #2563eb; opacity:.07; font-size:2.4rem; }
.nl-stat-green  .nl-stat-icon { color: #10b981; opacity:.07; font-size:2.4rem; }
.nl-stat-purple .nl-stat-icon { color: #8b5cf6; opacity:.07; font-size:2.4rem; }
.nl-stat-orange .nl-stat-icon { color: #f59e0b; opacity:.07; font-size:2.4rem; }

.nl-stat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .25rem;
    color: var(--nl-text);
}

.nl-stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--nl-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nl-stat-link {
    display: inline-block;
    margin-top: .4rem;
    font-size: .75rem;
    color: var(--nl-primary);
    text-decoration: none;
    font-weight: 500;
}
.nl-stat-link:hover { text-decoration: underline; }

/* ── Cards ──────────────────────────────────────────────────── */
.nl-card {
    background: var(--nl-surface);
    border-radius: var(--nl-radius);
    box-shadow: var(--nl-shadow-sm);
    border: 1px solid var(--nl-border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--nl-border);
    background: var(--nl-surface-2);
    flex-shrink: 0;
}

.nl-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
    color: var(--nl-text);
}

/* ── Tables ─────────────────────────────────────────────────── */
.nl-table { margin: 0; font-size: .85rem; }

.nl-table thead th {
    background: var(--nl-surface-2);
    font-weight: 700;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nl-text-muted);
    border-top: none;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--nl-border);
}

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

.nl-table tbody tr:last-child td { border-bottom: none; }
.nl-table tbody tr:hover td { background: var(--nl-surface-2); }

/* ── Nav label ──────────────────────────────────────────────── */
.nl-nav-label { /* already defined above */ }

/* ── Quick links ────────────────────────────────────────────── */
.nl-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: var(--nl-radius);
    border: 1.5px dashed var(--nl-border);
    text-decoration: none;
    color: var(--nl-text-muted);
    font-size: .82rem;
    font-weight: 600;
    transition: all .2s;
    text-align: center;
    min-height: 100px;
    gap: .4rem;
    background: var(--nl-surface);
}
.nl-quick-link:hover {
    border-color: var(--nl-primary);
    color: var(--nl-primary);
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: var(--nl-shadow-sm);
}

/* ── Activity list ──────────────────────────────────────────── */
.nl-activity-list { padding: .5rem 1.125rem 1rem; display: flex; flex-direction: column; gap: .65rem; }

.nl-activity-item { display: flex; align-items: flex-start; gap: .75rem; }

.nl-activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nl-primary);
    margin-top: .48rem;
    flex-shrink: 0;
}

.nl-activity-action { font-size: .84rem; font-weight: 500; color: var(--nl-text); }
.nl-activity-meta   { font-size: .74rem; color: var(--nl-text-muted); }

/* ── Sidebar toggle (mobile) ────────────────────────────────── */
.nl-sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--nl-text-muted);
    cursor: pointer;
    padding: .3rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.nl-sidebar-toggle:hover { color: var(--nl-text); background: var(--nl-surface-2); }

/* ── Lesson cards ────────────────────────────────────────────── */
.nl-lesson-card {
    background: var(--nl-surface);
    border-radius: var(--nl-radius);
    box-shadow: var(--nl-shadow-sm);
    border: 1px solid var(--nl-border-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.nl-lesson-card:hover {
    box-shadow: var(--nl-shadow-lg);
    transform: translateY(-3px);
}
.nl-lesson-cover {
    height: 120px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    position: relative;
    overflow: hidden;
}
.nl-lesson-cover img { width: 100%; height: 100%; object-fit: cover; }
.nl-lesson-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: rgba(255,255,255,.35);
}
.nl-lesson-status-badge { position: absolute; top: .5rem; right: .5rem; }
.nl-lesson-body { padding: .875rem; flex: 1; }
.nl-lesson-title {
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    color: var(--nl-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-lesson-desc  { font-size: .78rem; color: var(--nl-text-muted); margin: 0 0 .4rem; }
.nl-lesson-meta  { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .72rem; color: var(--nl-text-faint); }
.nl-lesson-footer {
    padding: .55rem .875rem;
    border-top: 1px solid var(--nl-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nl-surface-2);
}

/* ── Badges ─────────────────────────────────────────────────── */
.nl-badge { display: inline-block; padding: .2rem .55rem; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.nl-badge-role { background: #eff6ff; color: #1d4ed8; }

/* ── Utilities ──────────────────────────────────────────────── */
code {
    background: #f1f5f9;
    color: #0f172a;
    padding: .1em .4em;
    border-radius: 5px;
    font-size: .83em;
}

/* ── Form focus ─────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--nl-primary-light);
    box-shadow: 0 0 0 3px var(--nl-primary-glow);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--nl-primary) 0%, #1d4ed8 100%);
    border: none;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    transition: all .2s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5,150,105,.25);
}

/* ── Progress bars ──────────────────────────────────────────── */
.progress { border-radius: 99px; background: #e2e8f0; }
.progress-bar { border-radius: 99px; }

/* ── Bootstrap badge overrides ──────────────────────────────── */
.badge { font-weight: 600; letter-spacing: .02em; }

/* ── Alert refinements ──────────────────────────────────────── */
.alert { border: none; border-radius: var(--nl-radius); font-size: .875rem; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger   { background: #fef2f2; color: #991b1b; }
.alert-info     { background: #eff6ff; color: #1e40af; }
.alert-warning  { background: #fffbeb; color: #92400e; }

/* ── Scrollbar (webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Sidebar scrollbar invisible ───────────────────────────── */
.nl-sidebar::-webkit-scrollbar { width: 3px; }
.nl-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

/* ── Page load fade-in ──────────────────────────────────────── */
.nl-content { animation: fadeUp .25s ease both; }

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

/* ── Smart board mode ───────────────────────────────────────── */
@media (min-width: 1280px) {
    .nl-nav-section .nav-link {
        padding: .65rem .875rem;
        font-size: .9rem;
    }
    .nl-stat-value { font-size: 2.25rem; }
    .nl-topbar     { height: 64px; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .nl-sidebar { transform: translateX(-100%); }
    .nl-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0,0,0,.4);
    }
    .nl-main { margin-left: 0; }
    .nl-content { padding: 1rem; }
    .nl-topbar { padding: 0 1rem; height: 56px; }
}

/* ── Sidebar overlay backdrop ───────────────────────────────── */
.nl-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.nl-sidebar-backdrop.show { display: block; }

/* ── Empty states ────────────────────────────────────────────── */
.nl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--nl-radius);
}

.nl-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.nl-empty-icon-blue   { background: #eff6ff; color: #2563eb; }
.nl-empty-icon-green  { background: #ecfdf5; color: #059669; }
.nl-empty-icon-orange { background: #fffbeb; color: #d97706; }
.nl-empty-icon-purple { background: #f5f3ff; color: #7c3aed; }

.nl-empty-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nl-text);
    margin-bottom: .4rem;
}

.nl-empty-subtitle {
    font-size: .85rem;
    color: var(--nl-text-muted);
    max-width: 340px;
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    text-align: center;
}

/* ── Prompt card (select-school style) ──────────────────────── */
.nl-prompt-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1.5px dashed #bfdbfe;
    border-radius: var(--nl-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}



/* ── Mobile app safe-area fix ────────────────────────────────────────
   Fixes page headings getting clipped under the phone's status bar
   (clock/battery/notch) when running inside the wrapped mobile app.
   env(safe-area-inset-top) resolves to 0 on a normal desktop/mobile
   browser, so this is a no-op there — it only does anything inside
   the Capacitor app on a real device. Belt-and-suspenders alongside
   the native StatusBar plugin config (overlaysWebView: false). */
body {
    padding-top: env(safe-area-inset-top, 0px);
}
