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

:root {
    --bg-base: #EADDCA;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f3e9d8;
    --primary: #7393B3;
    --primary-hover: #5a7691;
    --secondary: #8A9A5B;
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --amber: #FFBF00;
    --cadmium-red: #D22B2B;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.navbar__links {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.navbar__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.navbar__link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
}

.navbar__link--active {
    background: var(--primary);
    color: white;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

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

.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn--outline:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
}

.btn--danger {
    background: rgba(239, 68, 68, 1);
    color: white;
}

.btn--danger:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 0.25rem 0 4rem;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero__subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.hero__content h1 {
    margin-bottom: 1.5rem;
}

.hero__highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__text {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.stats__item {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.stats__item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stats__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stats__label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section {
    padding: 3rem 0 6rem;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: var(--text-muted);
}

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

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================================
   GLASS UTILITY
   ============================================================ */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    padding: 2rem;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login {
    max-width: 450px;
    margin: 2rem auto;
    animation: fadeUp 0.5s ease-out;
}

.login__card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    backdrop-filter: blur(16px);
}

.login__header {
    text-align: center;
    margin-bottom: 2rem;
}

.login__header h2 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   ROLE TOGGLE
   ============================================================ */
.role-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.role-toggle__btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
}

.role-toggle__btn--active {
    background: var(--primary);
    color: white;
}

/* ============================================================
   FORM
   ============================================================ */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form__control,
.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form__control:focus,
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(115, 147, 179, 0.2);
}

.form__error {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* ============================================================
   STATUS MESSAGES
   ============================================================ */
.status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.status--success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.status--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ============================================================
   DASHBOARD TABS
   ============================================================ */
.tabs {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs__nav {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 0.4rem;
    gap: 0.25rem;
}

.tabs__btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tabs__btn:hover:not(.tabs__btn--active) {
    background: rgba(255, 255, 255, 0.5);
}

.tabs__btn--active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tabs__panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tabs__panel--active {
    display: block;
}

/* ============================================================
   PILL TOGGLE (inside panels)
   ============================================================ */
.pill-toggle {
    display: inline-flex;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.pill-toggle__btn {
    background: transparent;
    color: var(--text-main);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-toggle__btn--active {
    background: var(--primary);
    color: white;
}

/* ============================================================
   PANEL (dashboard content areas)
   ============================================================ */
.panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
}

.panel--full {
    grid-column: 1 / -1;
}

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    margin-bottom: 1rem;
}

.panel__header h3 {
    color: var(--primary);
    margin: 0;
}

/* ============================================================
   LANDING PILLS
   ============================================================ */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.landing-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.landing-pill:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.landing-pill__icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(115, 147, 179, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.landing-pill__text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-main);
}

/* ============================================================
   PANEL STATE VISIBILITY LOGIC
   ============================================================ */
body.is-home-active .tabs {
    display: none;
}

body:not(.is-home-active) .welcome {
    display: none;
}


/* ============================================================
   WELCOME BANNER
   ============================================================ */
.welcome {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-hover));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.welcome h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome__name {
    color: var(--primary);
}

.welcome__sub {
    color: var(--text-muted);
}

/* ============================================================
   PERFORMANCE CARD
   ============================================================ */
.perf-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(16px);
    display: none;
}

.perf-card--visible {
    display: flex;
}

.perf-card__stat {
    text-align: center;
    flex: 1;
}

.perf-card__stat:not(:last-child) {
    border-right: 1px solid var(--glass-border);
}

.perf-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.perf-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ============================================================
   DASHBOARD GRID (student)
   ============================================================ */
.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .dashboard {
        grid-template-columns: 2fr 1fr;
    }
}

/* ============================================================
   MATERIAL LIST
   ============================================================ */
.material-list {
    display: grid;
    gap: 1rem;
}

.material-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.material-list__item:hover {
    border-color: var(--primary);
    background: rgba(115, 147, 179, 0.05);
}

.material-list__info h4 {
    margin: 0 0 0.25rem 0;
}

.material-list__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

/* ============================================================
   NOTICE LIST (announcements on student dashboard)
   ============================================================ */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-list__item {
    padding: 1rem;
    background: rgba(138, 154, 91, 0.05);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.notice-list__item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}

.notice-list__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.notice-list__body {
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    backdrop-filter: blur(16px);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar__group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-bar__control {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
}

.filter-bar__control:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    backdrop-filter: blur(16px);
}

