:root {
    --navy: #0f3c7d;
    --navy-strong: #0a2d63;
    --navy-soft: #1b57ab;
    --navy-fade: rgba(15, 60, 125, 0.16);
    --panel: #eceaff;
    --card: #ffffff;
    --text: #221f26;
    --muted: #6a6f86;
    --line: rgba(255, 255, 255, 0.22);
    --green: #44c07a;
    --green-soft: rgba(68, 192, 122, 0.16);
    --red-soft: rgba(195, 46, 46, 0.12);
    --red-text: #992525;
    --scrollbar-thumb: #c32e2e;
    --scrollbar-thumb-hover: #992525;
    --scrollbar-track: rgba(195, 46, 46, 0.08);
    --shadow: 0 28px 60px rgba(7, 31, 73, 0.18);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-weight: 300;
    opacity: 0;
    transition: opacity 320ms ease;
}

body.ready {
    opacity: 1;
}

.auth-page {
    background:
        linear-gradient(135deg, rgba(7, 18, 22, 0.28), rgba(13, 33, 51, 0.38)),
        url("asset/flow-bg.webp") center center / cover no-repeat;
}

.app-page {
    background: linear-gradient(180deg, #0f3c7d 0%, #0f3c7d 100%);
}

.material-symbols-rounded {
    font-variation-settings:
        "FILL" 1,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}

.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 18px;
}

.login-track-batch {
    position: fixed;
    top: 34px;
    left: 54px;
    z-index: 20;
    min-height: 54px;
    padding: 0 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff3046 0%, #df1730 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 36px rgba(142, 14, 31, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-track-batch:hover,
.login-track-batch:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 20px 40px rgba(142, 14, 31, 0.36);
    outline: none;
}

.login-card {
    width: min(100%, 650px);
    padding: 70px 58px 36px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(233, 241, 255, 0.62), rgba(213, 229, 249, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 32px 56px rgba(6, 27, 52, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo {
    width: min(100%, 320px);
    height: auto;
    display: block;
    margin: 0 auto 38px;
}

.feedback {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 300;
}

.feedback.success {
    background: var(--green-soft);
    color: #17673c;
}

.feedback.error {
    background: var(--red-soft);
    color: var(--red-text);
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(15, 60, 125, 0.08);
    border-radius: 999px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 300;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-input::placeholder {
    color: #7f8793;
    opacity: 1;
}

.login-input:focus {
    border-color: rgba(15, 60, 125, 0.3);
    box-shadow: 0 0 0 4px rgba(27, 87, 171, 0.12);
    transform: translateY(-1px);
}

.login-button {
    margin: 18px auto 0;
    min-height: 58px;
    min-width: 190px;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 34px;
    background-color: #0f3c7d;
    background-image: linear-gradient(135deg, #1a63d2 0%, #0f3c7d 58%, #0b2d66 100%);
    color: #fff;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(10, 45, 102, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button::before {
    content: none;
}

.login-button::after {
    content: none;
}

.login-button:hover,
.login-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 28px rgba(10, 45, 102, 0.3),
        0 0 0 4px rgba(32, 112, 229, 0.1);
    outline: none;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 344px minmax(0, 1fr);
    gap: 26px;
    padding: 36px 28px 38px 18px;
}

.sidebar {
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.sidebar-brand {
    min-height: 112px;
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 204px;
    max-width: 100%;
}

.sidebar-title {
    margin-top: 14px;
    padding-top: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 6px 18px 6px 4px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    transition: background-color 180ms ease, transform 180ms ease;
}

.nav-label {
    display: inline-flex;
    align-items: center;
}

.nav-item:hover,
.nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
    outline: none;
}

.nav-item.is-active {
    background: var(--navy-soft);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy-strong);
    font-size: 22px;
    flex-shrink: 0;
}

.sidebar-logout {
    margin-top: auto;
    padding-top: 24px;
}

.logout-button {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.dashboard-panel {
    background: var(--panel);
    border-radius: 36px;
    padding: 30px 40px 48px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.45rem, 2vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-circle-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(10, 45, 102, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    flex-shrink: 0;
}

.header-circle-button:hover,
.header-circle-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(10, 45, 102, 0.24);
    background: var(--navy-soft);
    outline: none;
}

.header-circle-button.is-active {
    background: var(--navy-soft);
}

.icon-pill,
.profile-pill {
    border: 0;
    background: var(--navy);
    color: #fff;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font: inherit;
}

.icon-pill {
    width: 56px;
}

.profile-pill {
    padding: 0 26px 0 20px;
    font-size: 16px;
    font-weight: 300;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.profile-pill:hover,
.profile-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10, 45, 102, 0.22);
    background: var(--navy-soft);
    outline: none;
}

.system-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
}

.system-alert .material-symbols-rounded {
    color: var(--navy);
    font-size: 32px;
}

.system-alert p {
    margin: 6px 0 0;
    color: var(--muted);
}

.batch-board {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.batch-row {
    min-height: 82px;
    background: var(--card);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 64px minmax(160px, 1.2fr) repeat(2, minmax(100px, 1fr)) minmax(180px, 1.2fr);
    align-items: center;
    gap: 18px;
    padding: 14px 32px;
}

.batch-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(68, 192, 122, 0.62);
    position: relative;
    animation: statusPulse 1.9s ease-in-out infinite;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--green);
}

.status-dot.is-inactive {
    background: rgba(160, 170, 190, 0.48);
}

.status-dot.is-inactive::after {
    background: #8d94aa;
}

@keyframes statusPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(68, 192, 122, 0.28);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(68, 192, 122, 0);
    }
}

