@import 'tailwindcss';

/* =========================================================
   LiteraHub Global Theme
   Mobile-first, compact-density design system
   ========================================================= */

:root {
    /* Brand */
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-300: #a5b4fc;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --brand-900: #312e81;

    /* Accent */
    --accent-500: #7c3aed;
    --accent-600: #6d28d9;

    /* Neutral */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic */
    --success: #15803d;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;

    --warning: #b45309;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --info: #0369a1;
    --info-bg: #f0f9ff;
    --info-border: #bae6fd;

    /* App */
    --color-primary: var(--brand-600);
    --color-primary-hover: var(--brand-700);
    --color-primary-dark: var(--brand-900);

    --color-text: var(--slate-900);
    --color-text-muted: var(--slate-600);

    --color-background: var(--slate-50);
    --color-surface: #ffffff;
    --color-surface-soft: var(--slate-100);

    --color-border: var(--slate-200);
    --color-border-strong: var(--slate-300);

    /* Compact spacing */
    --space-1: 3px;
    --space-2: 5px;
    --space-3: 7px;
    --space-4: 10px;
    --space-5: 12px;
    --space-6: 15px;
    --space-8: 19px;
    --space-10: 24px;
    --space-12: 29px;
    --space-16: 38px;

    /* Compact radius */
    --radius-xs: 4px;
    --radius-sm: 5px;
    --radius-md: 6px;
    --radius-lg: 9px;
    --radius-xl: 11px;
    --radius-2xl: 14px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.035);

    --shadow-md:
        0 4px 14px rgba(15, 23, 42, 0.07);

    --shadow-lg:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --shadow-brand:
        0 12px 36px rgba(79, 70, 229, 0.13);

    /* Motion */
    --transition-fast: 150ms ease;
    --transition-base: 220ms ease;
}


/* =========================================================
   Reset / Base
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 0.82rem;

    background:
        var(--color-background);

    color:
        var(--color-text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.navigation-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

::selection {
    background:
        var(--brand-200);

    color:
        var(--brand-900);
}


/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color:
        var(--color-text);

    font-weight: 800;
}

h1 {
    margin-bottom: 9px;

    font-size:
        clamp(
            1.35rem,
            5vw,
            1.7rem
        );

    line-height: 1.12;

    letter-spacing:
        -0.035em;
}

h2 {
    margin-bottom: 8px;

    font-size:
        clamp(
            1.05rem,
            4vw,
            1.3rem
        );

    line-height: 1.18;

    letter-spacing:
        -0.025em;
}

h3 {
    margin-bottom: 6px;

    font-size: 0.94rem;
    line-height: 1.3;
}

h4 {
    margin-bottom: 5px;

    font-size: 0.86rem;
}

h5 {
    font-size: 0.8rem;
}

h6 {
    font-size: 0.75rem;
}

p {
    margin-top: 0;
    margin-bottom: 9px;

    color:
        var(--color-text-muted);

    font-size: 0.82rem;
    line-height: 1.5;
}

small {
    color:
        var(--slate-500);

    font-size: 0.7rem;
}

strong {
    color:
        var(--color-text);
}

.eyebrow {
    display: inline-block;

    margin-bottom: 4px;

    color:
        var(--accent-600);

    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   Global Links
   ========================================================= */

a {
    color:
        var(--color-primary);

    text-decoration: none;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

a:hover {
    color:
        var(--color-primary-hover);
}

a.link-muted {
    color:
        var(--slate-600);
}

a.link-muted:hover {
    color:
        var(--slate-900);
}

a.link-danger {
    color:
        var(--danger);
}


/* =========================================================
   Layout Helpers
   ========================================================= */

.container {
    width: 100%;
    max-width: 1080px;

    margin-inline: auto;

    padding-inline: 12px;
}

.section {
    padding: 24px 0;
}

.section-sm {
    padding: 15px 0;
}

.section-lg {
    padding: 34px 0;
}

.page-shell {
    min-height:
        calc(100vh - 48px);
}

.stack {
    display: flex;
    flex-direction: column;

    gap:
        var(--space-4);
}

.row,
.row-between {
    display: flex;

    flex-direction: column;
    align-items: stretch;

    gap: 7px;
}


/* =========================================================
   Application Shell
   ========================================================= */

.app-shell {
    min-height: 100dvh;

    background:
        var(--color-background);
}

.app-main {
    min-width: 0;

    padding:
        16px 0 34px;
}


/* =========================================================
   Application Header
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;

    z-index: 60;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid
        var(--color-border);

    backdrop-filter:
        blur(18px);
}

.app-header__inner {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;

    padding:
        6px 12px;
}

.app-header__start,
.app-header__actions {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* =========================================================
   Brand
   ========================================================= */

.brand {
    color:
        var(--color-primary-dark);

    font-size: 0.95rem;
    font-weight: 900;

    letter-spacing:
        -0.035em;

    white-space: nowrap;
}

.brand:hover {
    color:
        var(--color-primary);
}


/* =========================================================
   User Summary
   ========================================================= */

.user-summary {
    display: flex;
    align-items: center;

    gap: 5px;
}

.user-summary__name {
    display: none;

    max-width: 110px;

    overflow: hidden;

    color:
        var(--color-text-muted);

    font-size: 0.68rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-avatar {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--brand-700),
            var(--accent-500)
        );

    color: #ffffff;

    font-size: 0.64rem;
    font-weight: 800;
}

