/**
 * ══════════════════════════════════════════════════════════════════
 * CHARGER TOOLS — UNIVERSAL DESIGN SYSTEM (MAIN.CSS)
 * Centralized theme, smooth animations, and strict 5px rounding
 * ══════════════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette — Midnight Slate */
    --bg-main: #070c18;
    --bg-page: #080c16;
    --bg-surface: #0d1527;
    --bg-surface-2: #111c34;
    --bg-surface-elevated: #15223e;
    --bg-card: #0f182e;
    --bg-card-hover: #14203d;
    --bg-input: #0a1020;
    --bg-overlay: rgba(7, 12, 24, 0.82);

    /* Borders & Outlines */
    --border-subtle: #141f36;
    --border-default: #1b2742;
    --border-hover: #2c3e66;
    --border-accent: rgba(56, 189, 248, 0.35);

    /* Brand Accents */
    --accent-primary: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-subtle: rgba(56, 189, 248, 0.12);
    --accent-glow: rgba(56, 189, 248, 0.22);

    /* Dynamic User Role Theming */
    --role-color: #38bdf8;
    --role-bg: rgba(56, 189, 248, 0.08);
    --role-border: rgba(56, 189, 248, 0.3);

    /* Semantic Status */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;

    /* Typography */
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Universal 5px Rounding Token */
    --radius: 5px;

    /* Smooth Motion & Easing */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 120ms;
    --duration-normal: 220ms;
    --duration-slow: 360ms;
    --trans-smooth: all var(--duration-normal) var(--ease-smooth);
    --trans-fast: all var(--duration-fast) var(--ease-smooth);
}