.batch-name,
.batch-meta-item,
.batch-mentor {
    font-size: clamp(1.15rem, 1.5vw, 1.6rem);
    line-height: 1.05;
    color: #242127;
    font-weight: 300;
}

.batch-name {
    font-weight: 500;
}

.batch-mentor {
    justify-self: end;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.summary-card {
    min-height: 176px;
    background: var(--card);
    border-radius: 20px;
    padding: 24px 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.summary-value {
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 300;
    line-height: 0.95;
}

.summary-label {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    line-height: 1.08;
    font-weight: 300;
}

@media (max-width: 1360px) {
    .dashboard-shell {
        grid-template-columns: 292px minmax(0, 1fr);
        gap: 24px;
        padding-right: 20px;
    }

    .brand-logo {
        width: 178px;
    }

    .batch-row {
        grid-template-columns: 56px minmax(140px, 1.2fr) repeat(2, minmax(90px, 1fr)) minmax(150px, 1fr);
        padding-inline: 24px;
    }

    .batch-name,
    .batch-meta-item,
    .batch-mentor {
        font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    }
}

@media (max-width: 1120px) {
    .login-layout,
    .dashboard-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .sidebar {
        padding: 0;
    }

    .sidebar-brand {
        min-height: auto;
        margin-bottom: 8px;
    }

    .brand-logo {
        width: 168px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .dashboard-panel {
        padding: 24px;
    }
}

@media (max-width: 860px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header > :first-child {
        width: 100%;
    }

    .dashboard-title,
    .dashboard-title-row,
    .header-title-group {
        display: flex;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .profile-pill {
        font-size: 15px;
    }

    .batch-row {
        grid-template-columns: 48px repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
        padding: 16px 20px;
    }

    .batch-name {
        grid-column: 2 / 4;
    }

    .batch-meta-item:nth-of-type(3) {
        grid-column: 2 / 3;
    }

    .batch-meta-item:nth-of-type(4) {
        grid-column: 3 / 4;
    }

    .batch-mentor {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    :root {
        --mobile-footer-height: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .login-layout,
    .dashboard-shell {
        gap: 18px;
        padding: 14px;
    }

    .login-track-batch {
        top: 16px;
        left: 14px;
        right: 14px;
        min-height: 50px;
        padding: 0 20px;
        justify-content: center;
        font-size: 0.98rem;
    }

    .login-card,
    .dashboard-panel {
        border-radius: 24px;
    }

    .login-card {
        padding: 34px 20px 24px;
    }

    .logo {
        width: min(100%, 250px);
        margin-bottom: 28px;
    }

    .login-input {
        min-height: 52px;
        padding: 0 20px;
        font-size: 0.92rem;
    }

    .login-button {
        min-height: 52px;
        min-width: 150px;
        font-size: 0.92rem;
    }

    .app-page {
        overflow-x: hidden;
    }

    .dashboard-shell {
        padding-bottom: calc(var(--mobile-footer-height) + 18px);
    }

    .sidebar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 40;
        width: 100vw;
        max-width: 100vw;
        min-height: var(--mobile-footer-height);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #f7f5ff;
        border: 0;
        border-top: 3px solid #df5d57;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -16px 30px rgba(6, 27, 52, 0.18);
        overflow: visible;
    }

    .sidebar::before {
        content: none;
    }

    .sidebar-brand,
    .sidebar-title,
    .sidebar-logout {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 48px;
        align-items: stretch;
        gap: 7px;
        margin-top: 0;
        padding: 0 2px;
        min-height: 54px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        justify-content: center;
        font-size: 14px;
        border-radius: 12px;
        background: var(--navy);
        box-shadow: 0 8px 18px rgba(10, 45, 102, 0.18);
    }

    .nav-item:hover,
    .nav-item:focus-visible {
        background: #17478d;
        transform: translateY(-1px);
    }

    .nav-item.is-active {
        background: #17478d;
        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.16),
            0 8px 18px rgba(10, 45, 102, 0.18);
    }

    .icon-pill,
    .profile-pill {
        height: 48px;
    }

    .icon-pill {
        width: 48px;
    }

    .profile-pill {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 0 18px;
    }

    .nav-label {
        display: none;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
        margin: 0;
        font-size: 22px;
        border-radius: 0;
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

    .batch-row {
        grid-template-columns: 1fr;
        padding: 14px 16px;
        min-height: auto;
    }

    .batch-status,
    .batch-name,
    .batch-meta-item,
    .batch-mentor {
        grid-column: auto;
        justify-self: start;
    }

    .batch-name,
    .batch-meta-item,
    .batch-mentor {
        font-size: 1.05rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-card {
        min-height: 168px;
    }

    .summary-value {
        font-size: 2.7rem;
    }

    .summary-label {
        font-size: 0.95rem;
    }
}

.dashboard-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.title-circle-button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(10, 45, 102, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
    position: relative;
}

.title-circle-button:hover,
.title-circle-button:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 28px rgba(10, 45, 102, 0.24);
    background: var(--navy-soft);
    outline: none;
}

.title-circle-button.is-active {
    background: var(--navy-soft);
    box-shadow: 0 18px 34px rgba(10, 45, 102, 0.26);
}

.title-circle-button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: var(--navy-soft);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px;
}

.student-note {
    color: #5d6d89;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

.student-panel,
.student-card,
.student-list-panel {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 60, 125, 0.06);
}

.student-panel {
    padding: 24px;
    display: grid;
    gap: 18px;
    animation: panelReveal 0.26s ease-out;
}

.student-panel-head,
.student-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-panel-head h2,
.student-list-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 500;
}

.student-panel-note,
.student-list-note {
    color: #607090;
    font-size: 0.88rem;
    font-weight: 300;
}

.student-form {
    display: grid;
    gap: 14px;
}

.student-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.student-field {
    display: grid;
    gap: 6px;
}

.student-field label {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--navy);
}

.student-field-note {
    font-size: 0.8rem;
    color: #607090;
    min-height: 18px;
}

.student-input,
.student-select {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(15, 60, 125, 0.2);
    padding: 0 16px;
    background: #fff;
    color: #242127;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 300;
    outline: none;
}

.student-select {
    -webkit-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--navy) 50%),
        linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.student-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.student-save,
.student-cancel {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: inherit;
    font-size: 0.94rem;
    cursor: pointer;
}

.student-save {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 45, 102, 0.18);
}

