/* ============================================
   VID ŠKOLA AI TUTOR - COMPLETE STYLES
   Exact port from original working static site
   ============================================ */

/* All styles are inline in this file - no external imports */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* TYPOGRAPHY SCALE (Modular Scale 1.25) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.563rem;     /* 25px */
  --text-2xl: 1.953rem;    /* 31px */
  --text-3xl: 2.441rem;    /* 39px */
  --text-4xl: 3.052rem;    /* 49px */

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Font Families */
  --font-main: "Nunito", "Segoe UI", sans-serif;

  /* COLOR PALETTE */
  --color-brand-primary: #4A90E2;
  --color-brand-primary-dark: #357ABD;
  --color-brand-primary-light: #5fa3f0;
  --color-brand-accent: #7ED321;
  --color-brand-purple: #667eea;
  --color-brand-purple-dark: #764ba2;

  --color-success: #27AE60;
  --color-success-dark: #229954;
  --color-success-light: #16a34a;
  --color-success-bg: #d5f4e6;
  --color-success-bg-dark: #ecfdf5;

  --color-warning: #F5A623;
  --color-warning-dark: #e67e22;
  --color-warning-bg: #fcf3cf;
  --color-warning-bg-light: #fef5e7;
  --color-warning-text: #7d6608;

  --color-error: #E74C3C;
  --color-error-dark: #C0392B;
  --color-error-bg: #fadbd8;
  --color-error-text: #78281f;

  --color-info: #2563eb;
  --color-info-dark: #1d4ed8;
  --color-info-light: #60a5fa;
  --color-info-bg: #dbeafe;
  --color-info-bg-light: #e0f2fe;

  --color-text-primary: #2c3e50;
  --color-text-secondary: #7f8c8d;
  --color-text-tertiary: #95a5a6;
  --color-text-inverse: #ffffff;
  --color-text-slate: #0f172a;
  --color-text-gray: #334155;
  --color-text-gray-light: #475569;
  --color-text-dark: #2c3e50;
  --color-text-medium: #7f8c8d;
  --color-text-light: #95a5a6;

  --color-bg-white: #FFFFFF;
  --color-bg-gray-50: #F8F9FA;
  --color-bg-gray-100: #ECF0F1;
  --color-bg-gray-200: #DFE6E9;
  --color-bg-slate: #f1f5f9;
  --color-bg-slate-light: #f8fafc;

  --color-border-light: #e5e7eb;
  --color-border-medium: #cbd5e0;
  --color-border-dark: #94a3b8;

  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  --gradient-green: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  --gradient-progress: linear-gradient(90deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);

  /* SPACING SCALE (8px Rhythm) */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.25rem;    /* 4px */
  --space-1: 0.5rem;       /* 8px */
  --space-2: 1rem;         /* 16px */
  --space-3: 1.5rem;       /* 24px */
  --space-4: 2rem;         /* 32px */
  --space-5: 2.5rem;       /* 40px */
  --space-6: 3rem;         /* 48px */
  --space-8: 4rem;         /* 64px */
  --space-10: 5rem;        /* 80px */

  --spacing-xs: var(--space-0-5);
  --spacing-sm: var(--space-1);
  --spacing-md: var(--space-2);
  --spacing-lg: var(--space-3);
  --spacing-xl: var(--space-4);
  --spacing-2xl: var(--space-6);
  --spacing-3xl: var(--space-8);

  /* TOUCH TARGETS */
  --tap-target-min: 44px;
  --tap-target-comfortable: 56px;
  --tap-target-small: 48px;
  --tap-target-large: 64px;

  /* BORDER RADIUS */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-full: 9999px;

  /* SHADOWS */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 15px 50px rgba(0, 0, 0, 0.25);

  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-inset-sm: inset 0 1px 3px rgba(15, 23, 42, 0.18);
  --shadow-inset-md: inset 0 2px 4px rgba(15, 23, 42, 0.2);

  --shadow-primary: 0 10px 24px rgba(74, 144, 226, 0.25);
  --shadow-success: 0 4px 12px rgba(39, 174, 96, 0.2);
  --shadow-error: 0 4px 12px rgba(231, 76, 60, 0.2);

  /* TRANSITIONS */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-INDEX */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-tooltip: 60;
  --z-toast: 70;

  /* LEGACY COMPATIBILITY */
  --primary-blue: var(--color-brand-primary);
  --primary-green: var(--color-brand-accent);
  --primary-orange: var(--color-warning);
  --primary-red: var(--color-error);
  --dark-gray: var(--color-text-primary);
  --light-gray: var(--color-bg-gray-100);
  --white: var(--color-bg-white);
  --success-green: var(--color-success);
  --error-red: var(--color-error);

  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-base: var(--text-base);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --font-size-xxl: var(--text-2xl);
  --font-size-large: var(--text-lg);
  --font-size-xlarge: var(--text-3xl);

  --spacing-small: var(--space-2);
  --spacing-medium: var(--space-4);
  --spacing-large: var(--space-6);

  --radius-small: var(--radius-md);
  --radius-medium: var(--radius-lg);
  --radius-large: var(--radius-2xl);

  --shadow-light: var(--shadow-base);
  --shadow-medium: var(--shadow-md);
  --shadow-heavy: var(--shadow-lg);
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--gradient-purple);
    min-height: 100vh;
    padding: var(--spacing-medium);
}

/* Subject-specific backgrounds - very light solid colors for better grey text contrast */
body.bg-nature {
    background: #D1FAE5; /* Very light mint/green */
}

body.bg-math {
    background: #DBEAFE; /* Very light blue */
}

body.bg-default {
    background: #EDE9FE; /* Very light purple */
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    opacity: 1;
}

.container.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.container.loaded {
    opacity: 1;
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
    background: linear-gradient(to bottom, #FFE4C4 0%, #FFDAB9 100%);
    padding: var(--space-4) 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin-bottom: var(--space-5);
    position: relative;
    overflow: visible;
}

.dashboard-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: flex-end;
    position: relative;
    min-height: 100px;
}