.data-table table,
.data-table--inline {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.data-table__th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.data-table__td {
    padding: 1rem;
    color: var(--text-muted);
}

.data-table__td--main {
    padding: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.data-table__row {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table__row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.data-table th {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.data-table__score {
    font-weight: 700;
    color: var(--text-main);
}

/* Scrollable table wrapper (used inside panels) */
.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-wrap thead tr {
    border-bottom: 2px solid var(--border-color);
}

.table-wrap th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.table-wrap td {
    padding: 1rem;
    color: var(--text-muted);
}

.table-wrap td.--main {
    color: var(--text-main);
    font-weight: 500;
}

.table-wrap tr.--row {
    border-bottom: 1px solid var(--border-color);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-block;
    background: rgba(138, 154, 91, 0.15);
    color: var(--secondary);
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(138, 154, 91, 0.3);
}

.badge--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonials__card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.testimonials__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.testimonials__media {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-hover);
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials__media img,
.testimonials__media video {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.testimonials__text {
    color: var(--text-main);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.testimonials__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.testimonials__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonials__author-info h4 {
    margin: 0;
    color: var(--text-main);
}

.testimonials__author-info p {
    margin: 0;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================
   EMPTY STATE & LOADING TEXT
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-text {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* ============================================================
   PANELS CONTAINER (teacher dashboard)
   ============================================================ */
.panels-container {
    /* Wrapper for all tab panels in teacher dashboard */
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================================
   MANAGE MARKS — stat cards
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(16px);
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-card__label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   BREADCRUMB / BACK LINK
   ============================================================ */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb__link {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb__title {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.breadcrumb__meta {
    color: var(--text-muted);
}

/* ============================================================
   FORM — CHECKBOX GROUPS
   ============================================================ */
.form__checkbox-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--text-main);
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form__checkbox {
    width: 1.2rem;
    height: 1.2rem;
}

/* ============================================================
   SUBJECT PILL SELECTOR
   ============================================================ */
.subject-pills {
    display: inline-flex;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    margin-top: 0.4rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.subject-pill {
    cursor: pointer;
    user-select: none;
}

.subject-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.subject-pill__label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.subject-pill input[type="checkbox"]:checked + .subject-pill__label {
    background: var(--secondary);
    color: #fff;
}

/* ============================================================
   FORM — AUTO-GEN TOGGLE
   ============================================================ */
.form__toggle {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form__toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
}

.form__toggle-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1.7rem;
}

.form__custom-fields {
    display: none;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    margin-bottom: 1.5rem;
}

.form__custom-fields--visible {
    display: block;
}

/* ============================================================
   FORM — FILE UPLOAD ZONE
   ============================================================ */
.form__upload-zone {
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.form__upload-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   FORM — ROW LAYOUT (side-by-side fields)
   ============================================================ */
.form__row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form__row-item {
    flex: 1;
    min-width: 160px;
}

/* ============================================================
   MARKS TABLE — INLINE INPUT
   ============================================================ */
.form__control--narrow {
    max-width: 150px;
}

/* ============================================================
   PANEL DIVIDER (used as border-top between list/form in tabs)
   ============================================================ */
.panel__divider {
    display: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.panel__divider--visible {
    display: block;
}

/* ============================================================
   BATCH DETAIL VIEW
   ============================================================ */
.batch-detail {
    animation: fadeIn 0.3s ease;
}

.batch-detail__header {
    margin-bottom: 2rem;
}

.batch-detail__header h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.batch-detail__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.batch-detail__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .batch-detail__body {
        grid-template-columns: 1fr;
    }
}

.batch-detail__members h4,
.student-picker h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.batch-detail__footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   STUDENT PICKER
   ============================================================ */
.student-picker {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.student-picker__search {
    margin-bottom: 1rem;
}

.student-picker__list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.student-picker__list::-webkit-scrollbar {
    width: 6px;
}

.student-picker__list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.student-picker__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.student-picker__item:hover {
    background: rgba(115, 147, 179, 0.08);
}

.student-picker__name {
    font-weight: 500;
    color: var(--text-main);
}

.student-picker__info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.student-picker__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-picker__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   STATUS INFO VARIANT
   ============================================================ */
.status--info {
    background: rgba(115, 147, 179, 0.1);
    color: var(--primary);
    border: 1px solid rgba(115, 147, 179, 0.3);
    display: block;
}

/* ============================================================
   DAY PICKER (MULTI-SELECT PILLS)
   ============================================================ */
.day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.day-picker__label {
    cursor: pointer;
    user-select: none;
}

.day-picker__input {
    display: none;
    /* Hide the actual checkbox */
}

.day-picker__text {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.day-picker__input:checked+.day-picker__text {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 154, 91, 0.3);
}

.day-picker__label:hover .day-picker__text {
    border-color: var(--secondary);
}

/* ============================================================
   CUSTOM TIME PICKER
   ============================================================ */
.time-picker-wrapper {
    position: relative;
    width: 100%;
}

.time-picker-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-picker-display:hover {
    border-color: var(--border-focus);
}

.time-picker-display i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.time-picker-panel {
    width: calc(50% - 0.75rem);
    background: transparent;
    /* Match the backdrop instead of a solid surface */
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    transition: margin-left 0.3s ease;
    padding: 0.5rem 0;
    /* Only vertical padding */
    gap: 0.5rem;
}

/* Redefining what used to be columns as semantic rows */
.time-col {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Match day picker gap */
    border-bottom: none;
    /* Remove dividers for cleaner pill look */
    padding-bottom: 0;
}

.time-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.time-option {
    flex: 1 1 calc(16.666% - 0.5rem);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-option:hover {
    border-color: var(--primary);
}

.time-option--selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(138, 154, 91, 0.3);
    /* Match day picker shadow */
    font-weight: 500;
}

/* ============================================================
   CALENDAR & SCHEDULE
   ============================================================ */
.calendar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.calendar__title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calendar__day-header {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar__day {
    background: var(--bg-surface);
    min-height: 120px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.calendar__day--empty {
    background: rgba(0, 0, 0, 0.01);
}

.calendar__date {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-self: flex-end;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar__date--today {
    background: var(--primary);
    color: white;
}

.calendar__pills {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

.calendar__pill {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    overflow: hidden;
}

.calendar__pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar__pill--regular {
    background: var(--primary);
    /* Theme blue */
    color: white;
}

.calendar__pill--extra {
    background: var(--amber);
    color: white;
    box-shadow: 0 4px 6px rgba(255, 191, 0, 0.2);
}

.calendar__pill-time {
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.calendar__pill-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.calendar__pill-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    opacity: 0.85;
    font-size: 0.7rem;
}

/* ============================================================
   CLASS DETAIL MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.class-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: fadeUp 0.3s ease;
}

.class-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.class-modal__header h3 {
    margin: 0 0 0.25rem 0;
}

.class-modal__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.class-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.class-modal__content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.class-modal__notes {
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.class-modal__content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.class-modal__footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   TEXT ALIGN RIGHT (for button containers)
   ============================================================ */
.text-right {
    text-align: right;
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Footer description */
.footer__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Stats section bottom padding */
.section--stats {
    padding-bottom: 6rem;
}

/* ============================================================
   TESTIMONIALS REDESIGN (GSAP + MASONRY)
   ============================================================ */
.hero-interactive {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-hover));
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.hero-interactive__content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    max-width: 600px;
    padding: 2.5rem;
    background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.75);
    /* Slight transparency */
    backdrop-filter: blur(12px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow to separate from collage */
}

.hero-interactive__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-interactive__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-interactive__media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-interactive__element {
    position: absolute;
    width: 150px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--bg-surface);
    border: 4px solid white;
    transform-origin: center center;
    will-change: transform;
    pointer-events: auto;
    /* Allow hovering/playing if needed */
}

.hero-interactive__element img,
.hero-interactive__element video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-interactive__element--text {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.content-split {
    padding-top: 0;
}

.video-section {
    margin-bottom: 4rem;
}

.video-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar {
    height: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: transparent;
}

.video-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.video-card {
    flex: 0 0 320px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-card__media {
    width: 100%;
    height: 450px;
    background: #000;
}

.video-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__author {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
}

.masonry-grid {
    width: 100%;
}

.testimonials__card {
    width: calc(33.333% - 16px);
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.testimonials__media {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.testimonials__media img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonials__text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
}

.testimonials__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonials__author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.testimonials__author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive updates for testimonials */
@media (max-width: 992px) {
    .testimonials__card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonials__card {
        width: 100%;
    }

    .hero-interactive {
        height: 50vh;
        min-height: 400px;
    }

    .hero-interactive__element {
        width: 100px;
        height: 140px;
    }

    /* ============================================================
   ATTENDANCE
   ============================================================ */
    .classes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .class-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        cursor: pointer;
        transition: var(--transition);
        backdrop-filter: blur(16px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .class-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    }

    .class-card__title {
        font-size: 1.25rem;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .class-card__meta {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    .class-card__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        margin-top: 1rem;
    }

}

/* ============================================================
   ATTENDANCE GRID
   ============================================================ */
.attendance-topbar {
    display: flex;
    flex-direction: column;
}

.attendance-table {
    width: 100%;
}

.attendance-table tr {
    transition: var(--transition);
}

.attendance-table tbody tr:hover {
    background: rgba(115, 147, 179, 0.05);
}

.attendance-toggles {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    gap: 0.2rem;
    border: 1px solid var(--border-color);
}

.attendance-toggle {
    position: relative;
    cursor: pointer;
}

.attendance-toggle input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.attendance-toggle__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-muted);
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.attendance-toggle__mark:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Present - Theme Green */
.attendance-toggle input[value="present"]:checked~.attendance-toggle__mark {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Absent - Cadmium Red */
.attendance-toggle input[value="absent"]:checked~.attendance-toggle__mark {
    background: var(--cadmium-red);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Late - Amber */
.attendance-toggle input[value="late"]:checked~.attendance-toggle__mark {
    background: var(--amber);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   STUDENTS TOOLBAR (search, filter, count)
   ============================================================ */
.students-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.students-toolbar__search {
    flex: 1;
    min-width: 180px;
    padding: 0.6rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.students-toolbar__search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(115, 147, 179, 0.2);
}

.students-toolbar__filter {
    padding: 0.6rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.students-toolbar__filter:focus {
    outline: none;
    border-color: var(--primary);
}

.students-toolbar__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* ============================================================
   ACTION BUTTONS (inline table actions)
   ============================================================ */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0;
}

.action-btn:hover {
    border-color: var(--primary);
    background: rgba(115, 147, 179, 0.08);
    transform: translateY(-1px);
}

.action-btn--danger:hover {
    border-color: var(--cadmium-red);
    background: rgba(210, 43, 43, 0.08);
}

.action-btn--save {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.action-btn--save:hover {
    background: #768a4d;
    transform: translateY(-1px);
}

.action-btn--cancel {
    background: transparent;
}

.action-btns {
    display: flex;
    gap: 0.35rem;
}

/* ============================================================
   STUDENT NAME LINK (clickable in table)
   ============================================================ */
.student-name-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font-main);
    font-size: inherit;
    text-align: left;
}

.student-name-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================================================
   INLINE EDIT ROW
   ============================================================ */
.edit-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--bg-surface);
    width: 100%;
    max-width: 160px;
    transition: var(--transition);
}

.edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(115, 147, 179, 0.2);
}

.edit-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--bg-surface);
    cursor: pointer;
}

tr.editing-row {
    background: rgba(115, 147, 179, 0.06) !important;
}

/* ============================================================
   STUDENT DETAIL VIEW (profile overlay)
   ============================================================ */
.student-detail {
    animation: fadeIn 0.3s ease;
}

.student-detail__header {
    margin-bottom: 2rem;
}

.student-detail__header h3 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.student-detail__meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.student-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.student-detail__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.student-detail__stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.student-detail__stat:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.student-detail__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.student-detail__stat-value--green {
    color: var(--secondary);
}

.student-detail__stat-value--red {
    color: var(--cadmium-red);
}

.student-detail__stat-value--amber {
    color: var(--amber);
}

.student-detail__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-detail__section {
    margin-bottom: 2rem;
}

.student-detail__section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.student-detail__empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   CONFIRM MODAL
   ============================================================ */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeUp 0.3s ease;
}

.confirm-modal h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.confirm-modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .perf-card {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================================
   DOUBT ANSWER & TEST OUTPUT — MARKDOWN CONTENT
   ============================================================ */
#doubtAnswer h1,
#doubtAnswer h2,
#doubtAnswer h3,
#doubtAnswer h4,
#testOutput h1,
#testOutput h2,
#testOutput h3,
#testOutput h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

#doubtAnswer p,
#testOutput p {
    margin-bottom: 0.75rem;
}

#doubtAnswer ul,
#doubtAnswer ol,
#testOutput ul,
#testOutput ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

#doubtAnswer li,
#testOutput li {
    margin-bottom: 0.25rem;
}

#doubtAnswer table,
#testOutput table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

#doubtAnswer th,
#doubtAnswer td,
#testOutput th,
#testOutput td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

#doubtAnswer th,
#testOutput th {
    background: rgba(115, 147, 179, 0.1);
    font-weight: 600;
}

#doubtAnswer code,
#testOutput code {
    background: rgba(115, 147, 179, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88rem;
}

#doubtAnswer strong,
#testOutput strong {
    color: var(--text-main);
    font-weight: 600;
}

#testOutput hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* ============================================================
   BACK TO OVERVIEW — responsive text
   ============================================================ */
.back-text-mobile {
    display: none;
}

/* ============================================================
   HAMBURGER MENU — hidden on desktop by default
   ============================================================ */
.navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    order: -1;
}

/* ============================================================
   MOBILE-OVERRIDABLE LAYOUT CLASSES
   (replaces inline styles in attendance, leaderboard, students)
   ============================================================ */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.transfer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.leaderboard-grid--single {
    grid-template-columns: 1fr;
}

.leaderboard-subject-section + .leaderboard-subject-section {
    margin-top: 2rem;
}

.leaderboard-subject-header {
    margin-bottom: 0.75rem;
}

.leaderboard-subject-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.leaderboard-subject-header p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.leaderboard-grade-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: var(--primary-light, rgba(99,102,241,0.08));
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
}

.leaderboard-grade-banner h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.leaderboard-grade-banner p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.student-detail__twocol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE — 768px (hamburger + spacing + leaderboard)
   ============================================================ */
@media (max-width: 768px) {
    /* Hamburger button */
    .navbar__toggle {
        display: flex;
    }

    .navbar--open .navbar__links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--glass-border);
        z-index: 100;
        border-radius: 0 0 1rem 1rem;
    }

    .navbar {
        position: relative;
    }

    /* Navbar: logo left, hamburger right next to it */
    .navbar__container {
        justify-content: flex-start;
        gap: 1rem;
    }

    .navbar__logo {
        font-size: 1.15rem;
    }

    /* Container & panel spacing */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0 3rem;
    }

    .panel {
        padding: 1.25rem 1rem;
    }

    .panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Back to Overview: full-width centered on mobile */
    .back-to-home-container {
        text-align: center;
    }

    .back-to-home-container .btn {
        width: 100%;
        justify-content: center;
    }

    .back-text-full {
        display: none;
    }

    .back-text-mobile {
        display: inline;
    }

    /* Leaderboard: stack to 1 column on tablets/phones */
    .leaderboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================================
   RESPONSIVE — 600px (phones: grid stacking)
   ============================================================ */
@media (max-width: 600px) {
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .transfer-form-grid {
        grid-template-columns: 1fr;
    }

    .student-detail__twocol {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE — 480px (small phones: iPhone SE range)
   ============================================================ */
@media (max-width: 480px) {
    /* Landing pills: 2-column compact grid */
    .landing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .landing-pill {
        padding: 1rem 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .landing-pill__icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .landing-pill__text {
        font-size: 0.9rem;
    }

    /* Form rows: stack vertically */
    .form__row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form__row-item {
        min-width: auto;
    }

    /* Pill toggles: full-width on small screens */
    .pill-toggle {
        width: 100%;
    }

    .pill-toggle__btn {
        flex: 1;
        text-align: center;
    }

    /* Time picker panels (section marks — hardcoded 33.333%) */
    .time-picker-panel {
        width: 100% !important;
    }

    /* Students toolbar: stack vertically */
    .students-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .students-toolbar__search {
        min-width: auto;
    }

    .students-toolbar__filter {
        min-width: auto;
    }

    /* Student profile grid: 2 columns */
    .student-profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Student stats: 3 per row */
    .student-detail__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .student-detail__stat {
        padding: 0.75rem 0.5rem;
    }

    .student-detail__stat-value {
        font-size: 1.25rem;
    }

    /* Tables: smaller text so more columns fit */
    .table-wrap table {
        font-size: 0.8rem;
    }

    .table-wrap th,
    .table-wrap td {
        padding: 0.45rem 0.4rem;
    }

    /* Performance card */
    .perf-card {
        gap: 0.75rem;
        padding: 1rem;
    }

    .perf-card__stat {
        min-width: 110px;
    }

    /* Touch targets (Apple HIG: 44px minimum) */
    .btn {
        min-height: 44px;
    }

    .btn--sm {
        min-height: 36px;
        padding: 0.4rem 0.875rem;
    }

    /* Welcome header */
    .welcome h1 {
        font-size: 1.5rem;
    }

    .welcome p {
        font-size: 0.9rem;
    }
}

/* ============================================================
   TEACHER DASHBOARD SIDEBAR LAYOUT AND WIDGETS
   ============================================================ */

/* Dashboard Layout */
/* Dashboard pages hide the top navbar — layout fills full viewport */
.dash-page .navbar { display: none; }
.dash-page .dash-layout { min-height: 100vh; }
.dash-page .dash-sidebar { top: 0; height: 100vh; }

.dash-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.dash-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 1rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.dash-sidebar__top {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.dash-sidebar__brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.dash-sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.5rem 0.75rem;
}

.dash-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.dash-sidebar__item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

.dash-sidebar__item--active {
    background: var(--primary);
    color: #fff;
}

.dash-sidebar__item--active:hover {
    background: var(--primary-hover);
    color: #fff;
}

.dash-sidebar__ext-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.dash-sidebar__ext-links .dash-sidebar__item {
    text-decoration: none;
}

.dash-sidebar__bottom {
    padding: 1rem 1.25rem 0.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-sidebar__logout {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-family: var(--font-main);
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.dash-sidebar__logout:hover {
    background: var(--cadmium-red);
    color: #fff;
    border-color: var(--cadmium-red);
}

.dash-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dash-sidebar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dash-sidebar__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-sidebar__role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dash-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
}

.dash-sidebar-backdrop--visible {
    display: block;
}

/* Public page floating sidebar — hidden on desktop, slides in on mobile */
.dash-sidebar--floating {
    display: none;
}

@media (max-width: 768px) {
    .dash-sidebar--floating {
        display: flex;
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.28s ease;
    }

    .dash-sidebar--floating.dash-sidebar--open {
        left: 0;
    }
}

/* Main content area */
.dash-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-main .panels-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-main #panel-home.tabs__panel--active {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.dash-menu-toggle {
    display: none;
}

/* Widget grid */
.dash-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
    flex: 1;
}

.dash-widget--full {
    grid-column: 1 / -1;
}

.dash-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-widget__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-widget__sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

.dash-widget__badge {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* Today's Classes */
.classes-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Today's Classes & Tests — shared landing-pill style */
.class-item,
.test-preview-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.class-item:hover,
.test-preview-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.class-item__badge,
.test-preview-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(115, 147, 179, 0.15);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.class-item__badge--extra {
    background: rgba(255, 191, 0, 0.15);
    color: var(--amber);
}

.test-preview-item--past .test-preview-item__badge {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.class-item__body,
.test-preview-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.class-item__body strong,
.test-preview-item__body strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.class-item__body .text-muted,
.test-preview-item__body .text-muted {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.test-preview-item--past {
    opacity: 0.7;
}

/* Tests Preview */
.tests-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Quick Announcement */
.quick-announce-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-announce-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quick-announce-footer .form__select {
    flex: 1;
    min-width: 0;
}

.quick-announce-footer .badge {
    order: -1;
    flex-shrink: 0;
}

.quick-announce-footer .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Mini Leaderboard */
.mini-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-lb-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.mini-lb-row__medal {
    font-size: 1.15rem;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.mini-lb-row__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mini-lb-row__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    min-width: 0;
}

.mini-lb-row__info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-lb-row__info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mini-lb-row__score {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .dash-widgets {
        grid-template-columns: 1fr 1fr;
    }
    .dash-widget--full {
        grid-column: 1 / -1;
    }
    .dash-sidebar {
        width: 190px;
    }
}

@media (max-width: 600px) {
    .dash-widgets {
        grid-template-columns: 1fr;
    }
    .dash-widget--full {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dash-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--glass-border);
        background: var(--glass-bg);
        border-radius: var(--radius-md);
        cursor: pointer;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .dash-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.28s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    }

    .dash-sidebar--open {
        left: 0;
    }

    .dash-main {
        padding: 1rem;
    }
}
}