.user-avatar--large {
    width: 36px;
    height: 36px;

    font-size: 0.78rem;
}


/* =========================================================
   Icon Buttons
   ========================================================= */

.icon-button {
    width: 32px;
    height: 32px;

    display: inline-grid;
    place-items: center;

    flex: 0 0 auto;

    padding: 0;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    color:
        var(--color-text);

    cursor: pointer;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.icon-button svg {
    width: 16px;
    height: 16px;
}

.icon-button:hover {
    background:
        var(--color-surface-soft);

    border-color:
        var(--color-border-strong);
}

.icon-button:active {
    transform:
        scale(0.96);
}


/* =========================================================
   Desktop Navigation
   ========================================================= */

.desktop-navigation {
    display: none;
}


/* =========================================================
   Dashboard Navigation
   ========================================================= */

.dashboard-nav {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.nav-link {
    width: 100%;

    min-height: 34px;

    display: flex;
    align-items: center;

    gap: 6px;

    padding:
        6px 8px;

    border-radius:
        var(--radius-md);

    color:
        var(--color-text-muted);

    font-size: 0.72rem;
    font-weight: 700;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.nav-link:hover {
    background:
        var(--color-surface-soft);

    color:
        var(--color-text);
}

.nav-link.active {
    background:
        var(--brand-100);

    color:
        var(--brand-800);
}

.nav-link__icon {
    width: 17px;

    flex:
        0 0 17px;

    display: inline-grid;
    place-items: center;

    font-size: 0.8rem;
}


/* =========================================================
   Mobile Navigation
   ========================================================= */

.mobile-nav {
    position: fixed;

    inset:
        0 auto 0 0;

    z-index: 100;

    width:
        min(82vw, 270px);

    height: 100dvh;

    display: flex;
    flex-direction: column;

    background:
        var(--color-surface);

    border-right:
        1px solid
        var(--color-border);

    box-shadow:
        14px 0 40px
        rgba(15, 23, 42, 0.15);

    transform:
        translateX(-105%);

    visibility: hidden;

    transition:
        transform var(--transition-base),
        visibility var(--transition-base);
}

.mobile-nav.is-open {
    transform:
        translateX(0);

    visibility: visible;
}

.mobile-nav__header {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;

    padding:
        8px 12px;

    border-bottom:
        1px solid
        var(--color-border);
}

.mobile-nav__user {
    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        11px 12px;

    border-bottom:
        1px solid
        var(--color-border);
}

.mobile-nav__user strong,
.mobile-nav__user small {
    display: block;
}

.mobile-nav__user small {
    max-width: 170px;

    margin-top: 2px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav__links {
    flex: 1;

    overflow-y: auto;

    padding: 7px;
}

.mobile-nav__footer {
    padding:
        9px 11px;

    border-top:
        1px solid
        var(--color-border);
}

.mobile-nav__footer form {
    width: 100%;

    margin:
        5px 0 0;
}

.mobile-nav-backdrop {
    position: fixed;

    inset: 0;

    z-index: 90;

    background:
        rgba(15, 23, 42, 0.46);

    backdrop-filter:
        blur(2px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition-base),
        visibility var(--transition-base);
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   Buttons
   ========================================================= */

.button,
button.button {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding:
        7px 11px;

    border:
        1px solid transparent;

    border-radius:
        var(--radius-md);

    background:
        var(--color-primary);

    color: #ffffff;

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        var(--shadow-sm);

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.button:hover {
    background:
        var(--color-primary-hover);

    color: #ffffff;

    transform:
        translateY(-1px);

    box-shadow:
        var(--shadow-md);
}

.button:active {
    transform:
        translateY(0);
}

.button:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.16);
}

.button-secondary {
    background:
        #ffffff;

    color:
        var(--color-primary-dark);

    border-color:
        var(--color-border-strong);
}

.button-secondary:hover {
    background:
        var(--slate-50);

    color:
        var(--color-primary-dark);
}

.button-ghost {
    background:
        transparent;

    color:
        var(--slate-700);

    border-color:
        transparent;
}

.button-ghost:hover {
    background:
        var(--slate-100);

    color:
        var(--slate-900);
}

.button-danger {
    background:
        var(--danger);

    color: #ffffff;
}

.button-danger:hover {
    background:
        #991b1b;
}

.button-success {
    background:
        var(--success);
}

.button-small {
    min-height: 29px;

    padding:
        5px 8px;

    font-size: 0.67rem;
}

.button-large {
    min-height: 38px;

    padding:
        8px 14px;

    font-size: 0.76rem;
}

.button-block {
    width: 100%;
}

button:disabled,
.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.55;

    cursor: not-allowed;

    pointer-events: none;
}


/* =========================================================
   Actions
   ========================================================= */

.actions {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 7px;

    margin-top: 14px;
}

.actions .button,
.actions button {
    width: 100%;
}


/* =========================================================
   Cards / Surfaces
   ========================================================= */

.card,
.cards article,
.dashboard-card {
    background:
        var(--color-surface);

    border:
        1px solid
        var(--color-border);

    box-shadow:
        var(--shadow-sm);
}

.cards {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 9px;
}

.cards article {
    min-width: 0;

    padding: 13px;

    border-radius:
        var(--radius-lg);

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.cards article:hover {
    transform:
        translateY(-1px);

    border-color:
        var(--brand-200);

    box-shadow:
        var(--shadow-md);
}

.card {
    padding: 13px;

    border-radius:
        var(--radius-lg);
}

.dashboard-card {
    padding: 15px;

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-lg);
}

.card-muted {
    background:
        var(--slate-50);
}


/* =========================================================
   Dashboard
   ========================================================= */

.dashboard-heading {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 15px;
}

.dashboard-heading .actions {
    width: 100%;

    margin-top: 0;
}


/* =========================================================
   Metrics
   ========================================================= */

.metric-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 7px;
}

.metric-grid article {
    padding: 10px;

    background:
        var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);
}

.metric-grid strong {
    display: block;

    margin-bottom: 2px;

    color:
        var(--color-text);

    font-size: 1rem;
}

.metric-grid span {
    color:
        var(--slate-500);

    font-size: 0.64rem;
}


/* =========================================================
   Forms
   ========================================================= */

.form-group {
    margin-bottom: 11px;
}

form {
    width: 100%;
}

form label {
    display: block;

    margin:
        10px 0 4px;

    color:
        var(--slate-700);

    font-size: 0.72rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;

    min-height: 36px;

    padding:
        7px 9px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius:
        var(--radius-md);

    background:
        #ffffff;

    color:
        var(--color-text);

    font-size: 0.78rem;

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color:
        var(--slate-400);
}

input:hover,
select:hover,
textarea:hover {
    border-color:
        var(--slate-400);
}

input:focus,
select:focus,
textarea:focus {
    border-color:
        var(--brand-500);

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.11);
}