.student-cancel {
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
}

.student-analytics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.student-card {
    padding: 26px 28px 22px;
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 258px;
}

.student-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 64px;
}

.student-status-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.student-status-dot::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
}

.student-status-dot.is-live {
    background: rgba(68, 192, 122, 0.58);
    animation: livePulse 1.9s ease-in-out infinite;
}

.student-status-dot.is-live::after {
    background: var(--green);
}

.student-status-dot.is-upcoming {
    background: rgba(27, 87, 171, 0.22);
    animation: upcomingPulse 2.1s ease-in-out infinite;
}

.student-status-dot.is-upcoming::after {
    background: var(--navy-soft);
}

.student-status-dot.is-completed {
    background: rgba(195, 46, 46, 0.22);
}

.student-status-dot.is-completed::after {
    background: #c32e2e;
}

.student-card-title {
    color: #242127;
    font-size: 1.08rem;
    font-weight: 500;
}

.student-track-chip {
    position: absolute;
    top: 26px;
    right: 28px;
    min-width: 44px;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 400;
}

.student-track-chip.is-gd {
    background: var(--navy);
}

.student-track-chip.is-dm {
    background: #d43b35;
}

.student-track-chip.is-gdm {
    background: var(--green);
}

.student-card-meta {
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.45;
}

