:root {
    --primary: #1d4ed8;
    --primary-dark: #172554;
    --primary-soft: #dbeafe;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --page: #f6f8fc;
    --success-soft: #dcfce7;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    background: #eef2f7;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.login-panel {
    width: min(100%, 1040px);
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.96)),
        #172554;
    color: #fff;
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: auto 42px 132px 42px;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.login-card {
    width: 100%;
    background: var(--surface);
    padding: 44px 42px;
    align-self: center;
}

.login-brand,
.mobile-login-brand,
.sidebar-brand,
.topbar-user,
.stat-card,
.menu-card {
    display: flex;
    align-items: center;
}

.login-brand {
    gap: 14px;
}

.mobile-login-brand {
    display: none;
    gap: 14px;
    margin-bottom: 30px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 1.35rem;
}

.brand-mark-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.brand-kicker,
.topbar-kicker {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-kicker-light {
    color: #bfdbfe;
}

.login-brand h1,
.mobile-login-brand h1 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}

.login-brand h1 {
    color: #fff;
}

.mobile-login-brand h1 {
    color: var(--primary-dark);
}

.showcase-copy {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.login-label {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.showcase-label {
    margin: 0 0 12px;
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.showcase-copy h2 {
    max-width: 480px;
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.22;
    font-weight: 800;
}

.showcase-copy p {
    max-width: 500px;
    margin: 0;
    color: #dbeafe;
    font-size: 0.98rem;
    line-height: 1.7;
}

.major-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.major-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
}

.major-list i {
    color: #bfdbfe;
    font-size: 1.2rem;
}

.login-heading {
    margin-bottom: 24px;
}

.login-label {
    letter-spacing: 0;
}

.login-heading h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.login-heading p,
.section-heading p,
.dashboard-hero p,
.menu-card span {
    color: var(--muted);
}

.form-label {
    font-weight: 700;
    color: #374151;
}

.input-group-text {
    min-width: 48px;
    justify-content: center;
    background: #f8fafc;
    border-color: var(--line);
    color: var(--primary);
}

.form-control {
    border-color: var(--line);
    min-height: 50px;
    font-weight: 500;
    background: #fff;
}

.login-input-group .input-group-text {
    border-right: 0;
}

.login-input-group .form-control {
    border-left: 0;
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control {
    border-color: var(--primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.14);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    min-height: 46px;
    font-weight: 700;
}

.login-button {
    min-height: 52px;
    box-shadow: none;
}

.login-button:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.login-footer-note {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.login-footer-note i {
    color: #16a34a;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--primary-dark);
    color: #fff;
    padding: 24px 18px;
}

.sidebar-brand {
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand .brand-mark {
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand span {
    color: #bfdbfe;
    font-size: 0.85rem;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

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

.logout-item {
    color: #fecaca;
}

.logout-item:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.24);
}

.app-main {
    min-width: 0;
}

.topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.topbar-user {
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}

.user-meta strong,
.user-meta span {
    display: block;
}

.user-meta span {
    color: var(--muted);
    font-size: 0.78rem;
}

.content-area {
    padding: 28px;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.content-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.content-card-header h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.content-card-header p {
    margin: 0;
    color: var(--muted);
}

.form-card {
    max-width: 980px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
}

.mini-card {
    min-height: 118px;
}

.mini-card span,
.mini-card small {
    display: block;
}

.mini-card span {
    color: var(--muted);
    font-weight: 700;
}

.mini-card strong {
    display: block;
    margin: 4px 0;
    color: var(--primary-dark);
    font-size: 1.9rem;
    line-height: 1.1;
}

.section-title {
    margin: 0 0 14px;
    color: var(--primary-dark);
    font-size: 1.08rem;
    font-weight: 800;
}

.recommendation-highlight {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #172554, #1d4ed8);
    color: #fff;
}

.recommendation-highlight span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 800;
}

.recommendation-highlight h3 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
}

.recommendation-highlight p {
    margin: 0;
    color: #dbeafe;
}

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

.detail-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.detail-grid .detail-wide {
    grid-column: 1 / -1;
}

.detail-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.detail-grid strong {
    color: var(--ink);
}

.question-group {
    margin-top: 18px;
}

.question-group h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.08rem;
    font-weight: 800;
}

.question-item {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.question-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

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

.question-options .form-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.print-page {
    background: #e5e7eb;
    padding: 24px;
}

.print-sheet {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
}

.print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.print-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111827;
    text-align: center;
}

.print-header h1 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
}

.print-header p {
    margin: 0;
    color: var(--muted);
}

.print-section {
    margin-top: 18px;
}

.print-section h2 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
}

@media print {
    .print-page {
        padding: 0;
        background: #fff;
    }

    .print-sheet {
        max-width: none;
        padding: 0;
        border-radius: 0;
    }

    .print-actions {
        display: none;
    }
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #172554, #1d4ed8);
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    max-width: 720px;
    color: #dbeafe;
}

.hero-method {
    min-width: 130px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

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

.hero-method strong {
    font-size: 1.75rem;
}

.stats-grid,
.menu-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 22px 0;
}

.stat-card,
.menu-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-card {
    gap: 14px;
    min-height: 104px;
    padding: 20px;
}

.stat-icon,
.menu-icon {
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.15;
}

.menu-section {
    margin-top: 8px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

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

.menu-card {
    position: relative;
    gap: 14px;
    min-height: 118px;
    padding: 20px;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.menu-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.menu-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-size: 1.2rem;
}

.menu-card h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
}

.menu-card span {
    display: block;
    font-size: 0.84rem;
}

.menu-arrow {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .login-shell {
        padding: 24px;
    }

    .login-panel {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .mobile-login-brand {
        display: flex;
    }

    .login-card {
        padding: 36px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
    }

    .sidebar-nav,
    .stats-grid,
    .menu-grid,
    .question-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar,
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Dashboard and data table refinement */
.dashboard-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.18);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-card,
.menu-card {
    isolation: isolate;
}

.stat-icon,
.menu-icon,
.nav-item i {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.stat-card:hover .stat-icon,
.menu-card:hover .menu-icon {
    transform: translateY(-2px);
}

.tone-1 .stat-icon,
.tone-1 .menu-icon {
    color: #2563eb;
    background: #dbeafe;
}

.tone-2 .stat-icon,
.tone-2 .menu-icon {
    color: #0891b2;
    background: #cffafe;
}

.tone-3 .stat-icon,
.tone-3 .menu-icon {
    color: #16a34a;
    background: #dcfce7;
}

.tone-4 .stat-icon,
.tone-4 .menu-icon {
    color: #9333ea;
    background: #f3e8ff;
}

.tone-5 .stat-icon,
.tone-5 .menu-icon {
    color: #ea580c;
    background: #ffedd5;
}

.tone-6 .stat-icon,
.tone-6 .menu-icon {
    color: #e11d48;
    background: #ffe4e6;
}

.stat-card {
    border-color: #e6edf7;
    background:
        linear-gradient(180deg, #ffffff, #f9fbff);
}

.stat-card strong {
    color: #0f172a;
    font-weight: 900;
}

.menu-card {
    border-color: #e6edf7;
    background:
        linear-gradient(180deg, #ffffff, #f9fbff);
}

.menu-card h4 {
    color: #0f172a;
}

.menu-arrow {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 1.2rem;
}

.menu-card:hover .menu-arrow {
    background: #eff6ff;
}

.content-card-header {
    align-items: center;
}

.content-card-header h2 {
    font-size: 1.32rem;
}

.content-card-header p {
    max-width: 720px;
    line-height: 1.55;
}

.admin-table {
    border-spacing: 0 9px;
}

.admin-table thead th {
    padding: 14px 16px;
    background: #edf4fb;
    color: #1f2a44;
    font-size: 0.76rem;
    font-weight: 900;
}

.admin-table tbody tr {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.admin-table tbody tr:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.admin-table td {
    padding: 15px 16px;
}

.table-title {
    font-size: 0.96rem;
    font-weight: 900;
}

.table-subtitle {
    font-size: 0.8rem;
}

.table-avatar,
.code-pill,
.soft-pill,
.table-email {
    border: 1px solid #e2e8f0;
}

.table-avatar {
    color: #2563eb;
    background: #eff6ff;
}

.table-email {
    background: #f8fbff;
}

.code-pill {
    background: #eef5ff;
}

.soft-pill {
    background: #f8fafc;
}

.badge-role {
    border: 1px solid #bfdbfe;
}

.badge.text-bg-info {
    background: #cffafe !important;
    color: #0e7490 !important;
}

.badge.text-bg-success {
    background: #dcfce7 !important;
    color: #047857 !important;
}

.badge.text-bg-secondary {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.admin-table .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 72px;
}

.admin-table .btn-outline-primary::before {
    content: "\F4CA";
    font-family: "bootstrap-icons";
    font-size: 0.82rem;
}

.admin-table .btn-outline-danger::before {
    content: "\F5DE";
    font-family: "bootstrap-icons";
    font-size: 0.82rem;
}

.admin-table .btn-outline-primary,
.admin-table .btn-outline-danger {
    font-weight: 800;
}

.data-empty {
    padding: 34px;
    background:
        linear-gradient(180deg, #f8fbff, #ffffff);
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-item i {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-item:nth-child(6n+1) i {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.18);
}

.sidebar-nav .nav-item:nth-child(6n+2) i {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
}

.sidebar-nav .nav-item:nth-child(6n+3) i {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
}

.sidebar-nav .nav-item:nth-child(6n+4) i {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.15);
}

.sidebar-nav .nav-item:nth-child(6n+5) i {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
}

.sidebar-nav .nav-item:nth-child(6n+6) i {
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.14);
}

.sidebar-nav .nav-item.active i,
.sidebar-nav .nav-item:hover i {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .login-shell {
        padding: 16px;
    }

    .login-card,
    .content-area,
    .topbar,
    .dashboard-hero {
        padding: 20px;
    }

    .login-heading h2 {
        font-size: 1.65rem;
    }

    .sidebar-nav,
    .stats-grid,
    .menu-grid,
    .detail-grid,
    .question-options {
        grid-template-columns: 1fr;
    }

    .topbar-user {
        width: 100%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-hero h2 {
        font-size: 1.45rem;
    }

    .user-meta {
        flex: 1;
    }

    .content-card-header,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Visual polish layer */
:root {
    --primary: #2563eb;
    --primary-dark: #0f172a;
    --primary-soft: #e0ecff;
    --muted: #64748b;
    --line: #e2e8f0;
    --page: #f3f6fb;
    --sidebar: #0b1220;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.app-body {
    background:
        linear-gradient(180deg, #eef4ff 0, #f8fafc 260px),
        var(--page);
}

.app-shell {
    grid-template-columns: 292px 1fr;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.16), transparent 260px),
        var(--sidebar);
    padding: 22px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    padding: 8px 8px 20px;
}

.sidebar-brand .brand-mark {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.34);
}

.sidebar-role {
    margin: 18px 6px 6px;
    padding: 12px 14px;
    border: 1px solid rgba(191, 219, 254, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-role span,
.sidebar-role strong {
    display: block;
}

.sidebar-role span {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-role strong {
    margin-top: 2px;
    color: #fff;
}

.sidebar-nav {
    gap: 6px;
    margin-top: 16px;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-item {
    color: #cbd5e1;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.22);
}

.nav-item.active {
    box-shadow: inset 3px 0 0 #60a5fa;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 82px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    padding: 16px 30px;
}

.topbar h1 {
    font-size: 1.38rem;
    color: var(--primary-dark);
}

.topbar-user {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
}

.content-area {
    padding: 30px;
}

.content-card {
    padding: 24px;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.content-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.content-card-header h2,
.section-title,
.section-heading h3 {
    color: var(--primary-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-sm {
    min-height: 34px;
    padding-inline: 12px;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: var(--line);
    border-radius: 8px;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.admin-table thead th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
}

.admin-table td {
    padding: 14px;
    border-color: #eef2f7;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.badge {
    border-radius: 999px;
    padding: 0.45em 0.72em;
    font-weight: 800;
}

.dashboard-hero {
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 216, 0.92)),
        #0f172a;
    box-shadow: var(--shadow-md);
}

.hero-method {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-card,
.menu-card,
.detail-grid div,
.question-item {
    box-shadow: var(--shadow-sm);
}

.stat-icon,
.menu-icon {
    background: linear-gradient(135deg, #e0ecff, #f8fbff);
}

.menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.menu-card {
    min-height: 122px;
    overflow: hidden;
}

.menu-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-md);
}

.menu-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #38bdf8);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card:nth-child(2n) .menu-icon {
    color: #0891b2;
    background: #e0f7ff;
}

.menu-card:nth-child(3n) .menu-icon {
    color: #16a34a;
    background: #dcfce7;
}

.menu-card:nth-child(4n) .menu-icon {
    color: #9333ea;
    background: #f3e8ff;
}

.menu-card:nth-child(5n) .menu-icon {
    color: #ea580c;
    background: #ffedd5;
}

.menu-card.is-disabled {
    opacity: 0.72;
    pointer-events: none;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0 7px;
    min-width: 980px;
}

.admin-table thead th {
    border: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef3f9;
    color: #334155;
    font-size: 0.74rem;
    letter-spacing: 0;
    padding: 12px 14px;
}

.admin-table tbody tr {
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-table tbody tr:hover {
    background: #fbfdff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.admin-table td {
    padding: 13px 14px;
    color: #111827;
}

.admin-table td small,
.table-subtitle {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.table-title {
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 850;
    line-height: 1.35;
}

.admin-table tbody td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.admin-table tbody td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table-responsive {
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.content-card .pagination {
    margin-top: 16px;
    margin-bottom: 0;
}

.admin-table .text-end {
    white-space: nowrap;
}

.admin-table .btn-sm {
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 0.78rem;
}

.admin-table .btn-outline-primary {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.admin-table .btn-outline-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.admin-table .btn-outline-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}

.admin-table .btn-outline-danger:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #fff;
}

.admin-table .badge {
    font-size: 0.72rem;
}

.data-empty {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.table-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    font-weight: 900;
}

.table-email {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.badge-role {
    background: #e0ecff;
    color: #1d4ed8;
}

.code-pill,
.soft-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 900;
}

.code-pill {
    min-width: 68px;
    padding: 8px 11px;
    background: #eff6ff;
    color: #1d4ed8;
}

.soft-pill {
    min-width: 44px;
    padding: 7px 10px;
    background: #f1f5f9;
    color: #334155;
}

.pagination svg,
nav[role="navigation"] svg {
    width: 18px;
    height: 18px;
}

nav[role="navigation"] > div:first-child {
    display: none;
}

nav[role="navigation"] .pagination {
    justify-content: flex-end;
}

.bobot-page {
    display: grid;
    gap: 18px;
}

.bobot-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(14, 165, 233, 0.08)),
        #fff;
    box-shadow: var(--shadow-sm);
}

.bobot-hero-label {
    display: inline-flex;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bobot-hero h2 {
    margin: 0 0 6px;
    color: var(--primary-dark);
    font-size: 1.45rem;
    font-weight: 900;
}

.bobot-hero p {
    max-width: 780px;
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.bobot-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
    min-width: 300px;
}

.bobot-hero-stats div {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.bobot-hero-stats span,
.bobot-total-row span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.bobot-hero-stats strong {
    color: #0f172a;
    font-size: 1.45rem;
    line-height: 1;
}

.bobot-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.bobot-summary-card {
    position: relative;
    min-height: 196px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.bobot-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #f59e0b;
}

.bobot-summary-card.is-complete::before {
    background: #059669;
}

.bobot-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.bobot-code,
.bobot-status,
.bobot-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.bobot-code {
    margin-bottom: 8px;
    padding: 5px 10px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 0.78rem;
}

.bobot-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.74rem;
}

.bobot-summary-card.is-complete .bobot-status {
    background: #dcfce7;
    color: #047857;
}

.bobot-summary-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
}

.bobot-total-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 18px 0 12px;
}

.bobot-total-row div {
    display: grid;
    gap: 4px;
}

.bobot-total-row strong {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.bobot-total-row div:last-child {
    min-width: 86px;
    padding-left: 14px;
    border-left: 1px solid #e2e8f0;
}

.bobot-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.bobot-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #facc15);
}

.bobot-summary-card.is-complete .bobot-progress-track span {
    background: linear-gradient(90deg, #059669, #22c55e);
}

.bobot-summary-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.bobot-table-card {
    padding: 26px;
}

.bobot-table-header {
    align-items: center;
}

.bobot-table {
    min-width: 1060px;
}

.bobot-table thead th {
    background: #eaf1f8;
    color: #1e293b;
}

.bobot-major {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bobot-major > span {
    width: 54px;
    min-width: 54px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 950;
}

.bobot-major-cell {
    width: 330px;
    vertical-align: top;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.95)),
        #fff;
}

.bobot-table tbody tr:hover .bobot-major-cell {
    background:
        linear-gradient(180deg, rgba(224, 236, 255, 0.95), rgba(255, 255, 255, 0.95)),
        #fff;
}

.table-title {
    color: var(--primary-dark);
    font-weight: 850;
}

.bobot-type {
    min-width: 108px;
    padding: 7px 11px;
    background: #cffafe;
    color: #0e7490;
    font-size: 0.76rem;
}

.bobot-type.is-nonacademic {
    background: #fef3c7;
    color: #b45309;
}

.bobot-value {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 950;
}

.bobot-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.bobot-group-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 14px;
}

.bobot-major-group {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.bobot-major-group.needs-check {
    border-color: #fde68a;
}

.bobot-major-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 104px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98)),
        #fff;
    border-bottom: 1px solid #e2e8f0;
}

.bobot-major-header .bobot-major > span {
    width: 50px;
    min-width: 50px;
    height: 42px;
    font-size: 0.88rem;
}

.bobot-major-header h3 {
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.35;
}

.bobot-major-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
}

.bobot-major-total {
    min-width: 86px;
    padding: 8px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.bobot-major-total span {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
}

.bobot-major-total strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1;
}

.bobot-major-group.is-complete .bobot-major-total strong {
    color: #047857;
}

.bobot-major-group.needs-check .bobot-major-total strong {
    color: #b45309;
}

.bobot-criteria-list {
    display: grid;
}

.bobot-criteria-item {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}

.bobot-criteria-item:last-child {
    border-bottom: 0;
}

.bobot-criteria-item:hover {
    background: #f8fbff;
}

.bobot-criteria-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bobot-criteria-code {
    width: 38px;
    min-width: 38px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1d4ed8;
    font-weight: 950;
}

.bobot-criteria-main h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 900;
}

.bobot-criteria-main p {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.45;
}

.bobot-criteria-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.bobot-criteria-meta .bobot-type {
    min-width: 94px;
}

.bobot-criteria-meta .bobot-value {
    min-width: 54px;
    padding: 7px 9px;
    font-size: 0.9rem;
}

.bobot-criteria-meta .bobot-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.bobot-criteria-empty {
    margin: 14px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.score-pill {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
}

.recommendation-highlight {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.92)),
        #0f172a;
    box-shadow: var(--shadow-md);
}

.recommendation-detail-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.recommendation-score {
    min-width: 150px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    text-align: center;
}

.recommendation-score small,
.recommendation-score strong {
    display: block;
}

.recommendation-score small {
    color: #bfdbfe;
    font-weight: 800;
}

.recommendation-score strong {
    margin-top: 4px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.academic-score-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.academic-score-grid div {
    min-height: 92px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.academic-score-grid span,
.academic-score-grid strong {
    display: block;
}

.academic-score-grid span {
    min-height: 38px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.academic-score-grid strong {
    margin-top: 8px;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 950;
}

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

.mfep-flow div {
    position: relative;
    min-height: 112px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.mfep-flow span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--school-blue);
    font-weight: 950;
}

.mfep-flow strong,
.mfep-flow small {
    display: block;
}

.mfep-flow strong {
    color: #0f172a;
    font-weight: 900;
}

.mfep-flow small {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.45;
}

.calculation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.calculation-heading h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.calculation-total {
    min-width: 126px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    text-align: right;
}

.calculation-total span,
.calculation-total strong {
    display: block;
}

.calculation-total span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
}

.calculation-total strong {
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.28rem;
    font-weight: 950;
}

.questionnaire-major-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.questionnaire-major-summary div {
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.questionnaire-major-summary span,
.questionnaire-major-summary strong,
.questionnaire-major-summary small {
    display: block;
}

.questionnaire-major-summary span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

.questionnaire-major-summary strong {
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
}

.questionnaire-major-summary small {
    margin-top: 5px;
    color: #64748b;
    font-weight: 700;
}

.mfep-criteria-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.mfep-criteria-code {
    width: 42px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--school-blue);
    font-size: 0.78rem;
    font-weight: 950;
}

.mfep-criteria-cell strong,
.mfep-criteria-cell small {
    display: block;
}

.mfep-criteria-cell strong {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.3;
}

.mfep-criteria-cell small {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

@media (max-width: 992px) {
    .app-sidebar {
        position: static;
        height: auto;
    }

    .topbar {
        position: static;
    }

    .bobot-hero {
        flex-direction: column;
    }

    .bobot-hero-stats {
        min-width: 0;
        width: 100%;
    }

    .bobot-group-list {
        grid-template-columns: 1fr;
    }

    .recommendation-detail-highlight,
    .calculation-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .recommendation-score,
    .calculation-total {
        width: 100%;
        text-align: left;
    }

    .academic-score-grid,
    .questionnaire-major-summary,
    .mfep-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 993px) and (max-width: 1400px) {
    .bobot-group-list {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 640px) {
    .bobot-hero,
    .bobot-table-card {
        padding: 18px;
    }

    .bobot-hero-stats,
    .bobot-total-row {
        grid-template-columns: 1fr;
    }

    .bobot-total-row div:last-child {
        min-width: 0;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }

    .bobot-actions {
        flex-direction: column;
    }

    .bobot-major-header,
    .bobot-criteria-item,
    .bobot-criteria-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .bobot-major-header,
    .bobot-criteria-item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bobot-major-total {
        min-width: 0;
        text-align: left;
    }

    .academic-score-grid,
    .questionnaire-major-summary,
    .mfep-flow {
        grid-template-columns: 1fr;
    }
}

/* School identity refresh */
:root {
    --school-purple: #2f1b75;
    --school-blue: #2563eb;
    --school-blue-dark: #0f172a;
    --school-blue-soft: #e0ecff;
    --school-cyan: #0ea5e9;
    --primary: var(--school-blue);
    --primary-dark: #0f172a;
    --primary-soft: var(--school-blue-soft);
    --page: #f3f6fb;
    --line: #e2e8f0;
    --shadow-sm: 0 12px 28px rgba(17, 24, 39, 0.07);
    --shadow-md: 0 22px 54px rgba(17, 24, 39, 0.12);
}

.brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.brand-logo-light {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.brand-logo-sidebar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    padding: 3px;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.login-page {
    background:
        radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
        radial-gradient(circle at 86% 76%, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
}

.login-shell {
    padding: 36px;
}

.login-panel {
    width: min(100%, 1120px);
    min-height: 660px;
    grid-template-columns: 1.05fr 0.95fr;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
}

.login-showcase {
    padding: 44px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.95) 62%, rgba(37, 99, 235, 0.92)),
        var(--school-blue-dark);
}

.login-showcase::after {
    display: none;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.72), transparent 78%);
    pointer-events: none;
}

.login-showcase::after {
    content: "";
    display: block;
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border: 42px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    background: transparent;
}

.login-brand,
.mobile-login-brand,
.sidebar-brand {
    gap: 14px;
}

.brand-kicker-light {
    color: #bfdbfe;
}

.showcase-label {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    font-size: 0.78rem;
}

.showcase-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
}

.showcase-copy p {
    color: #dbeafe;
}

.major-list div {
    min-height: 68px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.major-list i {
    color: #bfdbfe;
}

.login-card {
    padding: 50px 46px;
}

.login-heading {
    margin-bottom: 26px;
}

.login-label,
.brand-kicker,
.topbar-kicker {
    color: var(--school-blue);
}

.login-heading h2 {
    color: #111827;
    font-size: 2rem;
}

.login-heading p {
    color: #64748b;
}

.input-group-text {
    background: #f8fafc;
    color: var(--school-blue);
}

.form-control:focus,
.form-select:focus,
.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control {
    border-color: var(--school-blue);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.13);
}

.btn-primary {
    background: linear-gradient(135deg, var(--school-blue), #0ea5e9);
    border-color: var(--school-blue);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    border-color: #1d4ed8;
}

.login-footer-note {
    background: #f8fbff;
    border-color: #dbeafe;
}

.login-footer-note i {
    color: var(--school-blue);
}

.app-body {
    background:
        linear-gradient(180deg, #eef4ff 0, #f8fafc 280px),
        var(--page);
}

.app-shell {
    grid-template-columns: 300px 1fr;
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.16), transparent 270px),
        #0b1220;
    padding: 20px 16px;
}

.sidebar-brand {
    padding: 8px 8px 18px;
}

.sidebar-brand strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.25;
}

.sidebar-brand span {
    color: #bfdbfe;
}

.sidebar-role {
    border-color: rgba(191, 219, 254, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-role span {
    color: #93c5fd;
}

.nav-item {
    min-height: 46px;
    color: #dbeafe;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.nav-item.active {
    box-shadow: inset 4px 0 0 #60a5fa;
}

.nav-item i {
    color: #bfdbfe;
}

.topbar {
    min-height: 84px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
}

.topbar h1 {
    color: #111827;
    font-size: 1.38rem;
}

.topbar-user {
    border-color: #dbeafe;
}

.user-avatar,
.stat-icon,
.menu-icon,
.table-avatar {
    background: linear-gradient(135deg, #dbeafe, #f8fbff);
    color: var(--school-blue);
}

.content-card,
.stat-card,
.menu-card,
.detail-grid div,
.question-item,
.bobot-summary-card,
.bobot-major-group {
    border-color: #e4e7f0;
    box-shadow: var(--shadow-sm);
}

.content-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 1)),
        #fff;
}

.content-card-header h2,
.section-title,
.section-heading h3,
.table-title {
    color: #111827;
}

.admin-table thead th {
    background: #eef3f9;
    color: #334155;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.code-pill,
.bobot-code,
.bobot-major > span,
.bobot-criteria-code,
.bobot-value {
    background: #eff6ff;
    color: var(--school-blue);
}

.badge-role {
    background: #e0ecff;
    color: var(--school-blue);
}

.dashboard-hero,
.recommendation-highlight {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 216, 0.92)),
        #0f172a;
}

.menu-card:hover {
    border-color: #93c5fd;
}

.menu-card::before {
    background: linear-gradient(180deg, var(--school-blue), #38bdf8);
}

.bobot-hero {
    border-color: #dbeafe;
    background:
        linear-gradient(135deg, rgba(224, 236, 255, 0.94), rgba(255, 255, 255, 0.96)),
        #fff;
}

.bobot-hero-label {
    color: var(--school-blue);
}

.bobot-summary-card.is-complete::before,
.bobot-summary-card.is-complete .bobot-progress-track span {
    background: linear-gradient(90deg, #059669, #34d399);
}

@media (max-width: 992px) {
    .login-panel {
        width: min(100%, 620px);
    }

    .app-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 14px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
}

/* Login refinement */
.login-shell {
    padding: 22px;
}

.login-panel {
    width: min(100%, 1180px);
    min-height: 680px;
    grid-template-columns: 1.04fr 0.96fr;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(90deg, #13245d 0%, #214fc7 51%, #ffffff 51%, #ffffff 100%);
}

.login-showcase {
    padding: 48px;
    overflow: hidden;
}

.login-showcase .login-brand,
.login-showcase .major-list,
.login-visual {
    position: relative;
    z-index: 1;
}

.login-showcase .login-brand {
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.login-brand {
    align-items: center;
}

.login-brand h1 {
    margin-bottom: 2px;
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.brand-subtitle {
    display: block;
    color: #bfdbfe;
    font-size: 0.88rem;
    font-weight: 650;
}

.mobile-login-brand .brand-subtitle {
    color: #64748b;
}

.brand-description {
    max-width: 440px;
    margin: 10px 0 0;
    color: #e0ecff;
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-brand .brand-logo {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    padding: 4px;
}

.login-visual {
    margin: 28px 0 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.login-visual img {
    display: block;
    width: 100%;
    height: clamp(300px, 33vw, 372px);
    object-fit: cover;
    object-position: 50% 52%;
}

@keyframes loginVisualFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.major-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.major-list div {
    min-height: 78px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255, 255, 255, 0.11);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.major-list div:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
}

.major-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.major-list strong {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.major-list small {
    color: #dbeafe;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.32;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 50px;
    position: relative;
    background:
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.10), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(37, 99, 235, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.92), #fff 34%),
        #fff;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #0ea5e9, #2f1b75);
}

.login-card::after {
    content: "";
    position: absolute;
    top: 38px;
    right: 40px;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid #dbeafe;
    opacity: 0.78;
}

.login-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 34px;
}

.login-heading::before {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.login-label {
    margin-bottom: 10px;
    font-size: 0.78rem;
}

.login-heading h2 {
    margin-bottom: 10px;
    font-size: 2.22rem;
    line-height: 1.1;
}

.login-heading p {
    max-width: 390px;
    font-size: 1rem;
    line-height: 1.6;
}

.login-form .mb-3 {
    margin-bottom: 18px !important;
}

.login-form,
.login-footer-note {
    position: relative;
    z-index: 1;
}

.login-input-group .input-group-text,
.login-input-group .form-control {
    min-height: 54px;
}

.login-input-group .input-group-text {
    min-width: 54px;
    border-radius: 8px 0 0 8px;
    background: #f8fbff;
}

.login-input-group .form-control {
    font-size: 0.98rem;
    border-radius: 0 8px 8px 0;
    background: #eef5ff;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input-group:focus-within .form-control {
    background: #fff;
}

.login-button {
    min-height: 58px;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.24);
}

.login-footer-note {
    margin-top: 26px;
    padding: 15px 16px;
    align-items: flex-start;
    line-height: 1.5;
}

.login-footer-note i {
    margin-top: 2px;
}

@media (max-width: 992px) {
    .login-showcase {
        display: block;
        padding: 30px;
    }

    .login-panel {
        grid-template-columns: 1fr;
        max-width: 680px;
        background: #fff;
    }

    .login-showcase .major-list,
    .login-showcase .brand-description {
        display: none;
    }

    .login-showcase .login-visual {
        margin: 22px 0 0;
    }

    .login-showcase .login-visual img {
        height: 180px;
    }

    .login-card {
        padding: 34px;
    }

    .login-card::after {
        display: none;
    }

    .mobile-login-brand {
        display: none;
    }
}

@media (max-width: 640px) {
    .login-showcase {
        padding: 22px;
    }

    .login-brand .brand-logo,
    .mobile-login-brand .brand-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .login-showcase .login-visual img {
        height: 150px;
    }

    .login-heading h2 {
        font-size: 1.9rem;
    }
}

/* Integrated login composition */
.login-panel {
    gap: 0;
    padding: 0;
    background:
        linear-gradient(90deg, #102257 0%, #234cc0 52%, #ffffff 52%, #ffffff 100%);
}

.login-showcase {
    border-radius: 8px 0 0 8px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.88)),
        #172554;
}

.login-card {
    align-self: stretch;
    margin: 0;
    padding: 56px 52px;
    border: 0;
    border-left: 1px solid rgba(219, 234, 254, 0.9);
    border-radius: 0 8px 8px 0;
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: none;
    backdrop-filter: none;
}

.login-card::before {
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #0ea5e9);
}

.login-card::after {
    display: none;
}

.login-heading::before {
    width: 64px;
    height: 4px;
}

.login-input-group .form-control {
    background: #f1f6ff;
}

.login-footer-note {
    background: rgba(248, 251, 255, 0.88);
}

@media (max-width: 992px) {
    .login-panel {
        padding: 0;
        background:
            linear-gradient(180deg, #102257 0%, #234cc0 42%, #ffffff 42%, #ffffff 100%);
    }

    .login-showcase {
        border-radius: 8px 8px 0 0;
    }

    .login-card {
        margin: 0;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
    }
}

/* Login photo polish */
.login-page {
    background:
        linear-gradient(135deg, rgba(226, 232, 240, 0.92), rgba(220, 252, 231, 0.65)),
        #eef2f7;
}

.login-panel {
    min-height: 660px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

.login-showcase {
    gap: 26px;
    background:
        linear-gradient(145deg, rgba(11, 31, 55, 0.97), rgba(22, 101, 52, 0.9)),
        #0f2f3d;
}

.login-showcase::before,
.login-showcase::after {
    display: none;
}

.login-visual {
    isolation: isolate;
    margin: 14px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #d9f3e6;
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.26);
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.12)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.16), transparent 34%, rgba(2, 6, 23, 0.08));
}

.login-visual img {
    height: clamp(340px, 34vw, 430px);
    object-position: center bottom;
    transform: scale(1.13);
    transform-origin: center bottom;
}

.major-list div {
    border-color: rgba(187, 247, 208, 0.24);
    background: rgba(255, 255, 255, 0.10);
}

.major-list i {
    color: #bbf7d0;
}

.brand-subtitle {
    color: #d1fae5;
}

.login-card {
    padding: 54px 52px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.login-card::before {
    background: linear-gradient(180deg, #16a34a, #2563eb);
}

.login-heading::before,
.login-button {
    background: linear-gradient(90deg, #16a34a, #2563eb);
    border: 0;
}

.login-input-group .input-group-text {
    color: #166534;
    background: #f0fdf4;
}

.login-input-group .form-control {
    background: #f8fafc;
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control {
    border-color: #86efac;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.12);
}

.login-footer-note {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.login-footer-note i {
    color: #16a34a;
}

@media (max-width: 992px) {
    .login-panel {
        min-height: auto;
        background: #ffffff;
    }

    .login-showcase {
        gap: 18px;
    }

    .login-showcase .login-visual {
        margin-top: 8px;
    }

    .login-showcase .login-visual img {
        height: 220px;
        transform: scale(1.1);
    }

    .login-card {
        padding: 36px 34px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 14px;
    }

    .login-showcase {
        padding: 20px;
    }

    .login-showcase .login-visual img {
        height: 170px;
        transform: scale(1.08);
    }

    .login-card {
        padding: 30px 22px;
    }
}