input:disabled,
select:disabled,
textarea:disabled {
    background:
        var(--slate-100);

    color:
        var(--slate-500);

    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;

    accent-color:
        var(--color-primary);
}

textarea {
    min-height: 76px;

    resize: vertical;
}

.field-error,
.field-help {
    margin-top: 4px;

    font-size: 0.66rem;
}

.field-error {
    color:
        var(--danger);
}

.field-help {
    color:
        var(--slate-500);
}


/* =========================================================
   Alerts
   ========================================================= */

.alert {
    padding:
        9px 10px;

    margin-bottom:
        12px;

    border:
        1px solid transparent;

    border-radius:
        var(--radius-md);

    font-size: 0.74rem;

    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.alert.is-dismissing {
    opacity: 0;

    transform:
        translateY(-4px);
}

.alert-success {
    color:
        var(--success);

    background:
        var(--success-bg);

    border-color:
        var(--success-border);
}

.alert-warning {
    color:
        var(--warning);

    background:
        var(--warning-bg);

    border-color:
        var(--warning-border);
}

.alert-error {
    color:
        var(--danger);

    background:
        var(--danger-bg);

    border-color:
        var(--danger-border);
}

.alert-info {
    color:
        var(--info);

    background:
        var(--info-bg);

    border-color:
        var(--info-border);
}


/* =========================================================
   Badges
   ========================================================= */

.badge {
    min-height: 19px;

    display: inline-flex;
    align-items: center;

    padding:
        2px 6px;

    border-radius:
        var(--radius-full);

    background:
        var(--slate-100);

    color:
        var(--slate-700);

    font-size: 0.62rem;
    font-weight: 700;
}

.badge-primary {
    background:
        var(--brand-100);

    color:
        var(--brand-800);
}

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

    color:
        var(--success);
}

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

    color:
        var(--warning);
}

.badge-danger {
    background:
        var(--danger-bg);

    color:
        var(--danger);
}


/* =========================================================
   Tables
   ========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling:
        touch;

    background:
        var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-lg);
}

table {
    width: 100%;

    min-width: 560px;

    border-collapse:
        collapse;
}

th,
td {
    padding:
        8px 10px;

    text-align:
        left;

    border-bottom:
        1px solid
        var(--color-border);
}

th {
    background:
        var(--slate-50);

    color:
        var(--slate-700);

    font-size: 0.62rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing:
        0.04em;
}

td {
    color:
        var(--slate-700);

    font-size: 0.72rem;
}

tbody tr:hover {
    background:
        var(--slate-50);
}

tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   Empty States
   ========================================================= */

.empty-state {
    padding:
        28px 15px;

    text-align: center;

    background:
        var(--color-surface);

    border:
        1px dashed
        var(--color-border-strong);

    border-radius:
        var(--radius-lg);
}

.empty-state h3 {
    margin-bottom: 5px;
}

.empty-state p {
    max-width: 420px;

    margin-inline: auto;
}


/* =========================================================
   Progress
   ========================================================= */

.progress {
    height: 5px;

    margin-top: 7px;

    overflow: hidden;

    border-radius:
        var(--radius-full);

    background:
        var(--slate-200);
}

.progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        var(--color-primary);
}


/* =========================================================
   Books
   ========================================================= */

.book-list {
    margin-top: 17px;
}

.book {
    display: flex;
    align-items: center;

    gap: 8px;
}

.book p {
    margin:
        2px 0;

    font-size: 0.7rem;
}

.cover {
    width: 32px;
    height: 43px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius:
        var(--radius-xs);

    background:
        linear-gradient(
            145deg,
            var(--brand-900),
            var(--accent-500)
        );

    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 800;
}