.student-card-bottom {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.student-count {
    color: #242127;
    font-size: clamp(3.6rem, 7vw, 5rem);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.06em;
}

.student-card-location {
    color: var(--navy);
    font-size: 0.96rem;
    font-weight: 300;
    text-align: right;
}

.student-list-panel {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.student-table-wrap {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.student-table th,
.student-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 60, 125, 0.1);
}

.student-table th {
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-table td {
    color: #242127;
    font-size: 0.94rem;
    font-weight: 300;
}

.student-course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 500;
}

.student-course-badge.is-gd {
    background: var(--navy);
}

.student-course-badge.is-dm {
    background: #d43b35;
}

.student-course-badge.is-gdm {
    background: var(--green);
}

.student-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.student-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.student-table-action:hover,
.student-table-action:focus-visible {
    background: var(--navy);
    color: #fff;
    outline: none;
}

.student-table-delete {
    background: rgba(212, 59, 53, 0.12);
    color: #b43631;
}

.student-table-delete:hover,
.student-table-delete:focus-visible {
    background: #d43b35;
    color: #fff;
}

.student-empty {
    min-height: 180px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #61708c;
    font-size: 0.95rem;
    padding: 20px;
    grid-column: 1 / -1;
}

.content-stack {
    display: grid;
    gap: 28px;
}

.entry-shell {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
    transform-origin: top center;
    transition:
        grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.entry-shell.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.entry-shell-inner {
    overflow: hidden;
}

.entry-panel {
    background: #fff;
    border-radius: 28px;
    padding: 26px 30px;
    display: grid;
    gap: 20px;
    box-shadow: 0 18px 42px rgba(10, 45, 102, 0.08);
}

.entry-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.entry-panel-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 500;
}

.entry-panel-note {
    margin: 8px 0 0;
    color: #66758f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.entry-close {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.entry-close:hover,
.entry-close:focus-visible {
    background: var(--navy);
    color: #fff;
    outline: none;
}

.entry-form {
    display: grid;
    gap: 16px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.entry-field {
    display: grid;
    gap: 6px;
}

.entry-field label {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--navy);
}

.entry-input,
.entry-select {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(15, 60, 125, 0.18);
    padding: 0 16px;
    background: #fff;
    color: #242127;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.entry-select {
    -webkit-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--navy) 50%),
        linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.entry-input:focus,
.entry-select:focus {
    border-color: rgba(15, 60, 125, 0.34);
    box-shadow: 0 0 0 4px rgba(27, 87, 171, 0.1);
    transform: translateY(-1px);
}

.entry-input[readonly] {
    background: rgba(15, 60, 125, 0.04);
    color: var(--navy);
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-save,
.entry-cancel {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: inherit;
    font-size: 0.94rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.entry-save {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 45, 102, 0.18);
}

.entry-save:hover,
.entry-save:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(10, 45, 102, 0.24);
    outline: none;
}

.entry-cancel {
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
}

.fee-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.fee-summary-card,
.transactions-panel {
    background: #fff;
    border-radius: 28px;
}

.fee-summary-card {
    padding: 30px 30px 24px;
    display: grid;
    gap: 10px;
    min-height: 208px;
}

.fee-summary-value {
    color: #242127;
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.05em;
}

.fee-summary-label {
    color: #242127;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    line-height: 1.08;
    font-weight: 300;
}

.fee-summary-note {
    margin: 0;
    color: #66758f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.transactions-panel {
    padding: 28px 30px 34px;
    display: grid;
    gap: 22px;
    min-height: 520px;
}

.transactions-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.transactions-title {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 500;
}

.transactions-note {
    margin: 8px 0 0;
    color: #66758f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.transactions-tools {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.transactions-range-trigger {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.transactions-range-trigger:hover,
.transactions-range-trigger:focus-visible {
    background: var(--navy);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.transactions-range-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 48px));
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 40px rgba(10, 45, 102, 0.18);
    border: 1px solid rgba(15, 60, 125, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.transactions-range-popover.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.transactions-range-form {
    display: grid;
    gap: 14px;
}

.transactions-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.transactions-range-field {
    display: grid;
    gap: 6px;
}

.transactions-range-field label {
    color: var(--navy);
    font-size: 0.84rem;
}

.transactions-range-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.transactions-range-apply,
.transactions-range-download,
.transactions-range-reset {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.transactions-range-apply {
    background: rgba(15, 60, 125, 0.08);
    color: var(--navy);
}

.transactions-range-download {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 45, 102, 0.16);
}

.transactions-range-reset {
    background: rgba(15, 60, 125, 0.04);
    color: #607090;
}

.transactions-range-apply:hover,
.transactions-range-apply:focus-visible,
.transactions-range-download:hover,
.transactions-range-download:focus-visible,
.transactions-range-reset:hover,
.transactions-range-reset:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.transactions-table-wrap {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.transactions-table thead th {
    padding: 14px 12px;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(15, 60, 125, 0.4);
    text-align: left;
}

.transactions-table tbody td {
    padding: 22px 12px;
    color: #242127;
    font-size: 1rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(15, 60, 125, 0.22);
    vertical-align: middle;
}

.transactions-name {
    display: grid;
    gap: 4px;
}

.transactions-name strong {
    font-size: 1.04rem;
    font-weight: 400;
    color: #242127;
}

.transactions-sub {
    color: #66758f;
    font-size: 0.84rem;
}

.table-chip,
.table-edit {
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.table-chip {
    background: var(--navy);
    color: #fff;
}

.table-chip.is-muted {
    background: rgba(15, 60, 125, 0.12);
    color: var(--navy);
}

.table-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-edit {
    background: rgba(62, 138, 255, 0.18);
    color: var(--navy);
}

.table-edit.is-muted {
    background: rgba(15, 60, 125, 0.08);
    color: #607090;
}

.table-delete {
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(212, 59, 53, 0.12);
    color: #b43631;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1;
    cursor: pointer;
}

.table-delete:hover,
.table-delete:focus-visible {
    background: #d43b35;
    color: #fff;
    outline: none;
}

.transactions-empty {
    min-height: 280px;
    border-radius: 24px;
    background: rgba(15, 60, 125, 0.04);
    display: grid;
    place-items: center;
    text-align: center;
    color: #66758f;
    padding: 20px;
}

[hidden] {
    display: none !important;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
    }

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

@keyframes livePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(68, 192, 122, 0.28);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(68, 192, 122, 0);
    }
}

@keyframes upcomingPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 87, 171, 0.22);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 7px rgba(27, 87, 171, 0);
    }
}