.dashboard-portrait {
    width: 160px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    position: relative;
    bottom: -32px;
    left: 30px;
    justify-self: start;
}

.dashboard-header-text {
    text-align: center;
    padding-bottom: var(--space-1);
    justify-self: center;
    align-self: center;
}

.dashboard-header h1 {
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.dashboard-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.welcome-message {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.618;
}

@media (max-width: 768px) {
    .dashboard-header-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dashboard-header-text {
        text-align: center;
        padding-bottom: 0;
        order: 1;
        margin-bottom: var(--space-3);
    }

    .dashboard-portrait {
        width: 130px;
        height: 160px;
        bottom: -24px;
        order: 2;
        justify-self: center;
        left: 0;
    }
}

/* ============================================
   SUBJECT GRID
   ============================================ */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

/* ============================================
   SUBJECT CARDS
   ============================================ */
.subject-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    text-align: center;
    text-decoration: none;
    color: var(--color-text-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.subject-card:active {
    transform: translateY(-5px) scale(1.01);
}

/* Subject icon */
.subject-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.subject-card h2 {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.subject-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-2);
}

/* Subject status badges */
.subject-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-2xl);
    font-size: var(--text-sm);
    font-weight: 600;
    background: var(--color-bg-gray-100);
    color: var(--color-text-secondary);
    margin-top: auto;
}

.subject-status-ready {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.subject-status-soon {
    background: var(--color-warning-bg-light);
    color: var(--color-warning);
}

/* Active subject (ready to use) */
.subject-active {
    /* No border - removed for cleaner look */
}

/* Disabled subject */
.subject-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subject-disabled:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.subject-disabled .subject-icon {
    animation: none;
    filter: grayscale(50%);
}

/* Subject-specific card colors - very light solid colors for better grey text contrast */
.subject-card--nature.subject-active {
    background: #A7F3D0; /* Very light green/mint */
}

.subject-card--math.subject-active {
    background: #BFDBFE; /* Very light blue */
}

.subject-card--default.subject-active {
    background: #DDD6FE; /* Very light purple */
}

/* ============================================
   DASHBOARD INFO
   ============================================ */
.dashboard-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.info-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.days-left {
    color: var(--color-error) !important;
    font-weight: 700;
    font-size: var(--text-lg) !important;
    margin-top: 10px !important;
}

/* Progress bars */
.progress-track {
    width: 100%;
    height: 14px;
    background: var(--color-border-light);
    border-radius: 999px;
    overflow: hidden;
    margin-top: var(--space-1);
    display: block;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.18);
}

.progress-track--lg {
    height: 18px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-green);
    border-radius: inherit;
    transition: width 0.35s ease;
}

/* ============================================
   DASHBOARD FOOTER
   ============================================ */
.dashboard-footer {
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-xl);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dashboard-footer p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.dashboard-footer a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dashboard-footer a:hover {
    color: var(--color-brand-primary-dark) !important;
    text-decoration: underline;
}

/* ============================================
   PARENT DASHBOARD
   ============================================ */
.dry-run-toggle {
    margin-bottom: 24px;
}

.dry-run-toggle .btn {
    width: 100%;
}

.parent-overview {
    margin-bottom: 28px;
}

.parent-overview__top {
    flex-wrap: wrap;
}

.parent-overview__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.parent-overview__stat {
    background: rgba(241, 245, 249, 0.7);
    border-radius: 16px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.parent-overview__value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-slate);
}

.parent-overview__label {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-gray-light);
    margin-top: 4px;
}

.parent-overview__progress {
    margin-top: 28px;
}

.parent-overview__progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.parent-overview__progress-title {
    font-weight: 600;
    color: var(--color-text-slate);
}

.parent-overview__progress-value {
    font-weight: 700;
    color: var(--color-info);
}

.parent-overview__progress-caption {
    margin-top: 8px;
    color: var(--color-text-gray-light);
    font-size: var(--text-sm);
}

.parent-subject-progress {
    display: grid;
    gap: var(--space-3);
}

.parent-subject-progress__item + .parent-subject-progress__item {
    margin-top: 18px;
}

.parent-subject-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--space-1);
}

.parent-subject-progress__name {
    font-weight: 600;
    color: var(--color-text-slate);
    margin-bottom: 4px;
}

.parent-subject-progress__percentage {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-info);
}

.activity-feed {
    display: grid;
    gap: 16px;
}

.activity-feed__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.activity-feed__item:last-child {
    border-bottom: none;
}

.activity-feed__icon {
    font-size: var(--text-lg);
}

.activity-feed__body {
    flex: 1;
}

.activity-feed__title {
    font-weight: 600;
    color: var(--color-text-slate);
    margin-bottom: 4px;
}

.activity-feed__meta {
    display: flex;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--color-text-gray-light);
    flex-wrap: wrap;
}

.activity-feed__timestamp {
    font-size: var(--text-xs);
    color: var(--color-border-dark);
    margin-top: 4px;
}

.parent-test-table {
    margin-top: 16px;
    overflow-x: auto;
}

.parent-test-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.parent-test-table th,
.parent-test-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: var(--text-sm);
}

.parent-test-table th {
    font-weight: 600;
    color: var(--color-text-gray-light);
    background: rgba(241, 245, 249, 0.6);
}

.parent-test-table__subtitle {
    font-size: var(--text-xs);
    color: var(--color-text-gray-light);
}

@media (max-width: 768px) {
    .parent-overview__stats {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .parent-overview__top {
        flex-direction: column;
        gap: 24px;
    }

    .parent-test-table table {
        min-width: 480px;
    }
}
/* ============================================
   HEADER (for lesson pages)
   ============================================ */
.header {
    text-align: center;
    margin-bottom: var(--spacing-large);
    border-bottom: 4px solid var(--primary-blue);
    padding-bottom: var(--spacing-medium);
    background: white;
    padding: var(--spacing-large);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.header h1 {
    font-size: var(--font-size-xlarge);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-small);
}

.header p {
    font-size: var(--font-size-large);
    color: var(--dark-gray);
}

/* ============================================
   NAVIGATION MENU (for lesson index pages)
   ============================================ */
.nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
}