/* =========================================================
   Public Navigation
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 50;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid
        var(--color-border);

    backdrop-filter:
        blur(14px);
}

.public-nav {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 7px;
}

.public-nav__links {
    display: flex;
    align-items: center;

    gap: 5px;
}

.public-nav__links > a:not(.button) {
    display: none;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding:
        32px 0 28px;

    background:
        radial-gradient(
            circle at 90% 5%,
            var(--brand-100),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            var(--slate-50)
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 25px;
}

.hero-copy {
    max-width: 560px;

    font-size: 0.82rem;
}

.hero-preview {
    min-width: 0;
}

.preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 13px;
}


/* =========================================================
   Hero Trust
   ========================================================= */

.hero-trust {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 6px;

    margin-top: 18px;
}

.hero-trust > div {
    padding:
        8px 10px;

    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);
}

.hero-trust strong,
.hero-trust span {
    display: block;
}

.hero-trust strong {
    font-size: 0.72rem;
}

.hero-trust span {
    margin-top: 2px;

    color:
        var(--color-text-muted);

    font-size: 0.62rem;
}


/* =========================================================
   Public Sections
   ========================================================= */

.section-heading {
    max-width: 580px;

    margin-bottom: 18px;
}

.section-heading p {
    margin-bottom: 0;
}

.feature-grid article {
    position: relative;

    overflow: hidden;
}

.feature-number {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius:
        var(--radius-md);

    background:
        var(--brand-100);

    color:
        var(--brand-800);

    font-size: 0.58rem;
    font-weight: 800;
}

/* =========================================================
   Class Management
   ========================================================= */

.class-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 6px;

    padding:
        8px 0;
}

.class-stats > div {
    min-width: 0;

    padding:
        7px 8px;

    background:
        var(--color-surface-soft);

    border-radius:
        var(--radius-md);
}

.class-stats strong,
.class-stats span {
    display: block;
}

.class-stats strong {
    margin-bottom: 2px;

    font-size: 0.86rem;
}

.class-stats span {
    color:
        var(--color-text-muted);

    font-size: 0.6rem;
}

@media (max-width: 380px) {

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

}


/* =========================================================
   CTA
   ========================================================= */

.cta-card {
    display: flex;

    flex-direction: column;

    gap: 15px;

    padding: 15px;

    border:
        1px solid
        var(--brand-200);

    border-radius:
        var(--radius-2xl);

    background:
        linear-gradient(
            145deg,
            var(--brand-50),
            #ffffff
        );

    box-shadow:
        var(--shadow-brand);
}

