/* ===== WILDERNESS TRAINING ACADEMY - STYLES.CSS =====
   Version 4.0 - Disney-Level Polish
   ================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Brand Colors - Wilderness Green rgb(49, 102, 82) */
    --brand: #316652;
    --brand-light: #4a8570;
    --brand-dark: #244b3d;
    --brand-pale: #e9f1ed;
    --accent: #d4a03a;
    --accent-light: #f5e6c8;
    --accent-dark: #b8892e;
    
    /* Neutrals */
    --bg: #f8f7f5;
    --surface: #ffffff;
    --surface-alt: #f3f1ee;
    --surface-hover: #edeae6;
    --text: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8c8c8c;
    --border: #e5e2dd;
    --border-light: #f0ede8;
    
    /* Semantic */
    --success: #22863a;
    --success-bg: #dcffe4;
    --warning: #b95000;
    --warning-bg: #fff4e5;
    --danger: #cb2431;
    --danger-bg: #ffeef0;
    --info: #0366d6;
    --info-bg: #e8f4fd;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.06), 0 3px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.08), 0 6px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography - Cabin font */
    --font-sans: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Layout */
    --sidebar-width: 280px;
    --topbar-height: 64px;
    --guide-width: 320px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== APP LAYOUT ===== */
.app {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-slow);
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px var(--space-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.nav-item.active {
    background: var(--brand-pale);
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 600;
}

.nav-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-item.locked:hover {
    background: transparent;
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    flex-shrink: 0;
}

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

.nav-badge.progress {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.nav-badge.locked {
    background: var(--surface-alt);
    color: var(--text-muted);
}

.sidebar-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.guide-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.guide-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ===== GUIDE PANEL ===== */
.guide-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--guide-width);
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 150;
    display: flex;
    flex-direction: column;
}

.guide-panel.open {
    transform: translateX(0);
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.guide-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.guide-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.guide-close:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.guide-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.guide-section {
    margin-bottom: var(--space-xl);
}

.guide-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.guide-item {
    display: flex;
    gap: 10px;
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guide-item-icon {
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--surface-alt);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--brand-light);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--border);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-alt);
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    position: relative;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-pale);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.875rem;
    width: 180px;
    font-family: inherit;
    color: var(--text);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.search-results.show {
    display: block;
    animation: slideDown var(--transition-fast);
}

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

.search-result-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--surface-alt);
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-result-context {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-result-context mark {
    background: var(--accent-light);
    color: var(--text);
    padding: 0 2px;
    border-radius: 2px;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    width: 40px;
    height: 40px;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--surface-alt);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-slow);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand);
}

/* Badges Mini */
.badges-mini {
    display: flex;
    gap: 4px;
}

.badge-mini {
    width: 28px;
    height: 28px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.badge-mini:hover {
    transform: scale(1.15);
}

/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    padding: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* View Transitions */
.view-enter {
    animation: viewEnter var(--transition-slow);
}

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

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
}

.loading-icon svg {
    width: 100%;
    height: 100%;
}

.spin-slow {
    animation: spin 3s linear infinite;
}

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

