/* -------------------------------
   COLOR SYSTEM (Learning-focused)
   ------------------------------- */
:root {
    --color-bg: #0f172a;              /* dark navy sidebar */
    --color-bg-alt: #020617;          /* deeper navy */
    --color-surface: #ffffff;         /* cards, content */
    --color-surface-soft: #f3f4f6;    /* page background */
    --color-border-subtle: #e5e7eb;

    --color-primary: #2563eb;         /* calm blue for focus & trust */
    --color-primary-soft: #dbeafe;

    --color-accent: #22c55e;          /* green for growth/progress */
    --color-accent-soft: #dcfce7;

    --color-highlight: #facc15;       /* soft yellow for important info */

    --color-text-main: #0f172a;
    --color-text-muted: #6b7280;
    --color-text-on-dark: #e5e7eb;

    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
}

.brand-logo {
    max-height: 50px;      /* controls how tall it can be */
    max-width: 120px;      /* prevents super-wide logos */
    width: auto;           /* keep aspect ratio */
    height: auto;          /* keep aspect ratio */
    display: block;
}


/* Base */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* base dark background; gradients come from .app-main-bg or page-specific sections */
    background-color: #020617;
    color: #e5e7eb;
}

body.app-body {
    /* used for “light” app pages if you ever need it */
    background-color: var(--color-surface-soft);
    color: var(--color-text-main);
}

/* ------------------
   APP SHELL LAYOUT
   ------------------ */

.app-shell {
    display: flex;
    min-height: calc(100vh - 56px); /* navbar height approx */
}

/* Sidebar */

.app-sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #1d4ed8 0, #020617 45%);
    color: var(--color-text-on-dark);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.4);
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.app-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.app-logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-highlight);
    font-size: 18px;
}

.app-logo-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.app-logo-subtitle {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.7);
}

.app-sidebar-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 6px;
    margin-bottom: 4px;
}

.app-sidebar-nav {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.app-sidebar-link:hover {
    background: rgba(15, 23, 42, 0.75);
    transform: translateX(2px);
    color: #f9fafb;
}

.app-sidebar-link i {
    font-size: 16px;
}

.app-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}


/* Main area */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
}

/* Header */

.app-header {
    height: 64px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-header-brand is {
    text-decoration: none;
}

.app-header-brand {
    text-decoration: none;
}

.app-header-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text-main);
}

.app-header-badge {
    margin-left: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: #1d4ed8;
    font-weight: 500;
}

/* User pill */

.app-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(148, 163, 184, 0.4);
    
}

.app-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

.app-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-user-name {
    font-size: 13px;
    font-weight: 600;
}

.app-user-role {
    font-size: 11px;
    color: var(--color-text-muted);
}


/* Content */

.app-content {
    padding: 24px;
    background: radial-gradient(circle at top left, #eff6ff 0, #f9fafb 35%, #f3f4f6 100%);
    flex: 1;
}

/* ------------------
   GLOBAL NAVBAR
   ------------------ */

.main-navbar {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 0.7rem 0;
}

/* small logo for navbar */
.brand-logo-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #60a5fa, #22c55e);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: #f9fafb;
}