.cta-card h2 {
    margin-bottom: 6px;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer,
footer {
    padding:
        19px 0;

    background:
        var(--color-surface);

    border-top:
        1px solid
        var(--color-border);

    color:
        var(--slate-500);
}

.footer-inner {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-inner p {
    margin:
        4px 0 0;
}

.footer-copy {
    color:
        var(--color-text-muted);

    font-size: 0.68rem;
}


/* =========================================================
   Dividers
   ========================================================= */

hr {
    margin:
        19px 0;

    border: 0;

    border-top:
        1px solid
        var(--color-border);
}

/* =========================================================
   Checkbox Collections
   ========================================================= */

.checkbox-grid {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 6px;
}

.checkbox-card {
    display: flex;

    align-items: center;

    gap: 7px;

    margin: 0;

    padding:
        8px 10px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    cursor: pointer;
}

.checkbox-card:hover {
    border-color:
        var(--brand-300);

    background:
        var(--color-surface-soft);
}

.checkbox-card input {
    width: auto;
    min-height: auto;

    margin: 0;
}

.checkbox-card span {
    font-size: 0.72rem;
    font-weight: 700;
}

@media (min-width: 640px) {

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

}

@media (min-width: 1024px) {

    .checkbox-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   Dark Theme
   ========================================================= */

html[data-theme="dark"] {
    --color-text: #f8fafc;
    --color-text-muted: #cbd5e1;

    --color-background: #0f172a;
    --color-surface: #111827;
    --color-surface-soft: #1e293b;

    --color-border: #263244;
    --color-border-strong: #334155;
}

html[data-theme="dark"] body {
    background:
        var(--color-background);

    color:
        var(--color-text);
}

html[data-theme="dark"] .app-header,
html[data-theme="dark"] .site-header {
    background:
        rgba(15, 23, 42, 0.92);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .cards article,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .metric-grid article,
html[data-theme="dark"] .table-wrapper,
html[data-theme="dark"] footer,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .mobile-nav {
    background:
        var(--color-surface);
}

html[data-theme="dark"] .icon-button {
    background:
        var(--color-surface);

    color:
        var(--color-text);
}

html[data-theme="dark"] .nav-link {
    color:
        var(--slate-300);
}

html[data-theme="dark"] .nav-link:hover {
    background:
        var(--slate-800);

    color:
        #ffffff;
}

html[data-theme="dark"] .nav-link.active {
    background:
        rgba(79, 70, 229, 0.25);

    color:
        var(--brand-200);
}

html[data-theme="dark"] .metric-grid strong {
    color:
        #ffffff;
}

html[data-theme="dark"] .card-muted {
    background:
        var(--slate-800);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background:
        #0f172a;

    color:
        #f8fafc;
}

html[data-theme="dark"] form label {
    color:
        var(--slate-300);
}

html[data-theme="dark"] th {
    background:
        #1e293b;

    color:
        #cbd5e1;
}

html[data-theme="dark"] td {
    color:
        #cbd5e1;
}

html[data-theme="dark"] tbody tr:hover {
    background:
        rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] p {
    color:
        var(--color-text-muted);
}

html[data-theme="dark"] strong {
    color:
        var(--color-text);
}

html[data-theme="dark"] .button-secondary {
    background:
        #1e293b;

    color:
        #f8fafc;

    border-color:
        var(--slate-700);
}

html[data-theme="dark"] .button-secondary:hover {
    background:
        var(--slate-700);

    color:
        #ffffff;
}

html[data-theme="dark"] .button-ghost {
    color:
        var(--slate-300);
}

html[data-theme="dark"] .button-ghost:hover {
    background:
        var(--slate-800);

    color:
        #ffffff;
}

html[data-theme="dark"] .hero {
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(79, 70, 229, 0.18),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #111827,
            #0f172a
        );
}

html[data-theme="dark"] .hero-trust > div {
    background:
        rgba(30, 41, 59, 0.72);
}

html[data-theme="dark"] .cta-card {
    background:
        linear-gradient(
            145deg,
            rgba(49, 46, 129, 0.4),
            var(--color-surface)
        );
}


/* =========================================================
   Mobile Form Safety
   ========================================================= */

@media (max-width: 639px) {

    input,
    select,
    textarea {
        min-height: 42px;

        font-size: 16px;
    }

}


/* =========================================================
   Tablet ≥ 640px
   ========================================================= */

@media (min-width: 640px) {

    .container {
        padding-inline: 16px;
    }

    .app-header__inner {
        padding-inline: 16px;
    }

    .user-summary__name {
        display: inline-block;
    }

    .cards {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 11px;
    }

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

    .actions {
        width: auto;

        flex-direction: row;

        align-items: center;
    }

    .actions .button,
    .actions button {
        width: auto;
    }

    .row {
        flex-direction: row;

        align-items: center;
    }

    .row-between {
        flex-direction: row;

        align-items: center;
        justify-content: space-between;
    }

    .public-nav__links {
        gap: 10px;
    }

    .public-nav__links > a:not(.button) {
        display: inline-flex;
    }

    .hero {
        padding:
            40px 0 34px;
    }

    .hero-trust {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .cta-card {
        padding: 19px;
    }

}


/* =========================================================
   Tablet / Small Desktop ≥ 768px
   ========================================================= */

@media (min-width: 768px) {

    .app-main {
        padding-top: 20px;
    }

    .dashboard-heading {
        flex-direction: row;

        justify-content: space-between;
        align-items: flex-start;
    }

    .metric-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .section {
        padding:
            30px 0;
    }

}


/* =========================================================
   Desktop ≥ 1024px
   ========================================================= */

@media (min-width: 1024px) {

    .mobile-menu-button,
    .mobile-nav,
    .mobile-nav-backdrop {
        display:
            none !important;
    }

    .desktop-navigation {
        display: block;

        flex: 1;

        min-width: 0;

        margin-inline: 14px;
    }

    .desktop-navigation .dashboard-nav {
        width: auto;

        display: flex;

        flex-direction: row;

        align-items: center;
        justify-content: center;

        gap: 1px;
    }

    .desktop-navigation .nav-link {
        width: auto;

        min-height: 29px;

        padding:
            5px 6px;

        font-size: 0.66rem;

        white-space: nowrap;
    }

    .desktop-navigation .nav-link__icon {
        display: none;
    }

    .cards {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .dashboard-card {
        padding: 16px;
    }

    .hero {
        padding:
            52px 0;
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(320px, 0.95fr);

        align-items: center;

        gap: 42px;
    }

    .cta-card {
        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        padding: 27px;
    }

    .cta-card > div:first-child {
        max-width: 560px;
    }

    .cta-card .actions {
        flex-shrink: 0;

        margin-top: 0;
    }

    .footer-inner {
        flex-direction: row;

        align-items: center;
        justify-content: space-between;
    }

}


/* =========================================================
   Wide Desktop ≥ 1280px
   ========================================================= */

@media (min-width: 1280px) {

    .desktop-navigation .nav-link {
        padding:
            5px 7px;

        font-size: 0.68rem;
    }

    .desktop-navigation .nav-link__icon {
        display: inline-grid;
    }

}

/* =========================================================
   School Forms
   Students / Teachers / Classes / Assignments
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-group {
    min-width: 0;
    margin-bottom: 10px;
}

.form-group label {
    display: block;

    margin:
        0 0 4px;

    color:
        var(--color-text);

    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    min-height: 36px;

    padding:
        7px 9px;

    border:
        1px solid
        var(--color-border-strong);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    color:
        var(--color-text);

    font-size: 0.76rem;
    line-height: 1.35;

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color:
        var(--slate-400);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color:
        var(--slate-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        var(--brand-500);

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.1);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background:
        var(--color-surface-soft);

    color:
        var(--color-text-muted);

    cursor: not-allowed;
}

.form-group textarea {
    min-height: 90px;

    resize: vertical;
}

.form-group select {
    cursor: pointer;
}


/* =========================================================
   Validation
   ========================================================= */

.field-error {
    margin-top: 4px;

    color:
        var(--danger);

    font-size: 0.64rem;
    font-weight: 600;
}

.field-help {
    margin-top: 4px;

    color:
        var(--color-text-muted);

    font-size: 0.64rem;
    line-height: 1.4;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color:
        var(--danger);
}


/* =========================================================
   Form Card
   ========================================================= */

.form-card {
    width: 100%;
}

.form-card__header {
    margin-bottom: 14px;
}

.form-card__header h2,
.form-card__header h3 {
    margin-bottom: 4px;
}

.form-card__header p {
    margin-bottom: 0;
}


/* =========================================================
   Form Sections
   ========================================================= */

.form-section {
    padding:
        0 0 14px;

    margin-bottom: 14px;

    border-bottom:
        1px solid
        var(--color-border);
}

.form-section:last-child {
    padding-bottom: 0;

    margin-bottom: 0;

    border-bottom: 0;
}

.form-section__heading {
    margin-bottom: 10px;
}

.form-section__heading h3 {
    margin-bottom: 3px;
}

.form-section__heading p {
    margin-bottom: 0;

    font-size: 0.7rem;
}


/* =========================================================
   Form Actions
   ========================================================= */

.form-actions {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-top: 16px;

    padding-top: 12px;

    border-top:
        1px solid
        var(--color-border);
}

.form-actions .button {
    width: 100%;
}


/* =========================================================
   Checkbox / Radio Rows
   ========================================================= */

.checkbox-row,
.radio-row {
    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    cursor: pointer;
}

.checkbox-row input,
.radio-row input {
    width: auto;
    min-height: auto;

    margin: 0;

    accent-color:
        var(--color-primary);
}

.checkbox-row span,
.radio-row span {
    color:
        var(--color-text-muted);

    font-size: 0.7rem;
}


/* =========================================================
   Checkbox Collections
   ========================================================= */

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 6px;
}

.checkbox-card {
    display: flex;
    align-items: center;

    gap: 7px;

    padding:
        8px 9px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    cursor: pointer;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.checkbox-card:hover {
    border-color:
        var(--brand-300);

    background:
        var(--color-surface-soft);
}

.checkbox-card input {
    width: auto;
    min-height: auto;

    margin: 0;
}

.checkbox-card span {
    font-size: 0.7rem;
    font-weight: 700;
}


/* =========================================================
   Mobile Form Safety
   ========================================================= */

@media (max-width: 639px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 42px;

        font-size: 16px;
    }

}


/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 640px) {

    .form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            10px 12px;
    }

    .form-actions {
        flex-direction: row;

        align-items: center;
    }

    .form-actions .button {
        width: auto;
    }

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

}


/* =========================================================
   Desktop
   ========================================================= */

@media (min-width: 1024px) {

    .checkbox-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}/* =========================================================
   Form Card
   ========================================================= */

.form-card {
    width: 100%;
    max-width: 100%;
}

.form-card__header {
    margin-bottom: 14px;
    padding-bottom: 10px;

    border-bottom:
        1px solid var(--color-border);
}

.form-card__header h3 {
    margin-bottom: 3px;
}

.form-card__header p {
    margin-bottom: 0;
}


/* =========================================================
   Form Grid
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
}


/* =========================================================
   Form Groups
   ========================================================= */

.form-group {
    min-width: 0;
    margin: 0;
}

.form-group label {
    display: block;

    margin-bottom: 4px;

    color:
        var(--color-text);

    font-size: 0.7rem;
    font-weight: 700;
}


/* =========================================================
   Inputs
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    min-height: 36px;

    padding:
        7px 9px;

    border:
        1px solid var(--color-border-strong);

    border-radius:
        var(--radius-md);

    background:
        var(--color-surface);

    color:
        var(--color-text);

    font-size: 0.76rem;

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color:
        var(--slate-400);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color:
        var(--slate-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        var(--brand-500);

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    min-height: 90px;

    resize: vertical;
}


/* =========================================================
   Validation
   ========================================================= */

.field-error {
    margin-top: 4px;

    color:
        var(--danger);

    font-size: 0.64rem;
    font-weight: 600;
}

.field-help {
    margin-top: 4px;

    color:
        var(--color-text-muted);

    font-size: 0.64rem;
}


/* =========================================================
   Form Actions
   ========================================================= */

.form-actions {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-top: 16px;

    padding-top: 12px;

    border-top:
        1px solid var(--color-border);
}

.form-actions .button {
    width: 100%;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 639px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 42px;

        font-size: 16px;
    }

}


/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 640px) {

    .form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            10px 12px;
    }

    .form-actions {
        flex-direction: row;

        align-items: center;
    }

    .form-actions .button {
        width: auto;
    }

}