.nav-card {
    background: var(--gradient-blue);
    color: var(--white);
    padding: var(--spacing-large);
    border-radius: var(--radius-medium);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-medium);
    text-align: center;
    min-height: var(--tap-target-large);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.nav-card h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-small);
    color: white;
}

.nav-card p {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: 5px;
    color: white;
}

.nav-card small {
    font-size: var(--text-sm);
    opacity: 0.8;
    color: white;
}

/* Different colors for different lessons */
.nav-card.lesson-1 { background: var(--gradient-blue); }
.nav-card.lesson-2 { background: linear-gradient(135deg, var(--color-brand-accent) 0%, #5FA319 100%); }
.nav-card.lesson-3 { background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%); }
.nav-card.lesson-4 { background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%); }
.nav-card.lesson-5 { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
.nav-card.test { background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%); }

/* Pulse animation for focus lesson */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   LESSON CONTENT
   ============================================ */
.lesson-content {
    margin-bottom: var(--spacing-large);
}

.lesson-section {
    margin-bottom: 50px;
    padding: var(--space-5);
    background: var(--light-gray);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.lesson-section h2 {
    font-size: var(--font-size-large);
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.lesson-section h3 {
    font-size: var(--text-xl);
    color: var(--dark-gray);
    margin-bottom: var(--space-2);
    margin-top: 30px;
}

.lesson-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: var(--text-lg);
}

.lesson-section ul {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.lesson-section ul li {
    padding: 6px 0;
    line-height: 1.7;
    font-size: var(--text-lg);
}

.lesson-section ol {
    margin-left: 1.25rem;
    margin-bottom: 24px;
}

.lesson-section ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: var(--text-lg);
}

.lesson-test-cta {
    background: var(--color-bg-slate);
    color: var(--color-text-slate);
    border-left: 5px solid var(--color-info);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.lesson-test-cta h2 {
    color: inherit;
    margin-bottom: 0.75rem;
}

.lesson-test-cta__text {
    color: var(--color-text-gray);
    font-size: var(--text-lg);
    margin-bottom: 1.25rem;
}

.lesson-test-cta__button {
    background: var(--color-info);
    color: var(--color-text-inverse);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    border: none;
}

.lesson-test-cta__button:hover {
    background: var(--color-info-dark);
}

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: var(--spacing-medium) auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    background: #000;
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio - creates height */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-medium);
}

/* ============================================
   IMAGES
   ============================================ */
.image-container {
    text-align: center;
    margin: var(--spacing-medium) 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.image-caption {
    font-size: var(--text-base);
    color: var(--dark-gray);
    margin-top: var(--spacing-small);
    font-style: italic;
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */
.interactive-box {
    background: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: var(--radius-medium);
    padding: var(--spacing-large);
    margin: var(--spacing-medium) 0;
    box-shadow: var(--shadow-light);
}

.interactive-box h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-medium);
}

/* Legend grid for map symbols */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin: 30px 0;
}

.legend-item {
    background: white;
    border: 3px solid var(--primary-blue);
    border-radius: var(--radius-medium);
    padding: var(--space-3);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.legend-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.legend-symbol {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
    display: block;
}

.legend-item strong {
    display: block;
    color: var(--dark-gray);
    font-size: var(--text-base);
    line-height: 1.4;
}

/* Comparison containers for side-by-side content */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: 30px 0;
}

.comparison-box {
    padding: 32px;
    border-radius: var(--radius-large);
    text-align: left;
    box-shadow: var(--shadow-light);
    background: var(--color-bg-slate-light);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.comparison-box h3 {
    color: var(--color-text-slate);
    margin-bottom: 16px;
    font-size: var(--text-2xl);
}

.comparison-box p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--color-text-gray);
}

.maketa-box {
    background: var(--color-success-bg-dark);
    border-left: 6px solid var(--color-success-light);
    border-radius: var(--radius-large);
    color: var(--color-success-dark);
}

.plan-box {
    background: var(--color-info-bg-light);
    border-left: 6px solid var(--color-info);
    border-radius: var(--radius-large);
    color: var(--color-info-dark);
}

/* Elevation/height cards */
.elevation-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 30px 0;
}

.elevation-card {
    padding: 35px;
    border-radius: var(--radius-large);
    color: white;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
}

.elevation-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.elevation-card h3 {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.elevation-card p {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-1);
}

/* Checkbox/checklist cards */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 30px 0;
}

.checklist-card {
    background: white;
    border-radius: var(--radius-medium);
    padding: var(--space-4);
    box-shadow: var(--shadow-medium);
    border-left: 6px solid var(--primary-blue);
}

.checklist-card.success {
    border-left-color: var(--success-green);
    background: var(--color-success-bg-dark);
}

.checklist-card.warning {
    border-left-color: var(--primary-orange);
    background: var(--color-warning-bg-light);
}

.checklist-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.checklist-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-card li {
    font-size: var(--text-lg);
    line-height: 2;
    padding-left: 10px;
    margin-bottom: var(--space-1);
}

/* Compass (for strane svijeta) */
.compass-widget {
    text-align: center;
    padding: var(--space-3);
}

.compass {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px auto;
    position: relative;
    border: 4px solid var(--dark-gray);
    border-radius: 50%;
    background: radial-gradient(circle, #f0f0f0 0%, #d0d0d0 100%);
    box-shadow: var(--shadow-heavy);
}

.compass-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.compass-direction {
    position: absolute;
    font-weight: bold;
    font-size: var(--text-2xl);
    color: var(--dark-gray);
}

.compass-direction.north { top: 10px; left: 50%; transform: translateX(-50%); color: var(--error-red); }
.compass-direction.south { bottom: 10px; left: 50%; transform: translateX(-50%); }
.compass-direction.east { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-direction.west { left: 10px; top: 50%; transform: translateY(-50%); }

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 120px;
    background: linear-gradient(to bottom, var(--error-red) 0%, var(--error-red) 50%, var(--dark-gray) 50%, var(--dark-gray) 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    border-radius: 3px;
    transition: transform 0.5s ease;
    z-index: 1;
}

/* Compass center dot - target the last child div with specific background */
.compass > div[style*="background:#2c3e50"],
.compass > div[style*="background: #2c3e50"] {
    position: absolute !important;
    top: calc(50% - 15px) !important; /* Adjusted to fix 30px vertical offset */
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 10 !important;
    border-radius: 50% !important;
}

/* ============================================
   DIRECTIONS GRID (4 GLAVNE STRANE SVIJETA)
   ============================================ */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin: 30px 0;
}

.direction-card {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: white;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.direction-card h3 {
    color: white;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
}

.direction-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
    margin: 0;
}

.direction-north {
    background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
}

.direction-east {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
}

.direction-south {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-primary-dark) 100%);
}

