/* ==========================================================================
   BRILLIANT P - AI & MACHINE LEARNING PLATFORM STYLESHEET
   ========================================================================== */

:root {
    --aiml-primary: #004a8f;
    --aiml-secondary: #003366;
    --aiml-purple: #7c3aed;
    --aiml-pink: #d81b60;
    --aiml-gold: #ffcc00;
    --aiml-cyan: #06b6d4;
    --aiml-green: #10b981;
    --aiml-bg-cream: #fffaf5;
    --aiml-dark-bg: #0f172a;
    --aiml-card-bg: #ffffff;
    --aiml-border: #e2e8f0;
    --aiml-shadow: 0 10px 30px rgba(0, 74, 143, 0.08);
    --aiml-font-sans: 'Outfit', sans-serif;
    --aiml-font-code: 'Fira Code', 'Consolas', monospace;
}

body {
    font-family: var(--aiml-font-sans);
    background-color: var(--aiml-bg-cream);
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Learning Dashboard Header & Progress Widget */
.aiml-dashboard-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, var(--aiml-primary) 100%);
    color: white;
    padding: 34px 0 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title-area h1 {
    font-size: 30px;
    margin: 0 0 6px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title-area h1 i {
    color: var(--aiml-cyan);
}

.dashboard-title-area p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
}