.brand-name {
    color: #f9fafb;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

.mode-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.nav-link-main {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link-main:hover {
    color: #e5e7eb;
}

.nav-username {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ------------------
   NAV SEARCH
   ------------------ */

.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-search-toggle {
    border: none;
    background: transparent;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.nav-search-toggle:hover {
    background: rgba(148, 163, 184, 0.15);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
    transform: translateY(-1px);
}

.nav-search-form {
    position: relative;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(6px);
    transition:
        max-width 0.22s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.nav-search-container.nav-search-open .nav-search-form {
    max-width: 220px;
    opacity: 1;
    transform: translateX(0);
}

.nav-search-input {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    min-width: 0;
}

.nav-search-input::placeholder {
    color: #64748b;
}

.nav-search-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5);
}

/* Mobile: slightly narrower search when open */
@media (max-width: 767.98px) {
    .nav-search-container.nav-search-open .nav-search-form {
        max-width: 160px;
    }
}

/* BUTTONS */

.btn-main {
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    border: none;
    color: #f9fafb;
    font-weight: 600;
    padding-inline: 1.4rem;
}

.btn-main:hover {
    filter: brightness(1.03);
    color: #f9fafb;
}

.btn-ghost-main {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: #e5e7eb;
    font-weight: 500;
    padding-inline: 1.4rem;
}

.btn-ghost-main:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #f9fafb;
}

.btn-outline-main {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    color: #e5e7eb;
}

.btn-outline-main:hover {
    background: rgba(148, 163, 184, 0.12);
}

/* SIDE NAV (alt) */

/* SIDE NAV (desktop default) */
.side-nav {
    width: 230px;
    background: #020617;
    border-right: 1px solid rgba(30, 41, 59, 0.9);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Mobile behaviour: hidden by default, slide down when open */
@media (max-width: 767.98px) {
    .app-shell {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(30, 41, 59, 0.9);
        display: none;                /* hidden by default on small screens */
    }

    .side-nav.side-nav-open {
        display: block;               /* show when toggled */
    }
}

.side-nav-header {
    margin-bottom: 1rem;
}

.side-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.side-nav-link {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    color: #cbd5f5;
    text-decoration: none;
    font-size: 0.93rem;
}

.side-nav-link:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #f9fafb;
}

@media (max-width: 767.98px) {
    .side-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(30, 41, 59, 0.9);
        margin-bottom: 0.75rem;
    }
}


.app-main-bg {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.15), transparent),
        radial-gradient(circle at bottom, rgba(16, 185, 129, 0.1), #020617);
}

/* OLD HERO (kept in case other pages use it) */

.hero-section {
    margin-top: 2.5rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #93c5fd;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1.5rem, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f9fafb;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #9ca3af;
    max-width: 32rem;
}

.hero-meta {
    font-size: 0.9rem;
    color: #9ca3af;
}

.hero-badge,
.hero-badge-alt {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
}

.hero-badge-alt {
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
}

.hero-card {
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.92);
    padding: 1.5rem 1.7rem;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-chip {
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.hero-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hero-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: #cbd5f5;
    margin-bottom: 0.4rem;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
}

/* Info cards under old hero */

.home-section .info-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
}

.home-section .info-card h3 {
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}

.home-section .info-card p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ------------------
   CARDS & TYPOGRAPHY
   ------------------ */

.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-weight: 600;
}

.card-text {
    color: var(--color-text-muted);
}

/* Make headings friendly for learning */
h1,
.display-4 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

h2,
h3 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Buttons themed by our colors */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-success {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

/* Highlight badge for Pro features, etc. */
.badge-highlight {
    background-color: var(--color-highlight);
    color: #713f12;
    font-weight: 600;
}

/* Landing page tweaks */
.text-muted {
    color: var(--color-text-muted) !important;
}

/* ------------------
   RESPONSIVE
   ------------------ */
@media (max-width: 992px) {
    /* Stack sidebar on top of content */
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        position: static;
        align-self: stretch;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.4);
        padding: 16px 14px;
    }

    .app-header {
        padding: 0 16px;
    }

    .app-content {
        padding: 16px;
    }
}

/* --- Login page styles --- */

.login-page {
    min-height: calc(100vh - 64px); /* adjust if your header is taller/shorter */
    padding: 3rem 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: rgba(3, 7, 18, 0.96); /* subtle glass card on your existing gradient */
    color: #f9fafb;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.login-card .form-label {
    color: #cbd5f5;
    letter-spacing: 0.06em;
}

.login-input {
    background: rgba(15, 23, 42, 0.9);
    border-color: #27345c;
    color: #f9fafb;
}

.login-input:focus {
    border-color: #4a6bff;
    box-shadow: 0 0 0 0.15rem rgba(74, 107, 255, 0.35);
}

.login-card .form-control::placeholder {
    color: #64748b;
}

.login-btn {
    border-radius: 999px;
    background-image: linear-gradient(135deg, #3b82f6, #22c55e);
    border: none;
    font-weight: 600;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.login-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
}

/* big logo only for login */
.login-logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 30% 30%, #7dd3fc, #6366f1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(46, 104, 255, 0.5);
}

.login-logo-text,
.brand-logo-text {
    text-transform: uppercase;
}

.login-link {
    color: #60a5fa;
}

.login-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.login-card .text-muted {
    color: #9ca3af !important;
}

/* ----------------------------------------------------------
   NEW MODERN HOME PAGE STYLES
   ---------------------------------------------------------- */

.home-shell {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.home-hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.home-hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1.6rem, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.accent-text {
    color: #60a5fa;
}

.home-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5f5;
    max-width: 34rem;
}

