@charset "UTF-8";

/*
 * aUI LMS Consolidated Stylesheet
 * Based on elements_chart.html styling with stars background and blue transparent filter
 *
 * Color Palette:
 * - aUI symbols: #ECFF00 (yellow)
 * - Roman transcription: #40f24d (green)
 * - English text: #ffffff (white)
 * - English headings: #23E9D5 (cyan)
 */

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'aUI';
    src: url('aui.ttf') format('truetype');
}

@font-face {
    font-family: 'aUIFont';
    src: url('aui.ttf') format('truetype');
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

/* ============================================
   CSS VARIABLES (Golden Rule Color Scheme)
   ============================================ */
:root {
    /* Primary Colors */
    --aui-text: #ECFF00;           /* aUI symbols (yellow) */
    --roman-text: #40f24d;         /* Roman transcription (green) */
    --english-text: #ffffff;       /* English text and words (white) */
    --english-headings: #23E9D5;   /* English headings in text lessons (cyan) */

    /* Neon Accents (from elements chart) */
    --neon-purple: #cc66ff;
    --neon-green: #66ff66;
    --neon-yellow: #ffff77;
    --neon-aui: #23E9D5;
    --neon-aui-glow: rgba(35, 233, 213, 0.4);
    --neon-white: #ffffff;

    /* Background */
    --background-card: linear-gradient(341deg, rgba(2, 0, 36, 1) 0%, rgb(24 13 54) 35%, #030a5f 70%);

    /* Feedback Colors */
    --success-bg: rgba(64, 242, 77, 0.2);
    --success-text: #40f24d;
    --error-bg: rgba(255, 107, 107, 0.2);
    --error-text: #ff6b6b;

    /* Layout */
    --container-width: 1000px;
    --container-padding-x: 24px;
    --transition-duration: 0.2s;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes neonPulse {
    0% {
        opacity: 0.9;
        text-shadow: 0 0 3px var(--neon-aui-glow), 0 0 6px var(--neon-aui-glow);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 8px var(--neon-aui-glow), 0 0 15px var(--neon-aui-glow), 0 0 45px var(--neon-aui-glow);
    }
    100% {
        opacity: 0.9;
        text-shadow: 0 0 3px var(--neon-aui-glow), 0 0 6px var(--neon-aui-glow);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 7px var(--neon-purple), inset 0 0 3px var(--neon-purple); }
    50% { box-shadow: 0 0 20px var(--neon-purple), inset 0 0 10px var(--neon-purple); }
    100% { box-shadow: 0 0 7px var(--neon-purple), inset 0 0 3px var(--neon-purple); }
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    height: 100%;
    scrollbar-gutter: stable;
}

html,
:has(:target) {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #000;
    color: var(--english-text);
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    position: relative;
}

/* Module pages specific body */
body.module-page {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */

/* Layer 1: Gradient overlay (purple/blue) */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top left,
        rgba(102, 51, 153, 0.3) 0%,
        transparent 60%
    ),
    radial-gradient(
        circle at bottom right,
        rgba(0, 102, 204, 0.2) 0%,
        transparent 70%
    ),
    #000;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Layer 2: Stars (tsparticles container) */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    color: var(--english-headings);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--english-headings), 0 0 30px var(--english-headings);
    font-size: 2.2rem;
    font-family: 'Noto Sans', sans-serif;
}

h2 {
    color: var(--english-headings);
    text-shadow: 0 0 10px var(--english-headings);
}

h3 {
    color: var(--english-headings);
    text-shadow: 0 0 8px var(--english-headings);
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #23E9D5;
    border: 2px solid #23E9D5;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Noto Sans', sans-serif;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.back-button:hover {
    background: #23E9D5;
    color: #000;
    box-shadow: 0 0 15px #23E9D5;
}

/* ============================================
   LESSON CONTAINER (Card style)
   ============================================ */
.lesson-container {
    background: var(--background-card);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    color: var(--english-headings);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--english-headings);
}

.section-description {
    color: var(--english-text);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   TEXT CONTENT
   ============================================ */
.text-content {
    color: var(--english-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.text-content h2 {
    color: var(--english-headings);
    font-size: 1.6rem;
    margin: 25px 0 15px 0;
    text-shadow: 0 0 10px var(--english-headings);
}

.text-content h3 {
    color: var(--english-headings);
    font-size: 1.3rem;
    margin: 20px 0 12px 0;
    text-shadow: 0 0 8px var(--english-headings);
}

.text-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.text-content strong {
    color: var(--english-text);
    font-weight: 700;
}

.text-content em {
    color: var(--english-text);
    font-style: italic;
}

.text-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

/* ============================================
   AUI FONT CLASSES
   ============================================ */
.aui-symbol {
    font-family: 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 3.6rem;
    font-weight: normal;
}

.aui-inline {
    font-family: 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 2.4rem;
    font-weight: normal;
}

.roman-text {
    color: var(--roman-text);
    font-weight: 600;
}

.english-text {
    color: var(--english-text);
}

/* Legacy aUI classes from styles.css */
.symbol {
    font-family: 'aUI', sans-serif;
    color: var(--aui-text);
    text-shadow: 0 0 10px var(--aui-text), 0 0 20px var(--aui-text);
    animation: neonPulse 3s infinite ease-in-out;
}

.roman {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    color: var(--roman-text);
}

.category {
    color: var(--english-headings);
    font-weight: bold;
}

/* ============================================
   IMAGES
   ============================================ */
.section-image {
    width: 300px;
    height: 300px;
    border: 4px solid var(--english-headings);
    border-radius: 15px;
    margin: 0 auto 30px auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(35, 233, 213, 0.3);
}

/* YouTube embed */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   QUESTION COMPONENTS
   ============================================ */
.question-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.question-text {
    color: var(--english-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

.exercise-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(64, 242, 77, 0.2);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}

/* Multiple Choice */
.mc-options {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.mc-option {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-text);
    border: 2px solid var(--english-headings);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    line-height: 1.4;
}

.mc-option:hover {
    background: rgba(35, 233, 213, 0.1);
    box-shadow: 0 0 15px rgba(35, 233, 213, 0.3);
}

.mc-option.selected-correct {
    background: var(--success-bg);
    border-color: var(--success-text);
    color: var(--success-text);
}

.mc-option.selected-incorrect {
    background: var(--error-bg);
    border-color: var(--error-text);
    color: var(--error-text);
}

.mc-option.show-correct {
    outline: 3px solid var(--success-text);
    box-shadow: 0 0 15px var(--success-text);
}

/* True/False Buttons */
.tf-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tf-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-text);
    border: 2px solid var(--english-headings);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tf-btn:hover {
    background: var(--english-headings);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--english-headings);
}

.tf-btn.correct {
    background: var(--success-bg);
    border-color: var(--success-text);
    color: var(--success-text);
}

.tf-btn.incorrect {
    background: var(--error-bg);
    border-color: var(--error-text);
    color: var(--error-text);
}

/* ============================================
   TEXT INPUT
   ============================================ */
.text-input-container {
    margin: 20px 0;
}

.text-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-text);
    border: 2px solid var(--english-headings);
    border-radius: 8px;
    font-family: 'Noto Sans', sans-serif;
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(35, 233, 213, 0.5);
}

.text-input.correct {
    border-color: var(--success-text);
    background: var(--success-bg);
    color: var(--success-text);
}

.text-input.incorrect {
    border-color: var(--error-text);
    background: var(--error-bg);
    color: var(--error-text);
}

/* ============================================
   BUTTONS
   ============================================ */
.submit-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-headings);
    border: 2px solid var(--english-headings);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.submit-btn:hover {
    background: var(--english-headings);
    color: #000;
    box-shadow: 0 0 15px var(--english-headings);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.check-button {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-headings);
    border: 2px solid var(--english-headings);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.check-button:hover {
    background: var(--english-headings);
    color: #000;
    box-shadow: 0 0 15px var(--english-headings);
    transform: translateY(-2px);
}

/* ============================================
   FEEDBACK
   ============================================ */
.feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
    font-size: 1rem;
    line-height: 1.4;
}