/* ===== DASHBOARD ===== */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(0,0,0,0.1)' d='M0,120 L0,60 Q150,20 300,60 T600,60 T900,60 T1200,60 L1200,120 Z'/%3E%3Cpath fill='rgba(0,0,0,0.05)' d='M0,120 L0,80 Q200,40 400,80 T800,80 T1200,80 L1200,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.dashboard-hero h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.dashboard-hero p {
    opacity: 0.9;
    max-width: 600px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Today Focus */
.today-focus {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.today-focus h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-card {
    background: linear-gradient(135deg, var(--accent-light), #fef3db);
    border-radius: var(--radius);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.today-day {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.today-info {
    flex: 1;
}

.today-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.today-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

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

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Quick Links */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quick-link {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.quick-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--brand-pale);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-link-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--brand-pale);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--brand);
}

.btn-ghost:hover {
    background: var(--brand-pale);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

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

/* ===== MODULE VIEW ===== */
.module-header {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-pale);
    color: var(--brand);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.module-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.module-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1rem;
}

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

.lesson-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
    border: 2px solid transparent;
}

.lesson-card:hover {
    border-color: var(--brand-pale);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.lesson-card.complete {
    border-color: var(--success-bg);
    background: linear-gradient(90deg, var(--success-bg) 0%, var(--surface) 100%);
}

.lesson-card.active {
    border-color: var(--brand);
    background: var(--brand-pale);
}

.lesson-num {
    width: 40px;
    height: 40px;
    background: var(--surface-alt);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.lesson-card.complete .lesson-num {
    background: var(--success);
    color: white;
}

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

.lesson-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.lesson-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lesson-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-status.complete {
    background: var(--success-bg);
    color: var(--success);
}

.lesson-status.failed {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== LESSON VIEW ===== */
.lesson-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.lesson-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.lesson-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color var(--transition-fast);
}

.back-btn:hover {
    color: var(--brand-light);
}

.lesson-progress {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.lesson-body {
    padding: var(--space-xl);
}

/* TL;DR */
.tldr {
    background: linear-gradient(135deg, var(--brand-pale), #e0ebe4);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--brand);
}

.tldr-title {
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.tldr ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tldr li {
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.5;
}

.tldr li:last-child {
    margin-bottom: 0;
}

/* Why It Matters */
.why-matters {
    background: linear-gradient(135deg, var(--accent-light), #fef8eb);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--accent);
}

.why-matters-title {
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.why-matters p {
    color: var(--text);
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-xl);
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin-bottom: var(--space-md);
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Accordion */
.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-alt);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--surface-hover);
}

.accordion-icon {
    transition: transform var(--transition);
}

.accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition);
}

.accordion.open .accordion-content {
    padding: var(--space-lg);
    max-height: 2000px;
}

/* Callouts */
.callout {
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.callout.info {
    background: var(--info-bg);
    border-left: 4px solid var(--info);
}

.callout.warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
}

.callout.success, .callout.tip {
    background: var(--success-bg);
    border-left: 4px solid var(--success);
}

.callout.danger {
    background: var(--danger-bg);
    border-left: 4px solid var(--danger);
}

.callout-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--surface-alt);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover {
    background: var(--surface-alt);
}

/* Script Box */
.script-box {
    background: var(--brand);
    color: white;
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}

.script-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.script-box p {
    margin-bottom: 12px;
    line-height: 1.8;
}

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

/* Common Mistakes */
.common-mistakes {
    background: var(--danger-bg);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-left: 4px solid var(--danger);
}

.common-mistakes-title {
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-mistakes ul {
    margin: 0;
    padding-left: 1.25rem;
}

.common-mistakes li {
    margin-bottom: 6px;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, var(--brand-pale), #dceee2);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    border: 2px solid var(--brand);
}

.key-takeaways-title {
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lesson Navigation */
.lesson-nav {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
    background: var(--surface-alt);
}

.lesson-nav .btn {
    flex: 1;
}

/* Notes Section */
.notes-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.notes-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-pale);
}

/* ===== QUIZ STYLES ===== */
.quiz-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.quiz-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    padding: var(--space-xl);
    text-align: center;
}

.quiz-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.quiz-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.quiz-subtitle {
    color: white;
    font-size: 0.9rem;
    margin-top: 4px;
}

.quiz-body {
    padding: var(--space-xl);
}

.question {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.question-text {
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-size: 1rem;
}

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

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option:hover:not(.disabled) {
    border-color: var(--brand-pale);
    background: var(--brand-pale);
}

.option.selected {
    border-color: var(--brand);
    background: var(--brand-pale);
}

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

.option.incorrect {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.option.disabled {
    cursor: default;
    pointer-events: none;
}

.option-letter {
    width: 28px;
    height: 28px;
    background: var(--surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option.selected .option-letter {
    background: var(--brand);
    color: white;
}

.option.correct .option-letter {
    background: var(--success);
    color: white;
}

.option.incorrect .option-letter {
    background: var(--danger);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 0.9rem;
}

.quiz-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: var(--surface-alt);
}

.quiz-result {
    text-align: center;
    padding: var(--space-xl);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.result-score {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.result-score.pass { color: var(--success); }
.result-score.fail { color: var(--danger); }

.result-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.explanation {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    text-align: left;
}

.explanation-title {
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
}

.explanation.correct-exp {
    background: var(--success-bg);
}

.explanation.incorrect-exp {
    background: var(--danger-bg);
}

/* Quick Check (inline) */
.quick-check {
    background: var(--info-bg);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-left: 4px solid var(--info);
}

.quick-check-title {
    font-weight: 700;
    color: var(--info);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
}

/* ===== SCENARIO STYLES ===== */
.scenario-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.scenario-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: var(--space-xl);
}

.scenario-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.scenario-header p {
    opacity: 0.9;
    font-size: 0.875rem;
    margin-top: 4px;
}

.scenario-situation {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-xl);
    border-left: 4px solid var(--accent);
}

.scenario-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.scenario-options {
    padding: 0 var(--space-xl) var(--space-xl);
}

.scenario-option {
    padding: var(--space-lg);
    background: var(--surface-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all var(--transition);
}

.scenario-option:hover:not(.disabled) {
    border-color: var(--brand);
    transform: translateX(4px);
}

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

.scenario-option.incorrect {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.scenario-option.disabled {
    cursor: default;
    pointer-events: none;
}

.scenario-feedback {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.scenario-feedback.correct {
    background: var(--success-bg);
    color: var(--success);
}

.scenario-feedback.incorrect {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== FLASHCARDS ===== */
.flashcard-container {
    perspective: 1000px;
    margin-bottom: var(--space-md);
}

.flashcard {
    width: 100%;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
}

.flashcard-front {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.flashcard-back {
    background: var(--surface);
    border: 2px solid var(--brand);
    transform: rotateY(180deg);
    font-size: 1.1rem;
    line-height: 1.5;
}

.flashcard-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.flashcard-counter {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== FITMENT WIZARD ===== */
.wizard-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.wizard-progress {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-xl);
}

.wizard-progress-step {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    transition: background var(--transition);
}

.wizard-progress-step.complete {
    background: var(--brand);
}

.wizard-progress-step.current {
    background: var(--accent);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--surface);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-pale);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.corner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.corner-option {
    padding: var(--space-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.corner-option:hover {
    border-color: var(--brand-pale);
    background: var(--surface-alt);
}

.corner-option.selected {
    border-color: var(--brand);
    background: var(--brand-pale);
}

.corner-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Worksheet Output */
.worksheet {
    background: var(--surface);
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.worksheet-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.worksheet-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand);
}

.worksheet-section {
    margin-bottom: var(--space-lg);
}

.worksheet-section h4 {
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.worksheet-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.worksheet-label {
    color: var(--text-secondary);
}

.worksheet-value {
    font-weight: 600;
}

.worksheet-recommendation {
    background: var(--brand-pale);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
}

.worksheet-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* ===== TEMPLATES ===== */
.template-card {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.template-header {
    background: var(--surface-alt);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.template-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--brand-light);
}

.copy-btn.copied {
    background: var(--success);
}

.template-body {
    padding: var(--space-lg);
    white-space: pre-wrap;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    background: var(--surface);
}

/* ===== COVERAGE MAP ===== */
.coverage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.coverage-table th {
    background: var(--brand);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}

.coverage-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.coverage-table tr:hover {
    background: var(--surface-alt);
}

.coverage-table a {
    color: var(--brand);
    text-decoration: none;
}

.coverage-table a:hover {
    text-decoration: underline;
}

.coverage-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.coverage-status.passed {
    background: var(--success-bg);
    color: var(--success);
}

.coverage-status.present {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.coverage-status.missing {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== BADGES ===== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.badge-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.badge-card.earned {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-light), #fef8eb);
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.badge-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== CONFETTI ===== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn var(--transition);
    border: 1px solid var(--border);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.error { border-left: 4px solid var(--danger); }

/* ===== CONFIG WARNING ===== */
.config-notice {
    background: var(--warning-bg);
    border: 1px dashed var(--warning);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: var(--space-sm);
}

/* ===== PRINT STYLES ===== */
@media print {
    @page {
        size: letter;
        margin: 0.25in;
    }
    
    .sidebar, .topbar, .lesson-nav, .guide-panel, #confettiCanvas, .toast-container, .no-print {
        display: none !important;
    }
    
    .main {
        margin-left: 0;
    }
    
    .content {
        max-width: 100%;
        padding: 0;
    }
    
    .worksheet {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    /* Quick Reference Print Styles - Force Single Page */
    .btn {
        display: none !important;
    }
    
    .view-enter {
        animation: none;
        transform: scale(0.65);
        transform-origin: top left;
        width: 154%; /* 1/0.65 to compensate for scale */
    }
    
    h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .sc-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none !important;
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .sc-card.lg {
        padding: 0.5rem !important;
    }
    
    .sc-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .sc-title.lg {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .sc-text, .sc-list, p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .sc-text.sm, .sc-list li {
        font-size: 0.7rem !important;
    }
    
    .sc-stack {
        gap: 0.25rem !important;
    }
    
    .sc-grid {
        gap: 0.5rem !important;
        margin: 0.25rem 0 !important;
    }
    
    .sc-table {
        font-size: 0.7rem !important;
    }
    
    .sc-table th, .sc-table td {
        padding: 0.2rem 0.4rem !important;
    }
    
    .sc-card.brand {
        background: #316652 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .sc-card.danger {
        background: #c0392b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .sc-table th {
        background: #316652 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    ul, ol {
        margin: 0 !important;
        padding-left: 1rem !important;
    }
    
    li {
        margin-bottom: 0.1rem !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .guide-panel {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        width: 140px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }
    
    .content {
        padding: var(--space-md);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .lesson-nav {
        flex-direction: column;
    }
    
    .topbar {
        padding: 0 var(--space-md);
    }
    
    .search-box {
        display: none;
    }
    
    .dashboard-hero h1 {
        font-size: 1.5rem;
    }
    
    .corner-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .flashcard {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .dashboard-hero {
        animation: none;
    }
    
    #confettiCanvas {
        display: none;
    }
}

/* ===== AUTH STYLES ===== */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: var(--space-lg);
}

.auth-container {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
}

.auth-logo svg {
    width: 100%;
    height: 100%;
}

.auth-container h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: var(--space-lg);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: var(--space-md);
}

.auth-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: var(--space-md);
    min-height: 20px;
}

.auth-success {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: var(--space-md);
    min-height: 20px;
}

/* User info in sidebar */
.user-info {
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-sm);
}

/* Additional loading state styles */
.loading-state h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* ===== SLIDE-BASED MODULE STYLES ===== */
.slide-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.2s; cursor: pointer; }
.slide-dot.completed { background: var(--brand); }
.slide-dot.current { background: var(--accent); transform: scale(1.3); }
.slide-dot.missed { background: var(--danger) !important; }
.slide-dot.current.missed { transform: scale(1.3); }
.slide-dot.quiz { width: 30px; border-radius: 5px; background: var(--accent); opacity: 0.5; }
.slide-dot.quiz.current { opacity: 1; }

.slide-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 1.5rem; }
.slide-image { width: 100%; height: 150px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 3.5rem; position: relative; overflow: hidden; }
.slide-image img { width: 100%; height: 100%; object-fit: cover; }
.slide-image-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.slide-body { padding: 1.5rem 2rem; }
.slide-title { font-size: 1.3rem; font-weight: 700; color: var(--brand); margin-bottom: 1rem; }
.slide-text { color: var(--text-secondary); }
.slide-text p { margin-bottom: 0.75rem; }
.slide-text ul { margin-left: 1.5rem; margin-bottom: 0.75rem; }
.slide-text li { margin-bottom: 0.25rem; }
.slide-text strong { color: var(--text); }
.slide-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.slide-text th, .slide-text td { padding: 0.5rem; border: 1px solid var(--border); text-align: left; }

.micro-question { background: var(--surface-alt); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; border: 2px solid var(--border); }
.micro-question.answered { border-color: var(--success); background: var(--success-bg); }
.question-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.5rem; }
.question-text { font-weight: 600; margin-bottom: 1rem; }

.mc-options { display: flex; flex-direction: column; gap: 0.5rem; }
.mc-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--surface); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.mc-option:hover:not(.disabled) { border-color: var(--brand); }
.mc-option.correct { border-color: var(--success); background: var(--success-bg); }
.mc-option.incorrect { border-color: var(--danger); background: var(--danger-bg); }
.mc-option.disabled { cursor: default; opacity: 0.7; }
.mc-radio { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-option.correct .mc-radio { border-color: var(--success); }
.mc-option.correct .mc-radio::after { content: ''; width: 8px; height: 8px; background: var(--success); border-radius: 50%; }

.slide-feedback { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.slide-feedback.correct { background: var(--success-bg); color: var(--success); }
.slide-feedback.incorrect { background: var(--danger-bg); color: var(--danger); }

.slide-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* Quiz styles */
.quiz-container { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.quiz-header { text-align: center; padding: 1.5rem; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: white; }
.quiz-title { font-size: 1.4rem; font-weight: 700; color: white; }
.quiz-subtitle { color: white; margin-top: 0.25rem; }

.quiz-question { margin: 0 2rem 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.quiz-question:first-of-type { margin-top: 2rem; }
.quiz-question:last-of-type { border-bottom: none; margin-bottom: 1rem; }
.quiz-q-num { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 0.5rem; }
.quiz-q-text { font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.quiz-q-type { font-size: 0.75rem; color: var(--accent); margin-bottom: 0.75rem; font-weight: 500; }

.checkbox-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--surface); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; margin-bottom: 0.5rem; transition: all 0.15s; }
.checkbox-option:hover { border-color: var(--brand); }
.checkbox-option.selected { border-color: var(--brand); background: var(--brand-pale); }
.checkbox-box { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem; }
.checkbox-option.selected .checkbox-box { border-color: var(--brand); background: var(--brand); color: white; }

.order-list { list-style: none; }
.order-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--surface); border: 2px solid var(--border); border-radius: 8px; margin-bottom: 0.5rem; cursor: grab; }
.order-item:hover { border-color: var(--brand); }
.order-item.dragging { opacity: 0.5; }
.order-num { width: 24px; height: 24px; background: var(--brand); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.drag-handle { color: var(--text-muted); }

.fill-input { display: inline-block; border: none; border-bottom: 2px solid var(--brand); background: var(--surface-alt); padding: 0.25rem 0.5rem; font-size: 1rem; font-family: inherit; min-width: 100px; text-align: center; }
.fill-input:focus { outline: none; background: var(--brand-pale); }

.category-container { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.category-bucket { flex: 1; min-width: 180px; background: var(--surface-alt); border: 2px dashed var(--border); border-radius: var(--radius); padding: 1rem; min-height: 120px; }
.category-title { font-weight: 600; text-align: center; margin-bottom: 0.75rem; color: var(--brand); font-size: 0.9rem; }
.category-items { min-height: 60px; }
.drag-item { padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.5rem; cursor: grab; font-size: 0.85rem; }
.drag-item:hover { border-color: var(--brand); }
.items-pool { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.items-pool-title { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.items-pool-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.results-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 3rem 2rem; text-align: center; }
.results-icon { font-size: 4rem; margin-bottom: 1rem; }
.results-score { font-size: 3rem; font-weight: 700; color: var(--brand); }
.results-label { color: var(--text-muted); margin-bottom: 1.5rem; }
.results-msg { font-size: 1.1rem; margin-bottom: 2rem; }
.results-msg.pass { color: var(--success); }
.results-msg.fail { color: var(--danger); }

.progress-container { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.progress-bar-bg { background: var(--border); height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-bar-fill { background: var(--brand); height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.progress-text-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }

/* In-progress module styling */
.lesson-card.in-progress {
    border-left: 3px solid var(--accent);
}
.lesson-status.in-progress {
    color: var(--accent);
    font-weight: 600;
}
.nav-item.in-progress {
    border-left-color: var(--accent);
}


/* RV Examples Modal */
.rv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rv-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.rv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rv-modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.rv-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.rv-modal-close:hover {
    color: #333;
}

.rv-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rv-example-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f7f5;
}

.rv-example-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rv-example-caption {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Image popup mode - fills viewport, no scroll */
.rv-modal-content.image-popup-mode {
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rv-modal-content.image-popup-mode .image-popup-body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-modal-content.image-popup-mode .image-popup-body img {
    max-width: 100%;
    max-height: calc(90vh - 5rem);
    object-fit: contain;
    border-radius: 8px;
}

/* See Examples Button */
.see-examples-btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #316652;
    color: white !important;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: none;
}

.see-examples-btn:hover {
    background: #244b3d;
}

/* =============================================
   SLIDE CONTENT COMPONENT CLASSES
   Semantic classes for slide content styling
   ============================================= */

/* ----- CARDS/CALLOUTS ----- */
.sc-card {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.sc-card.lg { padding: 1.25rem; }
.sc-card.sm { padding: 0.75rem; }

/* Card with icon on left spanning title + description */
.sc-card.icon-left {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.sc-card.icon-left > .sc-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.sc-card.icon-left > .sc-card-body {
    flex: 1;
}
.sc-card.icon-left > .sc-card-body > .sc-title {
    margin-bottom: 0.25rem;
}

/* Card color variants */
.sc-card.neutral { background: #f8f9fa; }
.sc-card.success { background: #e8f4ea; }
.sc-card.muted { background: #f8f7f5; }
.sc-card.warning { background: #fff4e5; }
.sc-card.alert { background: #fff3cd; }
.sc-card.danger-light { background: #fce8e8; }
.sc-card.danger-bg { background: #ffeef0; }
.sc-card.brand { background: #316652; color: white; }
.sc-card.danger { background: #c0392b; color: white; }

/* Card with left border accent */
.sc-card.border-brand { border-left: 4px solid #316652; }
.sc-card.border-accent { border-left: 4px solid #d4a03a; }
.sc-card.border-info { border-left: 4px solid #3498db; }
.sc-card.border-danger { border-left: 4px solid #c0392b; }

/* Card content styling */
.sc-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}
.sc-card p:last-child { margin-bottom: 0; }

.sc-card ul, .sc-card ol {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 1.25rem;
}
.sc-card li { margin-bottom: 0.25rem; }
.sc-card li:last-child { margin-bottom: 0; }

/* Remove bottom margin when last or when specified */
.sc-card.no-mb, .sc-card:last-child { margin-bottom: 0; }

/* ----- GRIDS ----- */
.sc-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}
.sc-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.sc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sc-grid.gap-lg { gap: 1.5rem; }
.sc-grid.gap-sm { gap: 0.5rem; }
.sc-grid.no-margin { margin: 0; }

/* ----- TABLES ----- */
table.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
}
table.sc-table th {
    background: #316652 !important;
    color: white !important;
    padding: 10px;
    text-align: left;
}
table.sc-table th.center { text-align: center; }
table.sc-table td {
    padding: 10px;
    border: 1px solid #ddd;
    color: #333;
}
table.sc-table td.center { text-align: center; }
table.sc-table td.bold { font-weight: 600; }
table.sc-table tr:nth-child(even) td { background: #f8f9fa; }
table.sc-table tr:nth-child(odd) td { background: white; }

/* ----- TYPOGRAPHY ----- */
.sc-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--brand);
}
.sc-title.lg { font-size: 1.15rem; margin-bottom: 0.75rem; font-weight: 700; }
.sc-title.sm { font-size: 0.95rem; }
.sc-title.brand { color: #316652; }
.sc-title.danger { color: #c0392b; }
.sc-title.white { color: white; }
.sc-title.black { color: #1a1a1a; }
.sc-title.center { text-align: center; }

/* Card header - first strong element or sc-icon as header */
.sc-card > strong:first-of-type,
.sc-card > div > strong:first-of-type {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

/* When card has brand background, headers should be white */
.sc-card.brand > strong:first-child,
.sc-card.brand .sc-title,
.sc-card.danger > strong:first-child,
.sc-card.danger .sc-title {
    color: white;
}

.sc-text {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}
.sc-text.sm { font-size: 0.85rem; }
.sc-text.xs { font-size: 0.75rem; }
.sc-text.muted { color: #666; }
.sc-text.secondary { color: #555; }

/* ----- LISTS ----- */
.sc-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}
.sc-list li { margin-bottom: 0.25rem; }
.sc-list.no-bullets { list-style: none; padding-left: 0; }

/* Numbered steps with circles */
.sc-steps {
    display: grid;
    gap: 0.75rem;
}
.sc-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.sc-step-num {
    background: #316652;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Checklist */
.sc-checklist {
    display: grid;
    gap: 0.5rem;
}
.sc-check-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.sc-check-icon {
    color: #316652;
    font-size: 1.1rem;
}

/* ----- BADGES/PILLS ----- */
.sc-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}
.sc-badge.brand { background: #316652; color: white; }
.sc-badge.accent { background: #d4a03a; color: white; }
.sc-badge.blue { background: #3498db; color: white; }
.sc-badge.purple { background: #9b59b6; color: white; }
.sc-badge.orange { background: #e67e22; color: white; }
.sc-badge.green { background: #27ae60; color: white; }
.sc-badge.danger { background: #c0392b; color: white; }

/* Flow chart badges (larger) */
.sc-flow-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}
.sc-flow-badge.blue { background: #3498db; }
.sc-flow-badge.purple { background: #9b59b6; }
.sc-flow-badge.orange { background: #e67e22; }
.sc-flow-badge.green { background: #27ae60; }
.sc-flow-badge.brand { background: #316652; }
.sc-flow-arrow { color: #666; margin: 0 0.25rem; }

/* ----- ICONS ----- */
.sc-icon { font-size: 1.25rem; }
.sc-icon.lg { font-size: 1.5rem; font-weight: 600; color: var(--brand); display: block; margin-bottom: 0.5rem; }
.sc-icon.xl { font-size: 2rem; }

/* Icon used as card header (with margin bottom) */
.sc-card > .sc-icon.sc-mb,
.sc-card > div > .sc-icon.sc-mb {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand);
    display: block;
}

/* White icon text on brand cards */
.sc-card.brand .sc-icon,
.sc-card.brand .sc-icon.lg {
    color: white;
}

/* ----- DO/DON'T BOXES ----- */
.sc-do {
    background: #e8f4ea;
    padding: 1rem;
    border-radius: 8px;
}
.sc-do .sc-title { color: #316652; }
.sc-do .sc-title::before { content: "✅ "; }

.sc-dont {
    background: #fce8e8;
    padding: 1rem;
    border-radius: 8px;
}
.sc-dont .sc-title { color: #c0392b; }
.sc-dont .sc-title::before { content: "❌ "; }

/* ----- CORNER POSITION GRID ----- */
.sc-corner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}
.sc-corner-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #316652;
}

/* ----- UTILITIES ----- */
.sc-mb { margin-bottom: 1rem; }
.sc-mb-lg { margin-bottom: 1.5rem; }
.sc-mt { margin-top: 1rem; }
.sc-mt-lg { margin-top: 1.5rem; }
.sc-center { text-align: center; }
.sc-bold { font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
    .sc-grid.cols-2, .sc-grid.cols-3, .sc-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ----- ADDITIONAL SLIDE CONTENT CLASSES ----- */

/* Flex layouts */
.sc-flex {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.sc-flex.center { align-items: center; }
.sc-flex.baseline { align-items: baseline; }
.sc-flex.gap-sm { gap: 0.5rem; }
.sc-flex.wrap { flex-wrap: wrap; }

/* Simple grid without columns */
.sc-stack {
    display: grid;
    gap: 0.75rem;
}
.sc-stack.gap-lg { gap: 1rem; }

/* Margins */
.sc-my { margin: 0.35rem 0; }
.sc-my-sm { margin: 0.25rem 0; }
.sc-my-lg { margin: 0.5rem 0; }

/* Text styles */
.sc-bold { font-weight: 600; }
.sc-brand-text { color: #316652; font-weight: 600; }

/* sc-bold as card header */
.sc-card > .sc-bold:first-of-type,
.sc-card > div > .sc-bold:first-of-type {
    display: block;
    font-size: 1.05rem;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.sc-label {
    font-size: 0.8rem;
    color: #666;
}
.sc-meta {
    font-size: 0.75rem;
    color: #666;
}

/* Inline icon with text */
.sc-icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* White box (corner grid, etc) */
.sc-box-white {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #316652;
}

/* ----- FINAL UTILITY CLASSES ----- */
.sc-flex.space-between { justify-content: space-between; }
.sc-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }

/* Link style */
.sc-link {
    font-size: 0.8rem;
    color: #316652;
    text-decoration: none;
}
.sc-link:hover { text-decoration: underline; }

/* Pill badges (light bg, colored text) */
.sc-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.sc-pill.green { background: #e8f4ea; color: #316652; }
.sc-pill.blue { background: #e3f2fd; color: #3498db; }
.sc-pill.orange { background: #fef3e8; color: #e67e22; }
.sc-pill.purple { background: #f5eef8; color: #9b59b6; }

/* Status badges */
.sc-status {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}
.sc-status.brand { background: #316652; color: white; }
.sc-status.orange { background: #e67e22; color: white; }
.sc-status.blue { background: #3498db; color: white; }
.sc-status.danger { background: #c0392b; color: white; }

/* Progress indicator (like in cancellation policy) */
.sc-progress-step {
    background: #3d7a5d;
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}

/* Color text variants */
.sc-text.brand { color: #316652; }
.sc-text.blue { color: #3498db; }
.sc-text.orange { color: #e67e22; }
.sc-text.purple { color: #9b59b6; }

/* Icon with brand color */
.sc-icon.brand { color: #316652; }

/* Success/Danger text colors */
.sc-text.success { color: #22863a; }
.sc-text.danger { color: #cb2431; }