/* =========================================================
   Dark Mode
   ========================================================= */

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background:
        var(--color-surface);

    color:
        var(--color-text);
}

html[data-theme="dark"] .form-card__header {
    border-color:
        var(--color-border);
}

/* =========================================================
   Library
   ========================================================= */

.library-toolbar {
    width: 100%;
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
}

.library-resource-card {
    min-width: 0;

    overflow: hidden;

    background:
        var(--color-surface);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.library-resource-card:hover {
    transform:
        translateY(-2px);

    border-color:
        var(--brand-200);

    box-shadow:
        var(--shadow-md);
}

.library-resource-card__cover {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        var(--color-surface-soft);
}

.library-resource-card__cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.library-resource-placeholder {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            145deg,
            var(--brand-900),
            var(--accent-500)
        );

    color: #ffffff;

    font-size: 1.5rem;
    font-weight: 900;
}

.library-resource-card__body {
    padding: 11px;
}

.library-resource-card__meta {
    margin-bottom: 7px;
}

.library-resource-card__body h3 {
    margin-bottom: 3px;
}

.library-resource-card__body p {
    margin-bottom: 7px;
}

.resource-description {
    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.library-resource-card__actions {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 10px;
}


/* =========================================================
   Reports
   ========================================================= */

.report-filter-card {
    width: 100%;
}


/* =========================================================
   Tablet Library
   ========================================================= */

@media (min-width: 640px) {

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

}


/* =========================================================
   Desktop Library
   ========================================================= */

@media (min-width: 1024px) {

    .library-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

}
/* =========================================================
   Teacher Directory
   ========================================================= */

.teacher-class-list {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 4px;

    min-width: 130px;
}

.teacher-class-list .badge {
    white-space: nowrap;
}

/* =========================================================
   Condensed Directory Tables
   ========================================================= */

.table-wrapper table {
    width: 100%;

    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding:
        6px 8px;

    vertical-align: middle;
}

.table-wrapper th {
    font-size: 0.59rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.045em;

    white-space: nowrap;
}

.table-wrapper td {
    font-size: 0.68rem;

    line-height: 1.25;
}

.table-wrapper tbody tr {
    height: 42px;
}


/* =========================================================
   Student / Person Cell
   ========================================================= */

.directory-person {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-width: 0;
}

.directory-avatar {
    width: 27px;
    height: 27px;

    flex:
        0 0 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--color-border);

    border-radius: 50%;

    background:
        var(--color-surface-soft);

    color:
        var(--color-primary);

    font-size: 0.62rem;
    font-weight: 800;

    line-height: 1;
}