/* ══════════════ CORE BRAND COLOR UTILITIES ══════════════ */
.text-brand-accent { color: #38bdf8 !important; }
.text-brand-accentHover { color: #0ea5e9 !important; }
.text-brand-muted { color: #94a3b8 !important; }
.bg-brand-bg { background-color: #070c18 !important; }
.bg-brand-surface { background-color: #0d1527 !important; }
.bg-brand-surface2 { background-color: #111c34 !important; }
.bg-brand-card { background-color: #0f182e !important; }
.border-brand-border { border-color: #1b2742 !important; }
.border-brand-borderHover { border-color: #2a3b61 !important; }
.border-brand-accent { border-color: #38bdf8 !important; }
.border-brand-accent\/20 { border-color: rgba(56, 189, 248, 0.2) !important; }
.border-brand-accent\/30 { border-color: rgba(56, 189, 248, 0.3) !important; }
.border-brand-accent\/40 { border-color: rgba(56, 189, 248, 0.4) !important; }
.border-brand-accent\/50 { border-color: rgba(56, 189, 248, 0.5) !important; }
.bg-brand-accent { background-color: #38bdf8 !important; color: #070c18 !important; }
.bg-brand-accent\/10 { background-color: rgba(56, 189, 248, 0.1) !important; }
.bg-brand-accent\/15 { background-color: rgba(56, 189, 248, 0.15) !important; }
.bg-brand-accent\/20 { background-color: rgba(56, 189, 248, 0.2) !important; }

/* ══════════════ GLOBAL RESET & BASE ══════════════ */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    min-height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ══════════════ UNIVERSAL 5PX ROUNDING ENFORCEMENT ══════════════ */
/* Ensures all UI components across all templates adhere strictly to 5px radius */
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
.rounded-full,
button,
input,
select,
textarea,
.btn,
.badge,
.pill,
.card,
.tool-card,
.ent-card,
.modal-box,
.dropdown-panel,
.search-popover,
.avatar-box,
.icon-box,
.stat-box,
.tab-btn {
    border-radius: var(--radius) !important;
}

/* ══════════════ PRECISION SCROLLBAR SUPPRESSION ══════════════ */
html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ══════════════ FOCUS & INTERACTION ══════════════ */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

::selection {
    background-color: var(--accent-subtle);
    color: var(--accent-primary);
}

/* iOS zoom prevention & autofill fix */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-surface) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ══════════════ SMOOTH COMPONENT UTILITIES ══════════════ */

/* Smooth Card Surface */
.smooth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    transition: transform var(--duration-fast) var(--ease-smooth),
                border-color var(--duration-fast) var(--ease-smooth),
                background-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}

.smooth-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
}

/* Smooth Interactive Button */
.smooth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border-default);
    background-color: var(--bg-surface-2);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: var(--trans-fast);
}

.smooth-btn:hover {
    background-color: var(--bg-surface-elevated);
    border-color: var(--border-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.smooth-btn:active {
    transform: translateY(0);
}

/* Primary Accent Button */
.smooth-btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #040914;
    font-weight: 600;
}

.smooth-btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000000;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* Smooth Input Field */
.smooth-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
    transition: var(--trans-fast);
}

.smooth-input:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 16px var(--accent-glow);
    outline: none;
}

.smooth-input::placeholder {
    color: var(--text-subtle);
}

/* Smooth Accordion Body (<140ms Hardware-Accelerated) */
.section-body {
    transition: max-height var(--duration-normal) var(--ease-smooth),
                opacity var(--duration-fast) var(--ease-smooth);
    overflow: hidden;
}

.section-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

.chevron-icon {
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.chevron-icon.rotated {
    transform: rotate(-90deg);
}

/* Modal Smooth Transitions */
.smooth-modal-backdrop {
    background-color: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.smooth-modal-window {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: transform var(--duration-normal) var(--ease-smooth),
                opacity var(--duration-normal) var(--ease-smooth);
}

/* Tab Navigation */
.modal-tab {
    transition: var(--trans-fast);
    border-bottom: 2px solid transparent;
}

.modal-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Tool Card Specifics */
.tool-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding: 0.875rem;
    transition: background-color var(--duration-fast) var(--ease-smooth),
                border-color var(--duration-fast) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}

.tool-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}

/* Icon Box inside cards */
.tool-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius) !important;
    background-color: var(--bg-main);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-smooth),
                border-color var(--duration-fast) var(--ease-smooth);
}

.tool-card:hover .tool-icon-box {
    transform: scale(1.08);
    border-color: var(--accent-primary);
}

/* Dynamic Role-Themed Classes */
.role-themed-accent { color: var(--role-color) !important; }
.role-themed-border { border-color: var(--role-border) !important; }
.role-themed-bg { background-color: var(--role-bg) !important; }

/* ══════════════ FORM SYSTEM (PREVENT CLIPPING & STRICT ALIGNMENT) ══════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
    text-align: left;
    width: 100%;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0;
    user-select: none;
}

.form-input {
    width: 100%;
    height: 2.5rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding: 0 0.875rem;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: var(--trans-fast);
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 12px var(--accent-glow);
}

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

.form-select {
    width: 100%;
    height: 2.5rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding: 0 0.75rem;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: var(--trans-fast);
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.form-toggle-btn {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--accent-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--trans-fast);
}

.form-toggle-btn:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Role Selector Cards (Student vs Teacher) */
.role-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.role-card {
    background-color: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding: 0.875rem;
    cursor: pointer;
    user-select: none;
    transition: var(--trans-fast);
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-card:hover {
    background-color: var(--bg-surface-elevated);
    border-color: var(--border-hover);
}

.role-card.active {
    background-color: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 16px var(--accent-glow);
}

/* ══════════════ SEARCH COMMAND CONSOLE & SPOTLIGHT ══════════════ */
.search-console-hero {
    position: relative;
    width: 100%;
}

.search-input-command {
    width: 100%;
    height: 3.5rem;
    background-color: #050a16;
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding-left: 3rem;
    padding-right: 5.5rem;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    transition: var(--trans-fast);
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.search-input-command:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 24px var(--accent-glow);
}

/* ══════════════ SLIDING SEARCH WORKBENCH & SPOTLIGHT ══════════════ */
.search-workbench-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-left-panel {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFromBehind {
    0% {
        opacity: 0;
        transform: translateX(-35px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.search-results-panel {
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.search-results-panel.open {
    display: flex !important;
    animation: slideFromBehind 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 1024px) {
    .search-workbench-container.active-search {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 2.5rem;
    }

    .search-workbench-container.active-search .search-left-panel {
        max-width: 26rem;
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .search-workbench-container.active-search .search-results-panel {
        flex: 1 1 0%;
        max-width: 38rem;
    }
}

.search-spotlight-card {
    background-color: #090e1d;
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
}

.spotlight-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    background-color: #060913;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.spotlight-body-scroll {
    overflow-y: auto;
    height: 420px;
    max-height: min(28rem, calc(100vh - 16rem));
    max-height: min(28rem, calc(100dvh - 16rem));
    padding: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    -webkit-overflow-scrolling: touch;
}

.spotlight-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.875rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #64748b;
    background-color: #060913;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}


.spotlight-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: rgba(13, 21, 39, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.spotlight-section-header:first-child {
    margin-top: 0;
}

.search-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    background: transparent;
}

.search-result-row:hover,
.search-result-row.active {
    background-color: #111a2e;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.06);
}

.search-result-row.active .search-result-name {
    color: #ffffff;
}

/* Custom scrollbars for spotlight body */
.spotlight-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.spotlight-body-scroll::-webkit-scrollbar-track {
    background: #060a14;
    border-radius: 5px;
}
.spotlight-body-scroll::-webkit-scrollbar-thumb {
    background: #1e2c4a;
    border-radius: 5px;
}
.spotlight-body-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}


/* ══════════════ STRICTLY ALIGNED FOOTER ══════════════ */
.footer-aligned {
    border-top: 1px solid var(--border-default);
    background-color: rgba(7, 12, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 5rem;
    padding: 3.5rem 0 2rem 0;
    text-align: left;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: var(--trans-fast);
}

.footer-nav-link:hover {
    color: var(--accent-primary);
    transform: translateX(2px);
}


/* ══════════════ AUTH SEGMENTED TOGGLE SWITCH ══════════════ */
.auth-toggle-switch {
    display: inline-flex;
    align-items: center;
    background-color: #050a16;
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    padding: 3px;
    gap: 3px;
    margin-bottom: 1.5rem;
    width: auto;
}

.auth-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius) !important;
    cursor: pointer;
    transition: var(--trans-fast);
    user-select: none;
    text-decoration: none;
}

.auth-toggle-btn:hover {
    color: #ffffff;
    background-color: var(--bg-surface-2);
}

.auth-toggle-btn.active {
    background-color: var(--accent-primary);
    color: #070c18 !important;
    font-weight: 700;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

/* ══════════════ MODAL VIEWPORT FIT & SCROLL ══════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background-color: rgba(7, 12, 24, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.modal-dialog {
    background-color: #0c1322;
    border: 1px solid var(--border-default);
    border-radius: var(--radius) !important;
    width: 100%;
    max-height: calc(100dvh - 2rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.modal-body-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    padding-right: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-track {
    background: #080d19;
    border-radius: 5px;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #1e2c4a;
    border-radius: 5px;
}
.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ══════════════ COMPREHENSIVE ACCESSIBILITY MODES ══════════════ */

/* 1. Large Text Mode */
html.accessibility-large-text {
    font-size: 19px !important;
}
html.accessibility-large-text body,
body.accessibility-large-text {
    font-size: 1.15rem !important;
}
html.accessibility-large-text h1,
body.accessibility-large-text h1 {
    font-size: 2.75rem !important;
    line-height: 1.25 !important;
}
html.accessibility-large-text h2,
body.accessibility-large-text h2 {
    font-size: 2.1rem !important;
    line-height: 1.3 !important;
}
html.accessibility-large-text h3,
body.accessibility-large-text h3 {
    font-size: 1.6rem !important;
    line-height: 1.35 !important;
}
html.accessibility-large-text p,
html.accessibility-large-text li,
html.accessibility-large-text label,
body.accessibility-large-text p,
body.accessibility-large-text li,
body.accessibility-large-text label {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}
html.accessibility-large-text .form-input,
html.accessibility-large-text .form-select,
html.accessibility-large-text .search-input-command,
body.accessibility-large-text .form-input,
body.accessibility-large-text .form-select,
body.accessibility-large-text .search-input-command {
    font-size: 1.15rem !important;
    height: 3.5rem !important;
    padding-left: 1.25rem !important;
}
html.accessibility-large-text .form-label,
body.accessibility-large-text .form-label {
    font-size: 0.875rem !important;
}
html.accessibility-large-text button,
body.accessibility-large-text button {
    font-size: 1rem !important;
}

/* 2. Dyslexia-Friendly Font Mode (Lexend / Atkinson Hyperlegible) */
html.accessibility-dyslexia-font,
html.accessibility-dyslexia-font body,
html.accessibility-dyslexia-font *,
body.accessibility-dyslexia-font,
body.accessibility-dyslexia-font * {
    font-family: 'Lexend', 'Atkinson Hyperlegible', 'OpenDyslexic', -apple-system, sans-serif !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.12em !important;
    line-height: 1.85 !important;
}

/* 3. High Contrast Mode */
html.accessibility-high-contrast,
body.accessibility-high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
    --bg-main: #000000;
    --bg-surface: #050505;
    --bg-surface-2: #111111;
    --border-default: #38bdf8;
    --border-subtle: #0284c7;
    --text-primary: #ffffff;
    --text-muted: #f1f5f9;
}
html.accessibility-high-contrast header,
html.accessibility-high-contrast main,
html.accessibility-high-contrast footer,
html.accessibility-high-contrast .modal-dialog,
html.accessibility-high-contrast .search-spotlight-dropdown,
body.accessibility-high-contrast header,
body.accessibility-high-contrast main,
body.accessibility-high-contrast footer,
body.accessibility-high-contrast .modal-dialog,
body.accessibility-high-contrast .search-spotlight-dropdown {
    background-color: #000000 !important;
    border-color: #38bdf8 !important;
}
html.accessibility-high-contrast .form-input,
html.accessibility-high-contrast .form-select,
html.accessibility-high-contrast .search-input-command,
html.accessibility-high-contrast .role-card,
html.accessibility-high-contrast .smooth-card,
body.accessibility-high-contrast .form-input,
body.accessibility-high-contrast .form-select,
body.accessibility-high-contrast .search-input-command,
body.accessibility-high-contrast .role-card,
body.accessibility-high-contrast .smooth-card {
    background-color: #080808 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}
html.accessibility-high-contrast .text-slate-400,
html.accessibility-high-contrast .text-slate-500,
html.accessibility-high-contrast .text-brand-muted,
body.accessibility-high-contrast .text-slate-400,
body.accessibility-high-contrast .text-slate-500,
body.accessibility-high-contrast .text-brand-muted {
    color: #f8fafc !important;
}
html.accessibility-high-contrast .border-brand-border,
body.accessibility-high-contrast .border-brand-border {
    border-color: #38bdf8 !important;
}

/* 4. Reduced Motion Mode */
html.accessibility-reduced-motion,
html.accessibility-reduced-motion *,
body.accessibility-reduced-motion,
body.accessibility-reduced-motion * {
    animation-duration: 0.0001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.0001ms !important;
    scroll-behavior: auto !important;
}


