:root {
    --schola-bg: #08111d;
    --schola-bg-soft: #0d1827;
    --schola-panel: rgba(9, 18, 31, 0.78);
    --schola-panel-strong: rgba(12, 24, 38, 0.92);
    --schola-line: rgba(148, 190, 255, 0.12);
    --schola-line-strong: rgba(148, 190, 255, 0.22);
    --schola-text: #edf4ff;
    --schola-muted: #8ea5bf;
    --schola-accent: #6cb6ff;
    --schola-accent-strong: #2f85ff;
    --schola-success: #8ee0c8;
    --schola-gold: #c6a76b;
}

body {
    background:
        radial-gradient(circle at top left, rgba(47, 133, 255, 0.16), transparent 26%),
        radial-gradient(circle at 80% 18%, rgba(108, 182, 255, 0.12), transparent 20%),
        linear-gradient(180deg, #07111c 0%, #0a1523 45%, #0d1b2c 100%);
    color: var(--schola-text);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    background-image:
        linear-gradient(rgba(148, 190, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 190, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.page-grid {
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.page-glow {
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.glow-one {
    background: rgba(47, 133, 255, 0.18);
    height: 18rem;
    right: -4rem;
    top: 4rem;
    width: 18rem;
}

.glow-two {
    background: rgba(198, 167, 107, 0.12);
    bottom: 2rem;
    height: 14rem;
    left: -2rem;
    width: 14rem;
}

.page-shell {
    position: relative;
    z-index: 1;
}

.app-frame {
    display: grid;
    grid-template-columns: 18.5rem minmax(0, 1fr);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar-shell {
    background: linear-gradient(180deg, rgba(5, 11, 19, 0.96), rgba(10, 20, 33, 0.94));
    border-right: 1px solid var(--schola-line);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.2rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    padding: 0.4rem 0.25rem 0.1rem;
    text-decoration: none;
}

.brand-surface {
    align-items: center;
    background: linear-gradient(180deg, rgba(246, 249, 253, 0.99), rgba(230, 237, 246, 0.95));
    border: 1px solid rgba(188, 208, 230, 0.68);
    border-radius: 24px;
    box-shadow:
        0 18px 36px rgba(2, 8, 17, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    display: inline-flex;
    justify-content: center;
    padding: 1rem 1.2rem;
    position: relative;
    width: 100%;
}

.brand-surface::after {
    background: radial-gradient(circle, rgba(108, 182, 255, 0.24), rgba(108, 182, 255, 0));
    content: "";
    height: 70%;
    left: 12%;
    pointer-events: none;
    position: absolute;
    top: 15%;
    width: 76%;
}

.brand-surface-inline {
    border-radius: 18px;
    padding: 0.65rem 1rem;
    width: auto;
}

.brand-caption {
    color: #7e96af;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sidebar-logo,
.navbar-logo {
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    height: auto;
    max-width: 100%;
    position: relative;
    width: auto;
    z-index: 1;
}

.sidebar-logo {
    max-height: 3.2rem;
    object-fit: contain;
}

.navbar-logo {
    max-height: 2.6rem;
    object-fit: contain;
    width: auto;
}

.sidebar-user,
.content-header,
.hero-panel,
.login-intro,
.login-card,
.migration-strip,
.module-card,
.welcome-banner {
    background: linear-gradient(180deg, rgba(11, 22, 35, 0.88), rgba(9, 18, 31, 0.72));
    border: 1px solid var(--schola-line);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(3, 9, 18, 0.36);
}

.sidebar-user {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.sidebar-user span:last-child {
    color: var(--schola-muted);
}

.sidebar-nav {
    display: grid;
    gap: 0.4rem;
}

.sidebar-link,
.sidebar-sublink {
    color: #d8e8fb;
    display: block;
    text-decoration: none;
}

.sidebar-link {
    background: rgba(9, 18, 31, 0.68);
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    padding: 0.85rem 0.95rem;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-sublink:hover,
.sidebar-sublink:focus {
    background: rgba(18, 37, 59, 0.92);
    border-color: rgba(108, 182, 255, 0.18);
    color: #fff;
}

.sidebar-menu-list,
.sidebar-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-item {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.sidebar-link.has-children {
    color: var(--schola-gold);
}

.sidebar-submenu-list {
    display: grid;
    gap: 0.35rem;
    padding-left: 0.65rem;
}

.sidebar-sublink {
    border-left: 1px solid var(--schola-line);
    color: var(--schola-muted);
    font-size: 0.93rem;
    padding: 0.2rem 0 0.2rem 0.9rem;
}

.sidebar-footer {
    margin-top: auto;
}

.content-shell {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.25rem;
}

.content-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.content-title {
    font-size: 1.65rem;
    margin: 0.35rem 0 0;
}

.content-breadcrumb { margin-top: 0.7rem; }

.breadcrumb-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    align-items: center;
    color: var(--schola-muted);
    display: inline-flex;
    font-size: 0.92rem;
    gap: 0.55rem;
}

.breadcrumb-item:not(:last-child)::after {
    color: rgba(95, 121, 148, 0.72);
    content: "/";
}

.breadcrumb-item a {
    color: var(--schola-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus { color: var(--schola-text); }

.breadcrumb-item.is-current span {
    color: var(--schola-text);
    font-weight: 700;
}

.nav-shell {
    backdrop-filter: blur(18px);
    background: rgba(6, 14, 24, 0.62);
    border-bottom: 1px solid var(--schola-line);
}

.navbar-toggler {
    border-color: var(--schola-line-strong);
}

.navbar-brand {
    align-items: center;
    color: var(--schola-text);
    display: inline-flex;
    padding: 0;
    text-decoration: none;
}

.nav-link {
    color: #b4c7db;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus,
.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff;
}

.nav-link.disabled {
    color: #6d8299;
}

.eyebrow {
    color: var(--schola-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-shell,
.login-shell {
    padding-top: 2rem;
}

.content-header,
.hero-panel,
.login-intro,
.login-card,
.migration-strip,
.module-card,
.welcome-banner {
    padding: 1.75rem;
}

.welcome-banner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.welcome-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
}

.panel-heading {
    border-bottom: 1px solid var(--schola-line);
    margin-bottom: 0.35rem;
    padding-bottom: 1rem;
}

.text-secondary,
.form-label,
.alert,
.table,
.module-item,
.study-tile span,
.panel-heading p,
.migration-strip p,
.user-chip span {
    color: var(--schola-muted) !important;
}

.lead {
    color: #c8d8ea;
}

.stat-card {
    background: linear-gradient(180deg, rgba(16, 31, 48, 0.96), rgba(9, 21, 34, 0.92));
    border: 1px solid var(--schola-line);
    border-radius: 22px;
    color: var(--schola-text);
    overflow: hidden;
    padding: 1.35rem;
    position: relative;
}

.metric-card {
    min-height: 10rem;
}

.stat-card::after {
    background: linear-gradient(180deg, rgba(198, 167, 107, 0.22), rgba(108, 182, 255, 0));
    content: "";
    height: 70%;
    position: absolute;
    right: -1rem;
    top: -1rem;
    transform: rotate(20deg);
    width: 4rem;
}

.stat-card small {
    display: block;
    opacity: 0.82;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-top: 0.35rem;
}

.user-chip {
    background: rgba(8, 17, 29, 0.56);
    border: 1px solid var(--schola-line);
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
}

.study-grid {
    display: grid;
    gap: 1rem;
}

.study-tile {
    background: rgba(8, 17, 29, 0.54);
    border: 1px solid var(--schola-line);
    border-radius: 18px;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
}

.study-tile small {
    color: var(--schola-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.study-tile strong {
    color: var(--schola-text);
    font-size: 1rem;
}

.module-item {
    border-top: 1px solid var(--schola-line);
    padding: 0.8rem 0;
}

.module-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.login-card {
    overflow: hidden;
    position: relative;
}

.login-card::after {
    background: linear-gradient(135deg, rgba(47, 133, 255, 0.18), rgba(108, 182, 255, 0.08));
    border-radius: 50%;
    content: "";
    height: 240px;
    inset: auto -18% -35% auto;
    position: absolute;
    width: 240px;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.form-control,
.nav-pills .nav-link,
.btn,
.alert,
.module-card,
.migration-strip,
.user-chip,
.study-tile,
.btn-soft {
    border-radius: 16px;
}

.form-control {
    background: rgba(5, 12, 20, 0.78);
    border: 1px solid var(--schola-line-strong);
    color: var(--schola-text);
    padding: 0.9rem 1rem;
}

.form-control::placeholder {
    color: #688099;
}

.form-control:focus {
    background: rgba(6, 14, 24, 0.92);
    border-color: rgba(108, 182, 255, 0.52);
    box-shadow: 0 0 0 0.25rem rgba(47, 133, 255, 0.14);
    color: var(--schola-text);
}

.nav-pills {
    background: rgba(4, 11, 19, 0.58);
    border: 1px solid var(--schola-line);
    border-radius: 20px;
    padding: 0.35rem;
}

.nav-pills .nav-link {
    color: #8ea5bf;
    font-weight: 700;
}

.nav-pills .nav-link.active {
    background: linear-gradient(180deg, rgba(32, 67, 109, 0.92), rgba(19, 45, 77, 0.96));
    box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.14), 0 12px 28px rgba(3, 9, 18, 0.32);
    color: #f5f9ff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--schola-accent-strong), #5caeff);
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(5, 12, 20, 0.28);
    color: #03101c;
    font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #2375ea, #4da7ff);
    border-color: transparent;
    color: #03101c;
}

.btn-outline-dark,
.btn-soft {
    background: rgba(8, 17, 29, 0.56);
    border-color: var(--schola-line-strong);
    color: var(--schola-text);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-soft:hover,
.btn-soft:focus {
    background: rgba(17, 33, 52, 0.9);
    border-color: rgba(108, 182, 255, 0.28);
    color: #fff;
}

.surface-alert {
    background: rgba(8, 17, 29, 0.62);
    border: 1px solid var(--schola-line);
    color: var(--schola-muted);
}

.section-heading {
    max-width: 42rem;
}

.module-data-card {
    background: linear-gradient(180deg, rgba(9, 18, 31, 0.94), rgba(9, 18, 31, 0.82));
}

.table-surface {
    --bs-table-bg: transparent;
    --bs-table-color: var(--schola-text);
    --bs-table-border-color: var(--schola-line);
    --bs-table-striped-bg: rgba(108, 182, 255, 0.03);
    --bs-table-hover-bg: rgba(108, 182, 255, 0.05);
    margin-bottom: 0;
}

.table-surface thead th {
    border-bottom-width: 1px;
    color: #a9c4e1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table-surface tbody td {
    border-color: var(--schola-line);
}

strong {
    color: #f7fbff;
}

.alert-danger {
    background: rgba(86, 24, 34, 0.58);
    border: 1px solid rgba(255, 138, 161, 0.18);
    color: #ffd8e1;
}

.alert-warning {
    background: rgba(64, 46, 17, 0.56);
    border: 1px solid rgba(255, 208, 118, 0.18);
    color: #ffe5ad;
}

@media (max-width: 991px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .sidebar-shell {
        height: auto;
        position: relative;
    }

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

@media (max-width: 767px) {
    .hero-shell,
    .login-shell {
        padding-top: 1rem;
    }

    .content-header,
    .welcome-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-card strong {
        font-size: 1.5rem;
    }

    .glow-one,
    .glow-two {
        opacity: 0.7;
    }
}




.sidebar-accordion {
    display: grid;
    gap: 0.4rem;
}

.sidebar-accordion > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.sidebar-accordion > summary::-webkit-details-marker {
    display: none;
}

.sidebar-accordion-body {
    display: grid;
    gap: 0.35rem;
}

.sidebar-chevron {
    border-bottom: 2px solid rgba(216, 232, 251, 0.92);
    border-right: 2px solid rgba(216, 232, 251, 0.92);
    display: inline-block;
    height: 0.55rem;
    margin-left: 0.75rem;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    width: 0.55rem;
}

.sidebar-accordion[open] > summary .sidebar-chevron {
    transform: rotate(225deg);
}

.sidebar-link,
.sidebar-sublink {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.sidebar-link.is-current,
.sidebar-sublink.is-current,
.sidebar-accordion[open] > summary {
    background: rgba(18, 37, 59, 0.92);
    border-color: rgba(108, 182, 255, 0.2);
    color: #fff;
}

.surface-collapse {
    background: linear-gradient(180deg, rgba(11, 22, 35, 0.88), rgba(9, 18, 31, 0.72));
    border: 1px solid var(--schola-line);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(3, 9, 18, 0.24);
    overflow: hidden;
}

.surface-collapse + .surface-collapse {
    margin-top: 1rem;
}

.surface-collapse > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1.1rem 1.35rem;
}

.surface-collapse > summary::-webkit-details-marker {
    display: none;
}

.surface-collapse > summary strong {
    display: block;
    font-size: 1rem;
}

.surface-collapse > summary span {
    color: var(--schola-muted);
    display: block;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.surface-collapse__body {
    border-top: 1px solid var(--schola-line);
    padding: 1.35rem;
}

.surface-collapse__chevron {
    border-bottom: 2px solid rgba(216, 232, 251, 0.92);
    border-right: 2px solid rgba(216, 232, 251, 0.92);
    display: inline-block;
    flex: 0 0 auto;
    height: 0.7rem;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    width: 0.7rem;
}

.surface-collapse[open] > summary .surface-collapse__chevron {
    transform: rotate(225deg);
}

:root {
    --schola-bg: #dcecff;
    --schola-bg-soft: #c8ddf7;
    --schola-panel: rgba(239, 247, 255, 0.82);
    --schola-panel-strong: rgba(229, 240, 252, 0.94);
    --schola-line: rgba(72, 133, 206, 0.16);
    --schola-line-strong: rgba(72, 133, 206, 0.3);
    --schola-text: #10263f;
    --schola-muted: #5f7994;
    --schola-accent: #54a6ff;
    --schola-accent-strong: #2388f2;
    --schola-success: #4ea792;
    --schola-gold: #b69156;
}

body {
    background:
        radial-gradient(circle at top left, rgba(77, 157, 255, 0.26), transparent 30%),
        radial-gradient(circle at 80% 18%, rgba(141, 204, 255, 0.28), transparent 24%),
        linear-gradient(180deg, #edf6ff 0%, #deebfa 46%, #d3e3f6 100%);
}

body::before {
    background-image:
        linear-gradient(rgba(83, 142, 213, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 142, 213, 0.045) 1px, transparent 1px);
}

.glow-one {
    background: rgba(84, 166, 255, 0.22);
}

.glow-two {
    background: rgba(139, 201, 255, 0.18);
}

.sidebar-shell {
    background: linear-gradient(180deg, rgba(220, 235, 252, 0.94), rgba(201, 221, 245, 0.94));
}

.brand-caption {
    color: #66809b;
}

.sidebar-user,
.content-header,
.hero-panel,
.login-intro,
.login-card,
.migration-strip,
.module-card,
.welcome-banner,
.surface-collapse {
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.94), rgba(230, 240, 252, 0.84));
    box-shadow: 0 14px 30px rgba(57, 114, 173, 0.12);
}

.sidebar-link,
.sidebar-sublink,
.nav-link,
strong {
    color: #113150;
}

.sidebar-link,
.btn-soft,
.btn-outline-dark,
.user-chip,
.study-tile {
    background: rgba(255, 255, 255, 0.52);
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-sublink:hover,
.sidebar-sublink:focus,
.btn-soft:hover,
.btn-soft:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.sidebar-link.is-current,
.sidebar-sublink.is-current,
.sidebar-accordion[open] > summary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(84, 166, 255, 0.28);
    color: #0f2a47;
}

.nav-shell {
    background: rgba(236, 245, 255, 0.78);
}

.lead {
    color: #466785;
}

.stat-card,
.module-data-card {
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(229, 239, 250, 0.92));
}

.stat-card::after,
.login-card::after {
    background: linear-gradient(180deg, rgba(84, 166, 255, 0.2), rgba(84, 166, 255, 0));
}

.form-control {
    background: rgba(255, 255, 255, 0.68);
}

.form-control::placeholder {
    color: #7791ab;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(84, 166, 255, 0.52);
    box-shadow: 0 0 0 0.25rem rgba(84, 166, 255, 0.14);
}

.nav-pills {
    background: rgba(232, 243, 255, 0.9);
}

.nav-pills .nav-link {
    color: #5a7592;
}

.nav-pills .nav-link.active {
    background: linear-gradient(180deg, rgba(95, 175, 255, 0.92), rgba(49, 138, 231, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 24px rgba(57, 114, 173, 0.18);
    color: #ffffff;
}

.surface-alert {
    background: rgba(243, 249, 255, 0.88);
}

.table-surface thead th {
    color: #6884a1;
}

.alert-danger {
    background: rgba(255, 235, 240, 0.9);
    border: 1px solid rgba(219, 117, 142, 0.24);
    color: #8a3046;
}

.alert-warning {
    background: rgba(255, 246, 224, 0.92);
    border: 1px solid rgba(214, 173, 79, 0.28);
    color: #7a5a17;
}

.profile-menu-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-menu-item {
    list-style: none;
}

.profile-menu-accordion,
.profile-menu-leaf {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid var(--schola-line);
    border-radius: 18px;
}

.profile-menu-accordion > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    padding: 0.95rem 1rem;
}

.profile-menu-accordion > summary::-webkit-details-marker {
    display: none;
}

.profile-menu-label {
    align-items: center;
    color: var(--schola-text);
    display: inline-flex;
    gap: 0.75rem;
    margin: 0;
}

.profile-menu-label input[type="checkbox"] {
    accent-color: var(--schola-accent-strong);
    height: 1rem;
    width: 1rem;
}

.profile-menu-leaf {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
}

.profile-menu-leaf small {
    color: var(--schola-muted);
    display: block;
    margin-left: 1.75rem;
}

.profile-menu-children {
    border-top: 1px solid var(--schola-line);
    margin-left: 1rem;
    padding: 0.85rem 0 0.35rem 0.85rem;
}

.group-grid {
    display: grid;
    gap: 0.85rem;
}

.group-card {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid var(--schola-line);
    border-radius: 18px;
    color: var(--schola-text);
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.group-card strong {
    color: var(--schola-text);
    font-size: 1rem;
}

.group-card span,
.group-card small {
    color: var(--schola-muted);
}

.group-card:hover,
.group-card:focus {
    border-color: rgba(84, 166, 255, 0.34);
    box-shadow: 0 10px 24px rgba(57, 114, 173, 0.12);
    color: var(--schola-text);
    transform: translateY(-1px);
}

.group-card.is-current {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(84, 166, 255, 0.4);
    box-shadow: 0 12px 26px rgba(57, 114, 173, 0.14);
}

.academic-menu {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid var(--schola-line);
    border-radius: 24px;
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    position: sticky;
    top: 1.5rem;
}

.academic-menu__header {
    border-bottom: 1px solid var(--schola-line);
    padding-bottom: 0.9rem;
}

.academic-menu__list {
    display: grid;
    gap: 0.55rem;
}

.academic-menu__item {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(111, 154, 198, 0.16);
    border-radius: 18px;
    color: var(--schola-text);
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.academic-menu__item:hover:not(:disabled),
.academic-menu__item:focus-visible:not(:disabled) {
    border-color: rgba(84, 166, 255, 0.34);
    box-shadow: 0 10px 24px rgba(57, 114, 173, 0.1);
    transform: translateY(-1px);
}

.academic-menu__item.is-active {
    background: linear-gradient(180deg, rgba(95, 175, 255, 0.92), rgba(49, 138, 231, 0.96));
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 26px rgba(57, 114, 173, 0.18);
    color: #ffffff;
}

.academic-menu__item small {
    color: inherit;
    opacity: 0.68;
}

.academic-menu__item:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}


.module-card,
.migration-strip,
.surface-card {
    width: min(94%, 1480px);
    margin-left: auto;
    margin-right: auto;
}

.table-surface {
    font-size: 0.92rem;
}

.table-surface thead th {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    padding: 0.72rem 0.7rem;
}

.table-surface tbody td {
    padding: 0.7rem 0.7rem;
    vertical-align: middle;
}

.table-surface .btn-sm {
    padding: 0.34rem 0.65rem;
    font-size: 0.77rem;
}

@media (max-width: 991.98px) {
    .module-card,
    .migration-strip,
    .surface-card {
        width: 100%;
    }
}


.form-control-time {
    min-width: 6.5rem;
    padding: 0.7rem 0.75rem;
}

.form-control-time::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: none;
    opacity: 0.85;
}



.subject-chart-grid {
    display: grid;
    gap: 1rem;
}

.subject-chart-card {
    min-height: 18rem;
}

.subject-chart-meta {
    color: var(--schola-muted);
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

.subject-chart-bars {
    align-items: end;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    min-height: 11.5rem;
    padding-top: 0.75rem;
}

.subject-chart-column {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 5.5rem;
}

.subject-chart-track {
    align-items: end;
    background: rgba(84, 166, 255, 0.08);
    border: 1px solid var(--schola-line);
    border-radius: 18px 18px 12px 12px;
    display: flex;
    height: 8.75rem;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem;
    width: 100%;
}

.subject-chart-fill {
    border-radius: 14px 14px 8px 8px;
    min-height: 0.5rem;
    transition: height 180ms ease;
    width: 100%;
}

.subject-chart-fill-approved {
    background: linear-gradient(180deg, rgba(96, 205, 173, 0.95), rgba(50, 155, 123, 0.95));
}

.subject-chart-fill-failed {
    background: linear-gradient(180deg, rgba(255, 151, 151, 0.95), rgba(215, 84, 84, 0.95));
}

.subject-chart-value {
    color: var(--schola-text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}


/* 2026-03-25 visual refresh */
:root {
    --schola-bg: #f1f5f9;
    --schola-bg-soft: #e2ecf8;
    --schola-panel: rgba(255, 255, 255, 0.72);
    --schola-panel-strong: rgba(255, 255, 255, 0.86);
    --schola-line: rgba(37, 99, 235, 0.12);
    --schola-line-strong: rgba(37, 99, 235, 0.22);
    --schola-text: #16304d;
    --schola-muted: #5f7994;
    --schola-accent: #38bdf8;
    --schola-accent-strong: #2563eb;
    --schola-accent-dark: #1e3a8a;
    --schola-success: #2e9f83;
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.18), transparent 22%),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.14), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 48%, #e7eff8 100%);
    color: var(--schola-text);
    font-family: "Inter", "Roboto", sans-serif;
}

body::before,
.page-grid {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.content-title,
.welcome-title,
.login-hero-title {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--schola-accent-dark);
}

.sidebar-shell {
    background: linear-gradient(180deg, rgba(232, 241, 251, 0.94), rgba(215, 229, 246, 0.94));
    border-right: 1px solid rgba(37, 99, 235, 0.1);
}

.nav-shell {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.sidebar-user,
.content-header,
.hero-panel,
.login-intro,
.login-card,
.migration-strip,
.module-card,
.welcome-banner,
.surface-collapse,
.academic-menu,
.group-card,
.profile-menu-accordion,
.profile-menu-leaf,
.surface-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 18px 42px rgba(30, 58, 138, 0.1);
}

.sidebar-link,
.sidebar-sublink,
.btn-soft,
.btn-outline-dark,
.user-chip,
.study-tile,
.academic-menu__item,
.group-card {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(37, 99, 235, 0.1);
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-sublink:hover,
.sidebar-sublink:focus,
.btn-soft:hover,
.btn-soft:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.sidebar-link.is-current,
.sidebar-sublink.is-current,
.sidebar-accordion[open] > summary,
.academic-menu__item.is-active,
.group-card.is-current {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(56, 189, 248, 0.76));
    border-color: transparent;
    color: #ffffff;
}

.academic-menu__item.is-active small,
.group-card.is-current span,
.group-card.is-current small,
.sidebar-link.is-current,
.sidebar-sublink.is-current {
    color: #ffffff;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 1rem;
    color: var(--schola-text);
}

.form-control::placeholder {
    color: #86a0b8;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
    color: var(--schola-text);
}

.nav-pills {
    background: rgba(235, 243, 252, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.nav-pills .nav-link {
    color: #5d7894;
}

.nav-pills .nav-link.active,
.btn-primary {
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;`r`n    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(90deg, #1E3A8A, #2563EB);
    color: #ffffff;
}

.eyebrow {
    color: var(--schola-accent-dark);
}

.lead,
.text-secondary,
.form-label,
.panel-heading p,
.migration-strip p,
.user-chip span,
.module-item,
.study-tile span {
    color: var(--schola-muted) !important;
}

.table-surface thead th {
    color: #6884a1;
}