.home-hero-meta {
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dot-separator::before {
    content: "•";
    margin-right: 0.5rem;
}

/* pill badge */

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #bfdbfe;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

/* hero preview card */

.hero-preview-card {
    border-radius: 1.5rem;
    padding: 1.5rem 1.6rem;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.3), transparent 60%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.2), transparent 55%),
                #020617;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.hero-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.preview-stat {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.preview-stat.span-2 {
    grid-column: span 2;
}

.preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.preview-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e5e7eb;
}

.preview-value-sm {
    display: block;
    font-weight: 600;
    color: #e5e7eb;
}

.preview-mini {
    font-size: 0.8rem;
    color: #9ca3af;
}

.preview-feedback {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.chip-good {
    background: rgba(22, 163, 74, 0.15);
    color: #bbf7d0;
}

/* sections */

.home-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-header h2 {
    font-weight: 700;
    color: #e5e7eb;
}

.section-subtitle {
    color: #9ca3af;
    max-width: 36rem;
    margin: 0 auto;
}

/* feature / step / pricing cards */

.feature-card,
.step-card,
.pricing-card,
.bottom-cta {
    border-radius: 1.25rem;
    padding: 1.4rem 1.6rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
}

.feature-card h5,
.step-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p,
.step-card p {
    font-size: 0.94rem;
    color: #cbd5f5;
}

.feature-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Steps */

.step-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Pricing */

.pricing-card {
    position: relative;
    text-align: left;
}

.pricing-card-highlight {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 55%),
                rgba(15, 23, 42, 0.97);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
}

.pricing-tag {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-header h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.pricing-caption {
    font-size: 0.9rem;
    color: #9ca3af;
}

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 0;
    font-size: 0.92rem;
    color: #cbd5f5;
}

.pricing-list li {
    margin-bottom: 0.35rem;
}

/* Bottom CTA */