.direction-west {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

/* ============================================
   MOJ ZAVIČAJ - LESSON-SPECIFIC GRIDS & CARDS
   ============================================ */

/* Symbols Grid (lesson-02: zemljovid-i-karta) */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.symbol-card {
    background: var(--color-bg-slate-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.symbol-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand-primary-light);
}

.symbol {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
    display: block;
    line-height: 1.2;
}

.symbol-card h3,
.symbol-card h4 {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.symbol-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Occupations Grid (lesson-04: zanimanja) */
.occupations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.occupation-card {
    background: white;
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-base);
    cursor: pointer;
}

.occupation-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-primary);
}

.occupation-card:active {
    transform: translateY(-3px) scale(1.01);
}

.occupation-card h3 {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
}

.occupation-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Jobs Grid (lesson-04: specific jobs within occupations) */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-2);
    margin: var(--space-3) 0;
}

.job-card {
    background: var(--color-bg-slate);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.job-card:hover {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.job-card h4 {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    margin: 0;
    font-weight: var(--font-medium);
}

/* Transport Grid (lesson-05: promet) */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.transport-card {
    background: linear-gradient(135deg, var(--color-bg-white) 0%, var(--color-bg-slate-light) 100%);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-base);
    position: relative;
    overflow: hidden;
}

.transport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.transport-card:hover::before {
    transform: scaleX(1);
}

.transport-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-primary);
}

.transport-card h3,
.transport-card h4 {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
}

.transport-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Water Transport Grid (lesson-05: vodeni promet) */
.water-transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin: var(--space-3) 0;
}

.vessel-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 2px solid #7dd3fc;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.vessel-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: #0ea5e9;
}

.vessel-card h4 {
    font-size: var(--text-lg);
    color: var(--color-info-dark);
    margin-bottom: var(--space-1);
    font-weight: var(--font-semibold);
}

.vessel-card p {
    font-size: var(--text-sm);
    color: var(--color-text-gray);
    line-height: var(--leading-normal);
    margin: 0;
}

/* Traffic Signs Grid (lesson-05: prometni znakovi) */
.traffic-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.sign-card {
    background: white;
    border: 2px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.sign-card:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-warning-dark);
}

.sign-card:active {
    transform: scale(1.05);
}

.sign {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
    display: block;
    line-height: 1;
}

.sign-card h4 {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
    font-weight: var(--font-semibold);
}

.sign-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-snug);
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 18px 32px;
    font-size: var(--font-size-base);
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
    margin: 5px;
    min-height: var(--tap-target-comfortable);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--color-brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--color-text-tertiary);
    color: white;
}

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

.btn-small {
    padding: 12px 20px;
    font-size: var(--text-sm);
    min-height: var(--tap-target-min);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-success:hover {
    background: var(--color-success-dark);
}

.btn-large {
    padding: 20px 40px;
    font-size: var(--font-size-large);
}

/* ============================================
   QUIZ ELEMENTS
   ============================================ */
.quiz-question {
    background: var(--color-bg-gray-200);
    padding: var(--spacing-large);
    border-radius: var(--radius-small);
    margin-bottom: var(--spacing-medium);
    border: 10px solid var(--color-bg-gray-50);
    box-shadow: 2px 1px 2px rgba(0, 0, 0, 0.15);
}

.quiz-question h3 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-medium);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
}

.quiz-option {
    padding: 18px 24px;
    background: var(--white);
    border: 3px solid var(--light-gray);
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--text-lg);
    text-align: left;
    min-height: var(--tap-target-comfortable);
}

.quiz-option:hover {
    border-color: var(--primary-blue);
    background: var(--color-bg-gray-50);
    transform: translateX(5px);
}

.quiz-option.correct {
    border-color: var(--success-green);
    background: var(--color-success-bg);
}

.quiz-option.incorrect {
    border-color: var(--error-red);
    background: var(--color-error-bg);
}

.quiz-feedback {
    margin-top: var(--spacing-medium);
    padding: var(--spacing-medium);
    border-radius: var(--radius-small);
    font-weight: bold;
    display: none;
}

.quiz-feedback.show {
    display: block !important;
}

.quiz-feedback-correct {
    color: var(--success-green);
    font-size: var(--text-lg);
}

.quiz-feedback-wrong {
    color: var(--error-red);
    font-size: var(--text-lg);
}

.quiz-feedback.correct {
    background: var(--color-success-bg);
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.quiz-feedback.incorrect {
    background: var(--color-error-bg);
    color: var(--error-red);
    border: 2px solid var(--error-red);
}

/* ============================================
   PROGRESS BAR (lesson progress)
   ============================================ */
.progress-container {
    width: 100%;
    background: var(--light-gray);
    border-radius: var(--radius-large);
    height: 30px;
    margin: var(--spacing-medium) 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   ALERT BOXES
   ============================================ */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-medium);
    margin: 30px 0;
    font-weight: 500;
    box-shadow: var(--shadow-medium);
    line-height: 1.8;
}

.alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-lg);
}