.feedback.correct {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}

.feedback.incorrect {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-text);
}

/* ============================================
   MODULE 02 SYMBOL OVERVIEW STYLES
   ============================================ */

/* Overview grid for vowels/consonants/symbols */
.vowels-overview,
.symbols-overview,
.sonorants-overview,
.numbers-overview {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    text-align: center;
}

.vowel-item,
.symbol-item,
.sonorant-item,
.number-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--aui-text);
    border-radius: 12px;
    padding: 12px 8px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 140px;
}

.vowel-symbol,
.overview-symbol,
.sonorant-symbol,
.number-symbol {
    font-family: 'aUI', 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.vowel-roman,
.overview-roman,
.sonorant-roman,
.number-roman {
    color: var(--roman-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.vowel-meaning,
.overview-meaning,
.sonorant-meaning,
.number-meaning {
    color: var(--english-text);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Multi-row overview layouts (stops, numbers) */
.symbols-overview.two-row,
.numbers-overview.two-row {
    flex-wrap: wrap;
}

.overview-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

/* Individual symbol focus pages */
.symbol-focus {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--aui-text);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
}

.aui-massive {
    font-family: 'aUI', 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--aui-text);
}

.meaning-title {
    color: var(--english-headings);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 0 0 20px var(--english-headings);
}

.pronunciation {
    color: var(--roman-text);
    font-size: 1.3rem;
    font-weight: 600;
}

.details-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.details-section h3 {
    color: var(--english-headings);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.details-section p {
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--english-headings), var(--roman-text));
    width: 0%;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px var(--english-headings);
}

.progress-text {
    text-align: center;
    color: var(--english-text);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-headings);
    border: 2px solid var(--english-headings);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--english-headings);
    color: #000;
    box-shadow: 0 0 10px var(--english-headings);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   PRIVATE WRITING SECTION
   ============================================ */