.directory-person__details {
    min-width: 0;
}

.directory-person__name {
    display: flex;

    align-items: center;

    min-width: 0;
}

.directory-person__name a {
    color:
        var(--color-text);

    font-size: 0.7rem;
    font-weight: 750;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.directory-person__name a:hover {
    color:
        var(--color-primary);
}

.directory-person__meta {
    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.58rem;

    white-space: nowrap;
}


/* =========================================================
   Compact Table Values
   ========================================================= */

.table-value,
.table-link,
.table-email {
    font-size: 0.66rem;
}

.table-link {
    color:
        var(--color-primary);

    font-weight: 700;

    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-email {
    display: inline-block;

    max-width: 190px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.table-secondary {
    display: block;

    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.56rem;
}


/* =========================================================
   Icon Actions
   ========================================================= */

.table-icon-actions {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    white-space: nowrap;
}

.table-icon-form {
    display: inline-flex;

    width: auto;

    margin: 0;
}

.table-icon-button {
    width: 28px;
    height: 28px;

    flex:
        0 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-sm);

    background:
        var(--color-surface);

    color:
        var(--color-text-muted);

    cursor: pointer;

    text-decoration: none;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.table-icon-button svg {
    width: 14px;
    height: 14px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}

.table-icon-button:hover {
    color:
        var(--color-primary);

    border-color:
        var(--brand-300);

    background:
        var(--color-surface-soft);
}

.table-icon-button--danger:hover {
    color:
        var(--danger);

    border-color:
        var(--danger);
}


/* =========================================================
   Compact Status Badge
   ========================================================= */

.table-wrapper .badge {
    padding:
        3px 6px;

    font-size: 0.56rem;

    white-space: nowrap;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .table-wrapper th,
    .table-wrapper td {
        padding:
            6px;
    }

    .directory-avatar {
        width: 25px;
        height: 25px;

        flex-basis: 25px;
    }

    .table-icon-button {
        width: 27px;
        height: 27px;

        flex-basis: 27px;
    }

}/* =========================================================
   Condensed Directory Tables
   ========================================================= */

.table-wrapper table {
    width: 100%;

    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding:
        6px 8px;

    vertical-align: middle;
}

.table-wrapper th {
    font-size: 0.59rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.045em;

    white-space: nowrap;
}

.table-wrapper td {
    font-size: 0.68rem;

    line-height: 1.25;
}

.table-wrapper tbody tr {
    height: 42px;
}


/* =========================================================
   Student / Person Cell
   ========================================================= */

.directory-person {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-width: 0;
}

.directory-avatar {
    width: 27px;
    height: 27px;

    flex:
        0 0 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--color-border);

    border-radius: 50%;

    background:
        var(--color-surface-soft);

    color:
        var(--color-primary);

    font-size: 0.62rem;
    font-weight: 800;

    line-height: 1;
}

.directory-person__details {
    min-width: 0;
}

.directory-person__name {
    display: flex;

    align-items: center;

    min-width: 0;
}

.directory-person__name a {
    color:
        var(--color-text);

    font-size: 0.7rem;
    font-weight: 750;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.directory-person__name a:hover {
    color:
        var(--color-primary);
}

.directory-person__meta {
    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.58rem;

    white-space: nowrap;
}


/* =========================================================
   Compact Table Values
   ========================================================= */

.table-value,
.table-link,
.table-email {
    font-size: 0.66rem;
}

.table-link {
    color:
        var(--color-primary);

    font-weight: 700;

    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-email {
    display: inline-block;

    max-width: 190px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.table-secondary {
    display: block;

    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.56rem;
}


/* =========================================================
   Icon Actions
   ========================================================= */

.table-icon-actions {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    white-space: nowrap;
}

.table-icon-form {
    display: inline-flex;

    width: auto;

    margin: 0;
}

.table-icon-button {
    width: 28px;
    height: 28px;

    flex:
        0 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-sm);

    background:
        var(--color-surface);

    color:
        var(--color-text-muted);

    cursor: pointer;

    text-decoration: none;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.table-icon-button svg {
    width: 14px;
    height: 14px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}

.table-icon-button:hover {
    color:
        var(--color-primary);

    border-color:
        var(--brand-300);

    background:
        var(--color-surface-soft);
}

.table-icon-button--danger:hover {
    color:
        var(--danger);

    border-color:
        var(--danger);
}


/* =========================================================
   Compact Status Badge
   ========================================================= */

.table-wrapper .badge {
    padding:
        3px 6px;

    font-size: 0.56rem;

    white-space: nowrap;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .table-wrapper th,
    .table-wrapper td {
        padding:
            6px;
    }

    .directory-avatar {
        width: 25px;
        height: 25px;

        flex-basis: 25px;
    }

    .table-icon-button {
        width: 27px;
        height: 27px;

        flex-basis: 27px;
    }

}

/* =========================================================
   Condensed Directory Tables
   ========================================================= */

.table-wrapper table {
    width: 100%;

    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding:
        6px 8px;

    vertical-align: middle;
}

.table-wrapper th {
    font-size: 0.59rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.045em;

    white-space: nowrap;
}

.table-wrapper td {
    font-size: 0.68rem;

    line-height: 1.25;
}

.table-wrapper tbody tr {
    height: 42px;
}


/* =========================================================
   Student / Person Cell
   ========================================================= */

.directory-person {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-width: 0;
}

.directory-avatar {
    width: 27px;
    height: 27px;

    flex:
        0 0 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--color-border);

    border-radius: 50%;

    background:
        var(--color-surface-soft);

    color:
        var(--color-primary);

    font-size: 0.62rem;
    font-weight: 800;

    line-height: 1;
}

.directory-person__details {
    min-width: 0;
}

.directory-person__name {
    display: flex;

    align-items: center;

    min-width: 0;
}

.directory-person__name a {
    color:
        var(--color-text);

    font-size: 0.7rem;
    font-weight: 750;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.directory-person__name a:hover {
    color:
        var(--color-primary);
}

.directory-person__meta {
    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.58rem;

    white-space: nowrap;
}


/* =========================================================
   Compact Table Values
   ========================================================= */

.table-value,
.table-link,
.table-email {
    font-size: 0.66rem;
}

.table-link {
    color:
        var(--color-primary);

    font-weight: 700;

    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-email {
    display: inline-block;

    max-width: 190px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.table-secondary {
    display: block;

    margin-top: 1px;

    color:
        var(--color-text-muted);

    font-size: 0.56rem;
}


/* =========================================================
   Icon Actions
   ========================================================= */

.table-icon-actions {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    white-space: nowrap;
}

.table-icon-form {
    display: inline-flex;

    width: auto;

    margin: 0;
}

.table-icon-button {
    width: 28px;
    height: 28px;

    flex:
        0 0 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid var(--color-border);

    border-radius:
        var(--radius-sm);

    background:
        var(--color-surface);

    color:
        var(--color-text-muted);

    cursor: pointer;

    text-decoration: none;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.table-icon-button svg {
    width: 14px;
    height: 14px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}

.table-icon-button:hover {
    color:
        var(--color-primary);

    border-color:
        var(--brand-300);

    background:
        var(--color-surface-soft);
}

.table-icon-button--danger:hover {
    color:
        var(--danger);

    border-color:
        var(--danger);
}


/* =========================================================
   Compact Status Badge
   ========================================================= */

.table-wrapper .badge {
    padding:
        3px 6px;

    font-size: 0.56rem;

    white-space: nowrap;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .table-wrapper th,
    .table-wrapper td {
        padding:
            6px;
    }

    .directory-avatar {
        width: 25px;
        height: 25px;

        flex-basis: 25px;
    }

    .table-icon-button {
        width: 27px;
        height: 27px;

        flex-basis: 27px;
    }

}

/* =========================================================
   Teacher Class List
   ========================================================= */

.teacher-class-list {
    display: inline-flex;

    flex-wrap: nowrap;

    align-items: center;

    gap: 3px;

    max-width: 180px;

    white-space: nowrap;
}

.teacher-class-list .badge {
    padding:
        3px 5px;

    font-size: 0.55rem;
}

/* =========================================================
   Small Directory Variant
   ========================================================= */

.directory-person--small {
    gap: 5px;
}

.directory-avatar--small {
    width: 22px;
    height: 22px;

    flex-basis: 22px;

    font-size: 0.52rem;
}


/* =========================================================
   Class / Stream Table
   ========================================================= */

.table-condensed .directory-person__name strong {
    font-size: 0.68rem;
    font-weight: 750;

    white-space: nowrap;
}

.table-condensed .table-link {
    font-size: 0.64rem;
}

.table-condensed td:last-child,
.table-condensed th:last-child {
    width: 1%;

    white-space: nowrap;
}