.alert p {
    margin-bottom: 8px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert-info {
    background: var(--color-info-bg);
    border-left: 6px solid var(--primary-blue);
    color: var(--color-brand-primary-dark);
}

.alert-success {
    background: var(--color-success-bg);
    border-left: 6px solid var(--success-green);
    color: var(--color-success-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.alert-success strong {
    display: block;
    font-size: var(--text-lg);
    margin-bottom: 12px;
    font-weight: 700;
}

.alert-success p {
    line-height: 1.8;
    margin-bottom: 0;
}

/* For inline text after strong */
.alert-success strong + * {
    display: inline;
}

/* Force spacing between consecutive success/warning alerts */
.alert-success + .alert-warning,
.alert-warning + .alert-success,
.alert-success + .alert-success,
.alert-warning + .alert-warning {
    margin-top: 40px !important;
}

/* CRITICAL: Force spacing for inline-styled colored boxes */
.lesson-content > div[style*="background:"],
.lesson-content > div[style*="background :"],
.lesson-content div[style*="background:"],
.lesson-content div[style*="background :"] {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* Specific spacing between consecutive colored boxes */
div[style*="background:"] + div[style*="background:"],
div[style*="background :"] + div[style*="background :"] {
    margin-top: 40px !important;
}

.alert-warning {
    background: var(--color-warning-bg);
    border-left: 6px solid var(--primary-orange);
    color: var(--color-warning-text);
}

.alert-danger {
    background: var(--color-error-bg);
    border-left: 6px solid var(--error-red);
    color: var(--color-error-text);
}

.progress__bar {
    width: 0;
    transition: width 0.5s ease;
}

/* Test review layout */
.test-review__container {
    max-width: 56rem;
    margin: 0 auto;
    padding-top: 2rem;
}

.test-review__header {
    margin-bottom: 0.5rem;
}

.test-review__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-review__card {
    border-left: 4px solid transparent;
}

.test-review__card--correct {
    border-color: var(--success-green);
}

.test-review__card--incorrect {
    border-color: var(--error-red);
}

.test-review__question-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.test-review__question-body {
    flex: 1;
}

.test-review__question-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.test-review__answer-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.test-review__answer-label {
    margin-bottom: 0.25rem;
}

.test-review__answer-value {
    font-weight: 500;
    margin: 0;
}

.test-review__explanation {
    margin-top: 0;
}

.test-review__hint,
.test-review__changes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.test-review__hint {
    color: var(--primary-orange);
}

.btn-elevated {
    box-shadow: var(--shadow-medium);
}

/* Exercise (Maketa vs Plan) */
.exercise {
    display: grid;
    gap: 1rem;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.exercise__emoji {
    font-size: 4rem;
}

.exercise__question {
    font-size: 1.25rem;
    font-weight: 600;
}

.exercise__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.exercise__actions .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.exercise__feedback {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-medium);
    font-weight: 600;
}

.exercise__feedback--success {
    background: var(--color-success-bg);
    color: var(--color-success-dark);
}

.exercise__feedback--error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: var(--spacing-large) 0;
    margin-top: var(--spacing-large);
    border-top: 2px solid var(--light-gray);
    background: white;
    border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
    flex-wrap: wrap;
}

.footer-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 14px 24px;
    min-height: var(--tap-target-min);
    display: inline-flex;
    align-items: center;
}

.footer-nav a:hover {
    color: var(--dark-gray);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-small);
    }

    .dashboard-header h1 {
        font-size: var(--text-3xl);
    }

    .welcome-message {
        font-size: var(--text-lg);
    }

    .subject-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-3);
    }

    .subject-card {
        min-height: 220px;
        padding: var(--space-3);
    }

    .subject-icon {
        font-size: var(--text-4xl);
    }

    .header h1 {
        font-size: var(--text-2xl);
    }

    .nav-menu {
        grid-template-columns: 1fr;
    }

    .compass {
        width: 250px;
        height: 250px;
    }

    .lesson-section {
        padding: var(--spacing-medium);
    }

    .legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .legend-symbol {
        font-size: var(--text-3xl);
    }

    .comparison-container {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .comparison-box {
        padding: var(--space-3);
    }

    .comparison-box h3 {
        font-size: var(--text-2xl);
    }

    .elevation-card {
        padding: var(--space-3);
    }

    .elevation-card h3 {
        font-size: var(--text-2xl);
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .dashboard-header {
        padding: 25px 15px;
    }

    .dashboard-header h1 {
        font-size: var(--text-2xl);
    }

    .welcome-message {
        font-size: var(--text-base);
    }

    .subject-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subject-card {
        min-height: 200px;
        padding: var(--space-3);
    }

    .subject-icon {
        font-size: var(--text-4xl);
    }

    .subject-card h2 {
        font-size: var(--text-lg);
    }

    .dashboard-info {
        grid-template-columns: 1fr;
    }

    .compass {
        width: 220px;
        height: 220px;
    }

    .btn {
        padding: 14px 24px;
        font-size: var(--text-base);
        min-height: var(--tap-target-min);
    }

    .legend-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .legend-symbol {
        font-size: var(--text-3xl);
    }

    .legend-item {
        padding: 15px;
    }

    .comparison-box {
        padding: var(--space-3);
    }

    .comparison-box h3 {
        font-size: var(--text-xl);
    }

    .elevation-card {
        padding: var(--space-3);
    }

    .elevation-card h3 {
        font-size: var(--text-2xl);
    }

    .alert {
        padding: var(--space-3);
    }

    /* Directions/Compass Cards - Mobile */
    .directions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        margin: 20px 0;
    }

    .direction-card {
        padding: var(--space-3);
    }

    .direction-card h3 {
        font-size: var(--text-xl);
    }

    .direction-card p {
        font-size: var(--text-sm);
    }

    /* Lesson Tables - Mobile */
    .lesson-table {
        font-size: var(--text-sm);
    }

    .lesson-table__cell {
        padding: var(--space-2);
        font-size: var(--text-2xl);
    }

    .lesson-example {
        font-size: var(--text-xl);
    }

    /* Lesson Content - Mobile */
    .lesson-section h2 {
        font-size: var(--text-xl);
    }

    .lesson-section h3 {
        font-size: var(--text-lg);
    }

    .card {
        padding: var(--space-3);
    }

    .card-header {
        padding: var(--space-2);
        font-size: var(--text-base);
    }

    .quiz-option {
        padding: var(--space-3);
        font-size: var(--text-sm);
        min-height: var(--tap-target-min);
    }

    /* Navbar - Mobile */
    .navbar-user {
        font-size: var(--text-sm);
    }

    .navbar-title {
        font-size: var(--text-lg);
    }

    /* Breadcrumb - Mobile */
    .breadcrumb__list {
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .breadcrumb__item {
        font-size: var(--text-sm);
    }

    /* Subject Header - Mobile */
    .subject-header__icon {
        font-size: var(--text-4xl);
    }

    .subject-header__title {
        font-size: var(--text-2xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .subject-header__description {
        font-size: var(--text-base);
    }

    .subject-header__progress-text {
        font-size: var(--text-sm);
    }

    /* Unit Header - Mobile */
    .unit-header {
        gap: var(--space-2);
    }

    .unit-header__icon {
        font-size: var(--text-2xl);
    }

    .unit-header__title {
        font-size: var(--text-xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .unit-header__description {
        font-size: var(--text-sm);
    }

    /* Lesson Cards - Mobile */
    .lesson-card__content {
        gap: var(--space-2);
        padding: var(--space-2);
    }

    .lesson-card__icon {
        font-size: var(--text-xl);
        min-width: 32px;
        flex-shrink: 0;
    }

    .lesson-card__text {
        flex: 1;
        min-width: 0;
    }

    .lesson-card__title {
        font-size: var(--text-base);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .lesson-card__description {
        font-size: var(--text-sm);
    }

    .lesson-card__badge {
        font-size: var(--text-xs);
    }

    /* Progress Bar - Mobile */
    .progress-info {
        font-size: var(--text-base);
    }

    .progress-value {
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 2s linear infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-small { margin-top: var(--spacing-small); }
.mt-medium { margin-top: var(--spacing-medium); }
.mt-large { margin-top: var(--spacing-large); }

.mb-small { margin-bottom: var(--spacing-small); }
.mb-medium { margin-bottom: var(--spacing-medium); }
.mb-large { margin-bottom: var(--spacing-large); }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(48px, 12vh, 96px) var(--spacing-medium);
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: var(--spacing-medium);
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.login-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-small);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.login-card {
    background: white;
    border-radius: var(--radius-large);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-medium);
}

.login-card-title {
    font-size: var(--text-3xl);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.form-remember {
    gap: 12px;
}

.form-remember__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--dark-gray);
}

.form-helper-text {
    font-size: var(--text-xs);
    color: rgba(23, 34, 61, 0.7);
    margin: 0;
}

.form-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    font-size: var(--text-base);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    background: white;
    min-height: var(--tap-target-comfortable);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.btn-full-width {
    width: 100%;
    margin: 0;
    margin-top: var(--spacing-medium);
}

.login-footer {
    text-align: center;
    margin-top: var(--spacing-medium);
}

.login-footer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

body.login-page {
    padding: 0;
}

@media (max-height: 680px) {
    .login-wrapper {
        padding-top: 32px;
    }
}

.alert-error {
    background: var(--color-error-bg);
    border: 2px solid var(--error-red);
    border-radius: var(--radius-small);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.alert-error .alert-text {
    color: var(--color-error-text);
    font-weight: 500;
    margin: 0;
}

.alert-success {
    background: var(--color-success-bg);
    border: 2px solid var(--success-green);
    border-radius: var(--radius-small);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.alert-success .alert-text {
    color: var(--color-success-dark);
    font-weight: 500;
    margin: 0;
}

/* ============================================
   LESSONS PAGE STYLES
   ============================================ */

/* Page wrapper for lessons pages with navbar */
.page-wrapper {
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-large);
    border-radius: var(--radius-medium);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-medium);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    flex: 1;
}

.navbar-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.navbar-user {
    color: var(--dark-gray);
    font-size: var(--text-base);
}

/* Sub-navigation (parent masquerade bar) */
.subnav {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    margin: 0 auto 24px;
    max-width: 1000px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.subnav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.subnav__actions .btn {
    margin: 0;
}

.subnav__breadcrumbs {
    flex: 1;
}

.subnav__breadcrumbs .breadcrumb__list {
    margin: 0;
    display: flex;
    align-items: baseline;
}

.subnav--dry-run {
    background: rgba(76, 106, 255, 0.4);
    color: white;
}

.subnav--dry-run .breadcrumb__link {
    color: var(--color-info-bg-light);
}

.subnav--dry-run .breadcrumb__link:hover {
    color: white;
}

/* Content container */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    padding-bottom: 80px;
    padding-top: 20px;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: var(--space-4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: var(--color-brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Card system */
.card {
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: var(--spacing-large);
    overflow: hidden;
}

.card-header {
    background: var(--gradient-blue);
    padding: var(--spacing-large);
    color: white;
}

.card-body {
    padding: var(--spacing-large);
}

/* Subject-specific card-header colors */
.card-header--nature {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); /* Darker green gradient */
}

.card-header--math {
    background: var(--gradient-blue); /* Keep blue gradient */
}

.card-header--default {
    background: var(--gradient-purple); /* Purple gradient */
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Typography for lessons page */
.heading-1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin: 0;
}

.heading-2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0;
}

.heading-3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--dark-gray);
}

.heading-4 {
    font-size: var(--text-lg);
    font-weight: 600;
}

.text-large {
    font-size: var(--text-lg);
}

.text-small {
    font-size: var(--text-sm);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

/* Progress bar for lessons page */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.progress-value {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: var(--text-lg);
}

.quiz-question-container .progress-label,
.quiz-question-container .progress-value {
    color: rgba(248, 250, 252, 0.95);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: var(--text-sm);
    font-weight: 600;
}

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

.badge--error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--error-red);
}

/* Utility spacing classes */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

.block {
    display: block;
}

/* Button secondary variant */
.btn-secondary {
    background: var(--color-text-tertiary);
    color: white;
}

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

.btn-small {
    padding: 12px 20px;
    font-size: var(--text-sm);
    min-height: var(--tap-target-min);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--spacing-large);
    color: var(--color-text-secondary);
}

/* ============================================
   BREADCRUMB COMPONENT STYLES
   ============================================ */
.breadcrumb__list {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: var(--text-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb__item {
    display: inline;
}

.breadcrumb__link {
    color: var(--color-info);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 8px 4px;
    display: inline-block;
    min-height: var(--tap-target-min);
    line-height: 1.5;
}

.breadcrumb__link:hover {
    color: var(--color-info-dark);
    text-decoration: underline;
}

.breadcrumb__separator {
    color: rgba(45, 55, 72, 0.6);
    margin: 0 8px;
}

.breadcrumb__current {
    color: var(--color-text-slate);
    font-weight: 600;
    padding: 8px 4px;
    display: inline-block;
    line-height: 1.5;
}

.breadcrumb__list--light .breadcrumb__link,
.breadcrumb__list--light .breadcrumb__current {
    color: #1F2937; /* Dark gray text */
    text-shadow: none;
}

.breadcrumb__list--light .breadcrumb__link:hover {
    color: #374151; /* Slightly lighter on hover */
}

.breadcrumb__list--light .breadcrumb__separator {
    color: #6B7280; /* Medium gray */
}

.breadcrumb--white {
    background: rgba(255, 255, 255, 0.92);
    padding: 18px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: var(--text-sm);
}

.breadcrumb--white strong {
    color: var(--color-text-slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    padding: 8px 4px;
    display: inline-block;
    line-height: 1.5;
}

/* ============================================
   LESSON CARD COMPONENT STYLES
   ============================================ */
.lesson-card {
    padding: 1rem;
    border: 2px solid var(--color-bg-gray-100);
    background-color: var(--color-bg-gray-50);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.lesson-card--completed {
    border-color: var(--color-success);
    background-color: var(--color-success-bg);
}

.lesson-card__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lesson-card__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.lesson-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.lesson-card__text {
    flex: 1;
}

.lesson-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.lesson-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.lesson-card__badge {
    flex-shrink: 0;
    margin-right: 1rem;
}

.lesson-card__arrow {
    flex-shrink: 0;
    color: var(--color-text-tertiary);
}

.lesson-card__arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Subject Header */
.subject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-header__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.subject-header__icon {
    font-size: 4rem;
}

.subject-header__title {
    color: var(--color-text-primary);
}

.subject-header__description {
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.subject-header__progress-text {
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* Unit Cards */
.units-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.unit-header__icon {
    font-size: 3rem;
}

.unit-header__title {
    color: white;
}

.unit-header__description {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

/* Lessons List */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-link {
    display: block;
    text-decoration: none;
}

/* Badge Styles */
.badge--start {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(37, 99, 235);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: var(--text-sm);
    font-weight: 600;
}

.badge__icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.badge__content {
    display: inline-flex;
    align-items: center;
}

/* Test Section */
.tests-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.tests-section__title {
    margin-bottom: 1.5rem;
}

.tests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-card__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.test-card__info {
    flex: 1;
}

.test-card__title {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.test-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.test-card__details p {
    margin: 0.25rem 0;
}

.test-card__previous-result {
    margin-top: 0.75rem;
}

.test-card__action {
    margin-left: 1rem;
}

.badge--warning {
    background-color: var(--color-warning-bg);
    color: var(--color-warning-text);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.back-button__icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Empty State */
.empty-state__text {
    color: var(--color-text-tertiary);
}

/* Lesson Completion Section */
.lesson-complete {
    text-align: center;
    padding: var(--space-5);
    background: var(--color-bg-gray-50);
    border-radius: var(--radius-xl);
    margin: 40px 0;
}

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

.lesson-complete__title {
    color: var(--color-success);
    margin-bottom: var(--space-1);
    font-size: var(--text-2xl);
}

.lesson-complete__text {
    font-size: var(--text-lg);
    margin: 0;
}

/* Footer Navigation */
.footer-nav__disabled {
    color: var(--color-text-tertiary);
    cursor: not-allowed;
    padding: 10px 20px;
}

.footer-nav__unit {
    color: var(--color-text-secondary);
    margin-top: 20px;
    font-size: var(--text-sm);
}

/* ============================================
   LESSON CONTENT COMPONENTS
   ============================================ */

/* Lesson tables */
.lesson-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0;
}

.lesson-table__header {
    padding: var(--space-2);
    text-align: center;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-gray-100);
}

.lesson-table__cell {
    padding: var(--space-3);
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    border: 1px solid var(--color-border-light);
}

.lesson-table__cell--primary { color: var(--color-brand-primary); }
.lesson-table__cell--success { color: var(--color-success); }
.lesson-table__cell--warning { color: var(--color-warning); }

/* Lesson content elements */
.lesson-example {
    font-size: var(--text-2xl);
    text-align: center;
    margin: var(--space-3) 0;
}

.lesson-list {
    font-size: var(--text-lg);
    margin-top: var(--space-2);
}

.lesson-paragraph {
    text-align: center;
    font-size: var(--text-xl);
    margin-top: var(--space-2);
}

/* Utility classes for spacing */
.u-margin-top--lg { margin-top: var(--space-3); }
.u-margin-top--md { margin-top: var(--space-2); }
.u-margin-top--sm { margin-top: var(--space-1); }
.u-margin-bottom--lg { margin-bottom: var(--space-3); }
.u-margin-bottom--md { margin-bottom: var(--space-2); }
.u-margin-bottom--sm { margin-bottom: var(--space-1); }
.u-margin--none { margin: 0; }

/* Utility classes for text */
.u-text--sm { font-size: 0.9rem; }
.u-text--center { text-align: center; }

/* Test Show Page Styles */
.test-show-container {
    max-width: 900px;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.test-header__icon {
    font-size: 3rem;
}

.test-header__title {
    color: white;
    margin: 0;
}

.test-header__subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.test-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.test-stat__value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.test-stat__value--questions {
    color: var(--color-brand-primary);
}

.test-stat__value--passing {
    color: var(--color-warning);
}

.test-stat__value--score-good {
    color: var(--color-success);
}

.test-stat__value--score-warning {
    color: var(--color-error);
}

.test-stat__value--score-none {
    color: var(--color-text-tertiary);
}

.test-stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-instructions {
    margin-bottom: 2rem;
    background: var(--color-bg-slate-light);
    border-left: 5px solid var(--color-info);
    border-radius: var(--radius-medium);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-light);
}

.test-instructions__title {
    color: var(--color-text-slate);
    margin-bottom: 1rem;
}

.test-instructions__list {
    padding-left: 1.25rem;
    margin: 0;
}

.test-instructions__item {
    margin-bottom: 0.65rem;
    color: var(--color-text-gray);
    list-style: disc;
}

.test-instructions__item strong {
    font-weight: 600;
}

.test-previous {
    background: #e8f4f8;
    border-left: 6px solid var(--color-brand-primary);
}

.test-previous__title {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.test-previous__content {
    font-size: var(--text-base);
    color: #5a6c7d;
}

.test-previous__passed {
    color: var(--color-success);
    font-weight: 600;
}

.test-previous__retry {
    color: var(--color-error);
    font-weight: 600;
}

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

.test-start__button {
    background: var(--gradient-purple);
    border: none;
}

.test-start__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.test-start__button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.test-start__button-icon {
    font-size: 1.5rem;
}

.test-start__back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
}

.test-start__back:hover {
    color: var(--color-text-primary);
}

.test-tips__title {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.test-tips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.test-tip {
    display: flex;
    gap: 1rem;
}

.test-tip__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.test-tip__title {
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.test-tip__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Utility margin class */
.u-margin-top--lg {
    margin-top: 40px;
}

.progress__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 8px;
}

.quiz-question-container {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.quiz-header {
    background: var(--gradient-blue);
    padding: 2rem;
    color: white;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.quiz-progress__track {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.quiz-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--gradient-green);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    transition: width 0.35s ease;
}

.quiz__content {
    padding: 2.5rem;
    background: white;
    position: relative;
    z-index: 1;
}

.quiz__question {
    margin-bottom: 2rem;
}

.quiz__question-text {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz__option {
    background: white;
    border: 3px solid #ecf0f1;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-height: var(--tap-target-comfortable);
}

.quiz__option:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quiz__option--selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.quiz__option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz__option-indicator--selected {
    border-color: #667eea;
    background: #667eea;
}

.quiz__option-indicator-dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

/* Hide native radio buttons completely but keep them functional */
input[type="radio"].answer-radio,
input[type="radio"].sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
    opacity: 0 !important;
    /* DO NOT use pointer-events: none - it prevents radio button from working */
}

.quiz__navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-bg-gray-100);
}

.quiz__nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quiz__nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 18px 32px !important;
    font-size: var(--text-lg) !important;
    min-height: var(--tap-target-comfortable) !important;
}

.quiz__nav-button svg {
    width: 20px;
    height: 20px;
}

/* Make submit button consistent size */
.quiz__navigation form button[type="submit"] {
    padding: 18px 40px !important;
    font-size: var(--text-lg) !important;
    min-height: var(--tap-target-comfortable) !important;
}

.quiz__helper-text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

/* Fix navigation button icon sizes */
.quiz__nav-button--prev svg,
.back-button__icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* Ensure test page content is above purple background */
.page-wrapper {
    position: relative;
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 2;
}

/* Quiz question page specific styles - no inline styles */
.breadcrumb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz__option-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.quiz__option-text {
    color: var(--color-text-dark, #2c3e50);
}

.quiz__hint-hidden {
    display: none;
    margin-top: 1rem;
}

.btn-exit-test {
    padding: 8px 16px;
    font-size: var(--text-sm);
}

.quiz__submit-button {
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white !important;
        margin: 0;
        padding: 20pt;
    }

    .container {
        box-shadow: none;
    }

    .footer-nav, .btn, .video-container {
        display: none;
    }

    /* ============================================
       WORKSHEET PRINT STYLES
       ============================================ */
    /* Hide all UI elements when printing worksheets */
    .no-print,
    .navbar,
    nav.navbar,
    .breadcrumb--white,
    .alert,
    .footer-nav,
    .page-wrapper nav,
    .page-wrapper > .navbar,
    button {
        display: none !important;
    }

    /* Reset page wrapper for worksheets */
    .page-wrapper {
        padding: 0 !important;
        background: white !important;
        min-height: auto !important;
    }

    /* Reset content container */
    .content-container {
        padding: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Reset card styles */
    .card,
    .worksheet-card {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: white !important;
    }

    .card-body {
        padding: 0 !important;
    }

    /* Worksheet content styles */
    .worksheet-content {
        font-family: Arial, sans-serif;
        font-size: 11pt;
        line-height: 1.4;
        color: black;
    }

    .worksheet-content h1 {
        font-size: 18pt;
        margin-bottom: 12pt;
        page-break-after: avoid;
        color: black;
    }

    .worksheet-content h2 {
        font-size: 16pt;
        margin-top: 16pt;
        margin-bottom: 10pt;
        page-break-after: avoid;
        color: black;
    }

    .worksheet-content h3 {
        font-size: 14pt;
        margin-top: 12pt;
        margin-bottom: 8pt;
        page-break-after: avoid;
        color: black;
    }

    .worksheet-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 12pt 0;
        page-break-inside: avoid;
    }

    .worksheet-content table th,
    .worksheet-content table td {
        border: 1px solid #000;
        padding: 6pt 8pt;
        text-align: left;
    }

    .worksheet-content table th {
        background-color: #f0f0f0;
        font-weight: bold;
    }

    .worksheet-content hr {
        border: none;
        border-top: 1px solid #ccc;
        margin: 16pt 0;
    }

    .worksheet-content p {
        margin: 6pt 0;
        color: black;
    }

    .worksheet-content ul,
    .worksheet-content ol {
        margin: 6pt 0;
        padding-left: 20pt;
    }

    .worksheet-content li {
        margin: 3pt 0;
    }

    .worksheet-content strong {
        font-weight: bold;
        color: black;
    }
}