.private-writing {
    background: rgba(102, 51, 153, 0.2);
    border: 2px solid var(--english-text);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.private-writing h3 {
    color: var(--english-text);
    margin-bottom: 15px;
}

.writing-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.option-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--english-text);
    border: 1px solid var(--english-text);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.option-btn:hover {
    background: var(--english-text);
    color: #000;
}

.option-btn.selected {
    background: var(--english-text);
    color: #000;
}

/* ============================================
   TRANSLATION BOX (Module 03 Story Sentences)
   ============================================ */
.translation-box {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--english-headings);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.sentence-number {
    color: var(--english-headings);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.aui-text {
    font-family: 'aUI', 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.4;
}

.roman-transcription {
    color: var(--roman-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.english-translation {
    color: var(--english-text);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
}

/* Vocabulary tables (Module 03) */
.vocab-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.vocab-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vocab-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.vocab-table td:first-child {
    color: var(--english-text);
    font-weight: 600;
    min-width: 100px;
}

.vocab-table td:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Number chart tables (Module 02) */
.number-chart {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.number-chart th,
.number-chart td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.number-chart th {
    background: rgba(35, 233, 213, 0.2);
    color: var(--english-headings);
    font-weight: 700;
}

.number-chart .aui-cell {
    font-family: 'aUI', 'aUIFont', sans-serif;
    color: var(--aui-text);
    font-size: 1.5rem;
}

.number-chart .roman-cell {
    color: var(--roman-text);
    font-weight: 600;
}

.number-chart .english-cell {
    color: var(--english-text);
}

.number-chart .link-cell {
    color: var(--english-headings);
    font-weight: 600;
}

/* ============================================
   SPECIAL CONTENT STYLES
   ============================================ */

/* Slogans and examples */
.slogan-example {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--error-text);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
}

.slogan-title {
    color: var(--error-text);
    font-weight: bold;
    font-style: normal;
}

/* Quote styling */
.quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--english-headings);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(35, 233, 213, 0.5);
}

/* ============================================
   LMS INDEX SPECIFIC STYLES
   ============================================ */
.lms-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.lms-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--background-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.08);
}

.lms-title {
    font-size: 3.5em;
    color: var(--neon-aui);
    text-shadow: 0 0 20px var(--neon-aui), 0 0 30px var(--neon-aui);
    margin-bottom: 20px;
    animation: neonPulse 3s infinite ease-in-out;
    background: linear-gradient(to bottom, #ffffff, #a5a5a5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-overview {
    background: var(--background-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.4);
    color: var(--neon-aui);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 150px;
    text-align: center;
    border: 1px solid var(--neon-aui);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-aui);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-aui);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    color: var(--neon-aui);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--neon-white);
    margin-top: 5px;
}

.overall-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 15px;
}

.overall-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-aui), #FFA500);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--neon-aui);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.module-card {
    background: var(--background-card);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--neon-aui), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    opacity: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    border: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    clip-path: inset(100%) !important;
    clip: rect(0 0 0 0) !important;
    overflow: hidden !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    body.module-page {
        max-width: 95%;
    }

    .lesson-container {
        padding: 25px;
    }

    .tf-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tf-btn {
        width: 200px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .section-image {
        width: 250px;
        height: 250px;
    }

    .aui-symbol {
        font-size: 3rem;
    }

    .aui-inline {
        font-size: 2rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .lms-title {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .lesson-container {
        padding: 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .section-image {
        width: 200px;
        height: 200px;
    }

    .aui-symbol {
        font-size: 2.5rem;
    }

    .aui-inline {
        font-size: 1.8rem;
    }

    .lms-title {
        font-size: 2em;
    }
}