.bottom-cta {
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Responsive tweaks for home ---------- */

@media (max-width: 767.98px) {
    .home-shell {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* === Student Dashboard Modern Design === */

.student-dashboard {
    padding-bottom: 3rem;
}

/* Hero */

.dashboard-hero {
    background: radial-gradient(circle at top left, #2b8cff 0, #141b3f 45%, #050715 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #f8fafc;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 70%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
    margin-bottom: 1rem;
}

.hero-subtext {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.badge-primary-soft {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

.badge-success-soft {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.badge-info-soft {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
    color: #bae6fd;
}

/* Grid */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Cards */

.dash-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem 1.3rem;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.16s ease, box-shadow 0.16s ease,
        border-color 0.16s ease, background 0.16s ease;
}

.dash-card-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.98));
    border-color: rgba(59, 130, 246, 0.4);
}

.dash-card-highlight {
    background: linear-gradient(135deg, #16a34a, #0f766e);
    border-color: rgba(22, 163, 74, 0.8);
    color: #ecfdf5;
}

.dash-card-surface {
    background: rgba(15, 23, 42, 0.96);
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.85);
    border-color: rgba(129, 140, 248, 0.55);
}

.dash-card-highlight:hover {
    border-color: rgba(74, 222, 128, 0.9);
}

.dash-card-header {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.dash-card-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
    
}

.dash-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dash-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.dash-card-subtitle {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
}

.dash-card-subtext {
    font-size: 0.8rem;
    color: #e0e0e0;
    margin: 0.35rem 0 0;
}

.dash-card-footer {
    margin-top: 0.9rem;
}

.dash-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
}

.dash-list li {
    margin-bottom: 0.25rem;
}

/* Recommended badge */

.badge-recommended {
    background: #facc15;
    color: #1f2933;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Promo code input */

.promo-input {
    font-size: 0.9rem;
}

/* Utility */

.btn-md {
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.6rem 1.7rem;
        border-radius: 1.1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Auth (Login/Register) Pages ---------- */

.auth-layout {
    min-height: calc(100vh - 72px); /* adjust if your navbar height is different */
    background: radial-gradient(circle at top left, #1d4ed8 0, #020617 42%, #020617 100%);
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 1120px;
}

.auth-card {
    background: #020617;
    border-radius: 1.25rem;
    padding: 2.25rem 2.25rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 0;
}

.auth-label {
    font-size: 0.85rem;
    color: #e5e7eb;
}

.auth-input {
    border-radius: 999px;                /* pill */
    border: 1px solid #1e293b;
    background-color: #020617;
    color: #e5e7eb;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    min-height: 2.7rem;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
    background-color: #020617;
    color: #f9fafb;
}

.auth-btn {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    border: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.auth-btn:hover {
    filter: brightness(1.03);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
}

.auth-link {
    color: #60a5fa;
    text-decoration: none;
}

.auth-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 1.4s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(16deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(10deg); }
}

/* Left hero column */

.auth-hero {
    max-width: 440px;
    color: #e5e7eb;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #c7d2fe;
    margin-bottom: 1rem;
}

.auth-hero-title {
    font-size: 2.15rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #f9fafb;
    margin-bottom: 0.75rem;
}

.auth-hero-title span {
    background: linear-gradient(135deg, #60a5fa, #a855f7, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero-text {
    font-size: 0.96rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

.auth-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #d1d5db;
}

.auth-hero-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
}

.auth-hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
}

/* Responsive tweaks */

@media (max-width: 991.98px) {
    .auth-layout {
        padding: 3rem 0 3.5rem;
    }

    .auth-card {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

/* ---------- AUTH (LOGIN / REGISTER) ---------- */

.auth-wrapper {
    min-height: calc(100vh - 80px); /* leave space for navbar/footer */
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #1f4fff 0, transparent 50%),
                radial-gradient(circle at bottom right, #10b981 0, transparent 55%),
                #020617;
}

.auth-card {
    width: 100%;
    max-width: 900px;
    padding: 3rem 3.5rem;
    border-radius: 32px;
    background: radial-gradient(circle at top left, #0f172a 0, #020617 60%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.auth-header p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.98rem;
}

.wave {
    font-size: 2.1rem;
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave-hand 2.2s infinite;
}

@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.auth-input {
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    background-color: #020617;
    color: #f9fafb;
    padding: 0.8rem 1.1rem;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
    background-color: #020617;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    color: #9ca3af;
}

.auth-forgot a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    margin-top: 0.75rem;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #f9fafb;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                background 0.12s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.55);
    background: linear-gradient(90deg, #1d4ed8, #4338ca);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.auth-footer {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-footer a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .auth-card {
        padding: 2.25rem 1.75rem;
        border-radius: 24px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ---------- AUTH (LOGIN / REGISTER) ---------- */

.auth-wrapper {
    min-height: calc(100vh - 80px);
    padding: 4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #1f4fff 0, transparent 50%),
                radial-gradient(circle at bottom right, #10b981 0, transparent 55%),
                #020617;
}

.auth-card {
    width: 100%;
    max-width: 900px;
    padding: 3rem 3.5rem;
    border-radius: 32px;
    background: radial-gradient(circle at top left, #0f172a 0, #020617 60%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.auth-header p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.98rem;
}

.wave {
    font-size: 2.1rem;
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave-hand 2.2s infinite;
}

@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.auth-input {
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    background-color: #020617;
    color: #f9fafb;
    padding: 0.8rem 1.1rem;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
    background-color: #020617;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    color: #9ca3af;
}

.auth-forgot a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    margin-top: 0.75rem;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #f9fafb;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                background 0.12s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.55);
    background: linear-gradient(90deg, #1d4ed8, #4338ca);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.auth-footer {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-footer a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2.25rem 1.75rem;
        border-radius: 24px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}



/* ---------- Footer ---------- */

.site-footer {
    margin-top: 2rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    color: #9ca3af;
    padding-top: 1.75rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 260px;
}

.footer-brand-name {
    font-weight: 600;
    color: #e5e7eb;
}

.footer-brand-tagline {
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-column {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    margin-bottom: 0.3rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-column a:hover {
    color: #e5e7eb;
}

/* bottom strip */

.footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 0.75rem 0 1rem;
    background: #020617;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-copy {
    white-space: nowrap;
}

.footer-mini-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-mini-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-mini-links a:hover {
    color: #e5e7eb;
}

/* responsive */

@media (max-width: 767.98px) {
    .footer-inner {
        align-items: flex-start;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .container-xxl {
        justify-content: center !important;
    }
}

/* ----------------------------------------------------------
   ADMIN → USERS PAGE (Modern Table Styling)
   ---------------------------------------------------------- */

/* Header above the users table */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-main);
    margin-bottom: 0.1rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Slightly elevated card for the table */
.card-glass {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
}

/* Users table */

tbody {
    border-radius: 999px;
}
.users-table {
    font-size: 0.9rem;
}

.users-table thead tr {
    background: linear-gradient(
        90deg,
        rgba(37, 99, 235, 0.06),
        rgba(34, 197, 94, 0.03)
    );
    
}

.users-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-top: 0.8rem;
    padding-bottom: 0.7rem;
    background-color: transparent;
}

.users-table tbody tr {
    transition: background-color 0.12s ease, transform 0.08s ease;
}

.users-table tbody tr:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

/* Online / offline status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    display: inline-block;
}

.status-online {
    background: var(--color-accent-soft);
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

.status-online .status-dot {
    background: #22c55e;
}

.status-offline {
    background: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.6);
    color: #6b7280;
}

.status-offline .status-dot {
    background: #9ca3af;
}

/* Subscription pills */
.sub-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sub-pill-free {
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
}

.sub-pill-pro {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    
}

.sub-pill-premium {
    background: linear-gradient(
        90deg,
        rgba(245, 158, 11, 0.16),
        rgba(37, 99, 235, 0.16)
    );
    color: #92400e;
}

/* Bigger primary button on Users page header */
.page-header .btn-primary {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* ---------- Practice Available Page (hero + cards) ---------- */

.practice-page {
    margin-top: 16px;
}

/* HERO */

.practice-hero {
    border-radius: 24px;
    padding: 1.75rem 2rem 1.75rem;
    margin-bottom: 1.75rem;
    background: radial-gradient(circle at top left, #3b82f6 0, #0f172a 40%, #020617 100%);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.9);
}

.practice-hero-inner {
    max-width: 680px;
}

.practice-hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #f9fafb;
    margin-bottom: 0.4rem;
}

.practice-hero-subtitle {
    color: #d1d5db;
    font-size: 0.98rem;
    margin-bottom: 1rem;
    max-width: 520px;
}

.practice-hero-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tab {
    border: none;
    outline: none;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.55);
    color: #e5e7eb;
    cursor: default;
}

.hero-tab-active {
    background: #22c55e;
    color: #022c22;
}

/* CARD GRID */

.exam-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .exam-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .exam-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* CARDS */

.exam-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: radial-gradient(circle at top left, #1d4ed8 0, #020617 45%, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.exam-card-inner {
    padding: 1.5rem 1.75rem 1.25rem;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Card header */

.exam-card-header {
    margin-bottom: 0.75rem;
}

.exam-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #93c5fd;
    margin-bottom: 0.15rem;
}

.exam-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 0.4rem 0;
}

.exam-meta {
    font-size: 0.9rem;
    color: #e5e7eb;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

/* Body */

.exam-card-body {
    margin-bottom: 1.2rem;
}

.exam-description {
    font-size: 0.95rem;
    color: #cbd5f5;
    margin: 0;
    line-height: 1.55;
}

/* Footer */

.exam-card-footer {
    display: flex;
    justify-content: flex-start;
}

.exam-card-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.5);
}


/* ---------- Practice quiz result styling ---------- */

.result-score-bar {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.question-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
    background: radial-gradient(circle at top left, #1e293b, #020617);
    color: #e5e7eb;
}

.question-card h5 {
    font-size: 1rem;
}

/* pills for answers */
.answer-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin: 0 0.35rem 0.35rem 0;
    border-width: 1px;
    border-style: solid;
}

.answer-pill.correct {
    background: rgba(34, 197, 94, 0.1);   /* green */
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
}

.answer-pill.wrong {
    background: rgba(239, 68, 68, 0.12);  /* red */
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.6);
}

.answer-pill.example {
    background: rgba(59, 130, 246, 0.12); /* blue */
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.6);
}



/* AI feedback sections – color coded */
.ai-section {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: #020617;
    margin-bottom: 0.75rem;
    color: white
}

.ai-section-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.ai-section-list {
    margin-bottom: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

/* difficulty = red, explanations = blue, tips = green */
.ai-section-difficulty {
    border-left: 4px solid #f97373; /* red */
}

.ai-section-explanation {
    border-left: 4px solid #60a5fa; /* blue */
}

.ai-section-tips {
    border-left: 4px solid #22c55e; /* green */
}

.ai-section-general {
    border-left: 4px solid #9ca3af; /* neutral grey */
}


/* ---------- Submit loading overlay ---------- */

.submit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.submit-overlay-card {
    background: #020617;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.8);
    text-align: center;
    color: #e5e7eb;
}



/* --- Admin Users modern styling --- */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.page-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Card */
.card-elevated {
    background: #0b1020;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-elevated-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
}

.card-elevated-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.card-elevated-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-elevated-body {
    padding-top: 1rem;
}

/* Table */
.table-head-modern th {
    border-bottom-width: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill-online {
    background-color: #16a34a;
    color: white;
}

.status-pill-offline {
    background-color: #4b5563;
    color: white;
}

/* Subscription pills */
.subscription-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.subscription-pill-free {
    background-color: rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
}

.subscription-pill-pro {
    background-color: #facc15;
    color: #1f2933;
}

/* ===== Users page readability fixes ===== */

/* Make the users card clearly light-on-dark */
.admin-page .card.card-glass {
    background-color: #ffffff;
    color: #111827; /* dark slate text */
}

/* Ensure all table text inside the users card is dark */
.admin-page .card.card-glass table,
.admin-page .card.card-glass th,
.admin-page .card.card-glass td {
    color: #111827;
}

/* Strong, readable column headers */
.table-head-modern th {
    background-color: #e5efff;        /* soft light blue */
    color: #1f2937;                   /* dark gray text */
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
}

/* Keep status + subscription pills readable on light background */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill-online {
    background-color: #16a34a;
    color: #ffffff;
}

.status-pill-offline {
    background-color: #4b5563;
    color: #ffffff;
}

.subscription-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.subscription-pill-free {
    background-color: #e5e7eb;
    color: #4b5563;
}

.subscription-pill-pro {
    background-color: #facc15;
    color: #1f2937;
}

/* Page title/subtitle on dark background at the top */
.page-title {
    color: #ffffff;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Performance overview styling (admin & student) */
.performance-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero */
.performance-hero {
    border-radius: 24px;
    padding: 2.25rem 2rem;
    background: radial-gradient(circle at top right, #1d4ed8, #0f172a);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.performance-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.performance-subtitle {
    margin-bottom: .25rem;
    opacity: 0.9;
}

.performance-meta {
    opacity: 0.85;
}

/* Stat cards */
.performance-card {
    background: #020617;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    color: #e5e7eb;
}

.performance-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.performance-card-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.performance-card-caption {
    font-size: 0.85rem;
}

/* Strength/weakness sections */
.performance-section-card {
    background: #020617;
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.performance-section-header {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.section-icon {
    font-size: 1.5rem;
}

.performance-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.performance-section-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Topic rows */
.performance-topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background-color: #020617;
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 0.5rem;
}

.performance-topic-name {
    font-weight: 600;
}

.performance-topic-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

.performance-topic-badge {
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.performance-topic-badge.good {
    background-color: #22c55e;
    color: #022c22;
}

.performance-topic-badge.bad {
    background-color: #fecaca;
    color: #7f1d1d;
}


/* ---------- Home hero layout with analytics card ---------- */

.landing-dashboard .dashboard-hero {
    padding: 2.5rem 2rem 3rem;
}

.landing-dashboard .hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

/* Left column */
.landing-dashboard .hero-content {
    flex: 1 1 320px;
    max-width: 640px;
}

/* Right column: analytics card */
.landing-dashboard .hero-analytics-card {
    flex: 1 1 260px;
    max-width: 360px;
    border-radius: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: radial-gradient(circle at top left, #1e40af 0, #020617 55%, #020617 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
}

/* Hide analytics card on very small screens to keep hero clean */
@media (max-width: 767.98px) {
    .landing-dashboard .hero-analytics-card {
        display: none;
    }
}

.hero-analytics-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-analytics-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #22c55e 0, #0f172a 60%);
    font-size: 1.3rem;
}

.hero-analytics-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.hero-analytics-caption {
    font-size: 0.8rem;
    color: #cbd5f5;
}

.hero-analytics-score {
    margin-bottom: 1.2rem;
}

.hero-analytics-score .score-value {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.1;
}

.hero-analytics-score .score-label {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Metrics list */
.hero-analytics-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.hero-metric .metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    color: #e5e7eb;
}

.hero-metric .metric-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.hero-metric .metric-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0.95;
}

.metric-bar-fill--good {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.metric-bar-fill--medium {
    background: linear-gradient(90deg, #eab308, #facc15);
}

.metric-bar-fill--low {
    background: linear-gradient(90deg, #ef4444, #f97373);
}

/* Footer legend */
.hero-analytics-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.dot-legend {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: 0.25rem;
}

.dot-good {
    background: #22c55e;
}

.dot-medium {
    background: #eab308;
}

.dot-low {
    background: #ef4444;
}

/* ---------- Home: How it works steps (different look from cards) ---------- */

.how-section {
    max-width: 960px;
    margin: 0 auto;
}

.how-header {
    margin-bottom: 1.5rem;
}

.how-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0.75rem;
}

/* vertical line */
.how-steps::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(96,165,250,.6), rgba(56,189,248,.0));
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top left, rgba(15,23,42,.9), rgba(15,23,42,.6));
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 18px 45px rgba(15,23,42,0.6);
}

.how-step-number {
    flex: 0 0 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e5f0ff;
    background: radial-gradient(circle at 30% 0, #3b82f6, #0f172a 70%);
    box-shadow: 0 6px 14px rgba(37,99,235,0.8);
    z-index: 1;
}

.how-step-body {
    flex: 1;
}

.how-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.how-step-text {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 0.5rem;
}

.how-step .btn {
    font-size: 0.8rem;
    padding-inline: 0.9rem;
    padding-block: 0.35rem;
}

/* wider layout on desktop */
@media (min-width: 992px) {
    .how-steps {
        max-width: 860px;
    }
}

/* ---------- Home: About / Exams section (non-card layout) ---------- */

.about-section {
    padding: 2.5rem 2rem 2.75rem;
    border-radius: 1.75rem;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.7));
    border: 1px solid rgba(148,163,184,0.32);
    box-shadow: 0 28px 70px rgba(15,23,42,0.85);
    margin-top: 3rem;
}

.text-primary {
    color: white !important;
}

.about-header {
    max-width: 640px;
    margin: 0 auto 2rem auto;
}

.about-grid {
    display: grid;
    gap: 1.75rem;
}

.about-col {
    min-width: 0;
}

.about-col-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.4rem;
}

.about-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bfdbfe;
    margin-bottom: 0.25rem;
}

.about-text {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 0.6rem;
}

.about-list {
    padding-left: 1.1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.about-list li + li {
    margin-top: 0.2rem;
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* Small screens: stack nicely */
@media (max-width: 575.98px) {
    .about-section {
        padding-inline: 1.25rem;
    }
}

/* Shared styling for question / option images in exams */
.exam-question-image,
.exam-option-image {
    max-width: 70%;        /* don’t overflow container width */
    max-height: 220px;      /* ↓ shrink tall images */
    width: auto;
    height: auto;
    display: block;
    margin: 1rem auto;      /* center the image with some spacing */
    object-fit: contain;    /* keep aspect ratio while fitting inside box */
}


/* dddd */
#QuestionImage {
    width: 5px;
}

.footer-link:hover {
    color: #e5e7eb !important;
}


/* === Password toggle on auth pages === */

.password-input-wrapper .form-control {
    padding-right: 3rem; /* leave space for toggle button */
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.password-toggle-btn:hover {
    color: #e5e7eb;
}


/* ---- Identity: Manage Account page ---- */

.account-settings-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.account-settings-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #e5e7eb;
    margin-bottom: 0.15rem;
}

.account-settings-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 520px;
}

.account-settings-identity {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.account-settings-identity span {
    opacity: 0.8;
}

.account-settings-identity strong {
    font-weight: 600;
}

.account-settings-card {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
    padding: 1.75rem 1.75rem 1.5rem;
}

.account-settings-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.account-settings-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

.account-settings-form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.account-settings-helper {
    font-size: 0.8rem;
    color: #6b7280;
}

.account-settings-card .form-control {
    background-color: #020617;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.account-settings-card .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.account-settings-save-btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-inline: 1.5rem;
}

.account-settings-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

@media (max-width: 767.98px) {
    .account-settings-header {
        align-items: flex-start;
    }

    .account-settings-title {
        font-size: 1.5rem;
    }
}



/* ==== FINAL: Dark, high-contrast app background (no repeat) ==== */

body,
.app-main-bg {
    /* dark navy base */
    background-color: #020617;

    /* subtle, dark gradients – no bright teal/gray */
    background-image:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 60%),
        radial-gradient(circle at bottom, rgba(15, 23, 42, 0.95), #020617);

    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #e5e7eb;
}

/* Keep the content area transparent so it sits directly on the dark bg */
.app-content {
    padding: 24px;
    background: transparent !important;
}