.progress-widget-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 16px 22px;
    min-width: 290px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.progress-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-widget-header span:last-child {
    color: var(--aiml-cyan);
    font-size: 16px;
    font-weight: 800;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--aiml-cyan), var(--aiml-purple), var(--aiml-pink));
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Controls Bar */
.dashboard-controls-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--aiml-border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.controls-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-box-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1.5px solid var(--aiml-border);
    border-radius: 30px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--aiml-purple);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.search-box-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.quick-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-action {
    background: #f1f5f9;
    border: 1px solid var(--aiml-border);
    color: var(--aiml-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-action:hover {
    background: var(--aiml-purple);
    color: white;
    border-color: var(--aiml-purple);
    transform: translateY(-1px);
}

.btn-sidebar-toggle {
    display: none;
    background: var(--aiml-purple);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Layout Grid */
.aiml-layout-container {
    max-width: 1400px;
    margin: 24px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styling */
.aiml-sidebar {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--aiml-border);
    box-shadow: var(--aiml-shadow);
    padding: 20px;
    position: sticky;
    top: 75px;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aiml-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item a:hover {
    background: #f8fafc;
    color: var(--aiml-purple);
}

.sidebar-nav-item.active a {
    background: #f3e8ff;
    color: var(--aiml-purple);
    font-weight: 700;
    border-left-color: var(--aiml-purple);
}

.nav-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item-num {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.sidebar-nav-item.active .nav-item-num {
    background: var(--aiml-purple);
    color: white;
}

.status-badge {
    font-size: 12px;
    color: #cbd5e1;
    transition: color 0.3s;
}

.sidebar-nav-item.completed .status-badge {
    color: var(--aiml-green);
}

/* Main Reading Content Area */
.aiml-content-viewport {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--aiml-border);
    box-shadow: var(--aiml-shadow);
    padding: 38px 42px;
    min-height: 600px;
}

.module-section {
    display: none;
    animation: fadeInContent 0.4s ease forwards;
}

.module-section.active {
    display: block;
}

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

.module-badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.module-tag {
    background: linear-gradient(135deg, var(--aiml-purple), var(--aiml-primary));
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
}

.read-time-tag {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.module-main-title {
    font-size: 32px;
    color: var(--aiml-secondary);
    margin: 0 0 22px 0;
    font-weight: 800;
    line-height: 1.25;
}

/* Concept & Definition Cards */
.concept-box {
    background: #f8fafc;
    border-left: 4px solid var(--aiml-purple);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 28px;
}

.concept-box h3 {
    margin: 0 0 8px 0;
    color: var(--aiml-purple);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.concept-box p {
    margin: 0;
    color: #334155;
    font-size: 15px;
}

.definition-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    color: #4c1d95;
}

.definition-card strong {
    color: #3b0764;
}

/* Visual Workflow & Pipeline Diagrams */
.diagram-container {
    background: #0f172a;
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.diagram-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--aiml-cyan);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pipeline-step {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    flex: 1;
    min-width: 130px;
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    border-color: var(--aiml-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2);
}

.pipeline-step i {
    font-size: 24px;
    color: var(--aiml-cyan);
    margin-bottom: 8px;
    display: block;
}

.pipeline-step-title {
    font-weight: 700;
    font-size: 13px;
    color: #f8fafc;
}

.pipeline-step-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.pipeline-arrow {
    color: #64748b;
    font-size: 18px;
}

/* Visual Hierarchy / Venn Diagram Box */
.hierarchy-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #1e293b;
    border-radius: 14px;
    padding: 20px;
}

.hierarchy-layer {
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layer-ai { background: rgba(0, 74, 143, 0.3); border: 1.5px solid #004a8f; color: #60a5fa; }
.layer-ml { background: rgba(124, 58, 237, 0.3); border: 1.5px solid #7c3aed; color: #c084fc; margin-left: 20px; }
.layer-dl { background: rgba(216, 27, 96, 0.3); border: 1.5px solid #d81b60; color: #f472b6; margin-left: 40px; }
.layer-genai { background: rgba(6, 182, 212, 0.3); border: 1.5px solid #06b6d4; color: #67e8f9; margin-left: 60px; }

/* Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 14px;
    border: 1px solid var(--aiml-border);
}

.aiml-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.aiml-table th {
    background: var(--aiml-secondary);
    color: white;
    padding: 14px 18px;
    font-weight: 700;
}

.aiml-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--aiml-border);
    color: #334155;
}

.aiml-table tr:nth-child(even) {
    background: #f8fafc;
}

.aiml-table tr:hover {
    background: #f1f5f9;
}

/* IDE Code Blocks */
.code-window {
    background: var(--aiml-dark-bg);
    border-radius: 14px;
    overflow: hidden;
    margin: 20px 0 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.dot-red { width: 10px; height: 10px; background: #ef4444; border-radius: 50%; }
.dot-yellow { width: 10px; height: 10px; background: #f59e0b; border-radius: 50%; }
.dot-green { width: 10px; height: 10px; background: #10b981; border-radius: 50%; }

.code-lang-title {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-copy-code:hover {
    background: var(--aiml-purple);
    color: white;
}

.code-body {
    padding: 16px 20px;
    overflow-x: auto;
    font-family: var(--aiml-font-code);
    font-size: 14px;
    color: #f8fafc;
    line-height: 1.6;
    margin: 0;
}

.py-kw { color: #f472b6; font-weight: 600; }
.py-str { color: #34d399; }
.py-num { color: #fbbf24; }
.py-fn { color: #60a5fa; font-weight: 600; }
.py-cmt { color: #64748b; font-style: italic; }

.output-box {
    background: #0f172a;
    border-top: 1px dashed #334155;
    padding: 12px 20px;
    font-family: var(--aiml-font-code);
    font-size: 13px;
    color: #38bdf8;
}

.output-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

/* Info & Mistake Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.info-card {
    border-radius: 12px;
    padding: 20px;
}

.app-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.app-card h4 {
    color: #166534;
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mistake-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.mistake-card h4 {
    color: #9f1239;
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #334155;
}

.info-card li {
    margin-bottom: 6px;
}

/* Key Points Summary List */
.key-points-list {
    background: #fdf4ff;
    border: 1px solid #f5d0fe;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 30px;
}

.key-points-list h4 {
    color: #86198f;
    margin: 0 0 12px 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-points-list ul {
    margin: 0;
    padding-left: 20px;
}

.key-points-list li {
    margin-bottom: 8px;
    color: #4a044e;
    font-size: 14px;
}

/* Practice Questions */
.practice-section {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
}

.practice-section h4 {
    color: var(--aiml-secondary);
    margin: 0 0 16px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.practice-item {
    background: #ffffff;
    border: 1px solid var(--aiml-border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.practice-question-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 6px;
}

.practice-hint {
    font-size: 13px;
    color: #64748b;
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.btn-toggle-hint {
    background: none;
    border: none;
    color: var(--aiml-purple);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Mini Challenge Box */
.mini-challenge-box {
    background: linear-gradient(135deg, #fffbebf5 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 36px;
}

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

.challenge-header h4 {
    margin: 0;
    color: #92400e;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-desc {
    color: #78350f;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-reveal-solution {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-reveal-solution:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.solution-container {
    display: none;
    margin-top: 16px;
}

/* Quiz Container */
.quiz-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px;
    margin-top: 40px;
}

.quiz-header {
    border-bottom: 2px solid var(--aiml-border);
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-header h3 {
    margin: 0;
    color: var(--aiml-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcq-card {
    background: #ffffff;
    border: 1px solid var(--aiml-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.mcq-question {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 14px;
}

.mcq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcq-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--aiml-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mcq-option-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mcq-option-label input[type="radio"] {
    accent-color: var(--aiml-purple);
}

.mcq-explanation {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.mcq-explanation.correct {
    display: block;
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.mcq-explanation.incorrect {
    display: block;
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

.btn-submit-quiz {
    background: var(--aiml-purple);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
}

.btn-submit-quiz:hover {
    background: var(--aiml-secondary);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.quiz-result-score {
    display: none;
    margin-top: 18px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

/* Footer Pagination & Complete Bar */
.module-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--aiml-border);
    flex-wrap: wrap;
    gap: 16px;
}

.btn-complete-module {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-complete-module:hover {
    background: #059669;
    transform: scale(1.02);
}

.btn-complete-module.completed {
    background: #64748b;
}

.nav-paging-buttons {
    display: flex;
    gap: 12px;
}

.btn-page-nav {
    background: #ffffff;
    border: 1.5px solid var(--aiml-border);
    color: #334155;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-page-nav:hover:not(:disabled) {
    background: var(--aiml-purple);
    color: white;
    border-color: var(--aiml-purple);
}

.btn-page-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Popup Styling */
.aiml-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.aiml-modal-box {
    background: #ffffff;
    border-radius: 20px;
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 34px;
}

.aiml-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.aiml-modal-close:hover {
    background: var(--aiml-pink);
    color: white;
}

/* Certificate Generator Box */
.certificate-preview-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 4px double var(--aiml-gold);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    margin-top: 20px;
    position: relative;
}

.cert-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--aiml-gold);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.cert-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cert-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--aiml-cyan);
    margin: 15px 0;
    text-decoration: underline;
}

/* Glossary Terms Grid */
.glossary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.glossary-item {
    background: #f8fafc;
    border: 1px solid var(--aiml-border);
    border-radius: 12px;
    padding: 14px 18px;
}

.glossary-term {
    font-weight: 700;
    color: var(--aiml-purple);
    font-size: 15px;
    margin-bottom: 4px;
}

.glossary-def {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .aiml-layout-container {
        grid-template-columns: 1fr;
    }
    
    .aiml-sidebar {
        position: fixed;
        top: 0;
        left: -330px;
        width: 290px;
        height: 100vh;
        max-height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
        border-radius: 0;
    }
    
    .aiml-sidebar.open {
        left: 0;
    }
    
    .btn-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .aiml-content-viewport {
        padding: 24px 20px;
    }

    .info-cards-grid, .glossary-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 4px 0;
    }

    .module-main-title {
        font-size: 24px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-widget-box {
        width: 100%;
    }
}