@media (max-width: 1180px) {
    .entry-grid,
    .fee-highlights {
        grid-template-columns: 1fr;
    }

    .transactions-panel {
        min-height: 0;
    }
}

@media (max-width: 920px) {
    .student-analytics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .student-panel-head,
    .entry-panel-head,
    .transactions-head {
        flex-direction: column;
        align-items: stretch;
    }

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

    .transactions-range-grid {
        grid-template-columns: 1fr;
    }

    .transactions-range-popover {
        display: none;
        position: static;
        width: 100%;
        margin-top: 12px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .transactions-range-popover.is-open {
        display: block;
    }

    .transactions-tools {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .entry-panel,
    .fee-summary-card,
    .transactions-panel {
        border-radius: 22px;
        padding: 22px 20px;
    }

    .entry-close,
    .entry-save,
    .entry-cancel {
        width: 100%;
    }

    .fee-summary-value {
        font-size: clamp(2.4rem, 12vw, 3.2rem);
    }

    .fee-summary-label {
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .student-panel,
    .student-card,
    .student-list-panel,
    .student-empty {
        border-radius: 20px;
    }

    .student-card {
        padding: 20px 18px 18px;
        min-height: 234px;
    }

    .student-track-chip {
        top: 20px;
        right: 18px;
    }

    .student-card-head {
        padding-right: 56px;
    }

    .student-card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-card-location {
        text-align: left;
    }

    .student-form-actions {
        justify-content: stretch;
    }

    .student-save,
    .student-cancel {
        width: 100%;
    }

    .student-table {
        min-width: 540px;
    }
}

@media (max-width: 860px) {
    :root {
        --mobile-footer-height: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .app-page {
        min-height: 100svh;
        overflow-x: hidden !important;
    }

    .app-page .dashboard-header {
        position: relative !important;
    }

    .app-page .dashboard-header > :first-child,
    .app-page .dashboard-title,
    .app-page .dashboard-title-row,
    .app-page .header-title-group {
        padding-right: 62px !important;
    }

    .app-page .header-actions {
        width: 100% !important;
    }

    .app-page .profile-pill {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        z-index: 2 !important;
    }

    .app-page .profile-pill > span:last-child {
        display: none !important;
    }

    .app-page .profile-pill .material-symbols-rounded {
        margin: 0 !important;
    }

    .app-page .dashboard-shell {
        padding-bottom: calc(var(--mobile-footer-height) + 18px) !important;
    }

    .app-page .sidebar {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 40 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: var(--mobile-footer-height) !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        background: #f7f5ff !important;
        border: 0 !important;
        border-top: 3px solid #df5d57 !important;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -16px 30px rgba(6, 27, 52, 0.18) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .app-page .sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .app-page .sidebar::before {
        content: none !important;
    }

    .app-page .sidebar-brand,
    .app-page .sidebar-title {
        display: none !important;
    }

    .app-page .sidebar-nav {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: stretch !important;
        gap: 7px !important;
        margin-top: 0 !important;
        padding: 0 2px !important;
        min-height: 54px !important;
        min-width: max-content !important;
        overflow: visible !important;
    }

    .app-page .nav-item {
        flex: 0 0 48px !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 12px !important;
        background: var(--navy) !important;
        box-shadow: 0 8px 18px rgba(10, 45, 102, 0.18) !important;
        color: #fff !important;
    }

    .app-page .nav-item:hover,
    .app-page .nav-item:focus-visible {
        background: #17478d !important;
        transform: translateY(-1px) !important;
    }

    .app-page .nav-item.is-active {
        background: #17478d !important;
        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.16),
            0 8px 18px rgba(10, 45, 102, 0.18) !important;
    }

    .app-page .nav-label {
        display: none !important;
    }

    .app-page .nav-icon {
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        font-size: 22px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .app-page .sidebar-logout {
        display: flex !important;
        flex: 0 0 48px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-page .logout-button {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #d43b35 !important;
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(212, 59, 53, 0.24) !important;
        gap: 0 !important;
    }

    .app-page .logout-button:hover,
    .app-page .logout-button:focus-visible {
        background: #b9312c !important;
        transform: translateY(-1px) !important;
        outline: none !important;
    }

    .app-page .logout-button .material-symbols-rounded {
        font-size: 22px !important;
        margin: 0 !important;
    }

    .app-page .logout-button span:last-child {
        display: none !important;
    }
}
