@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-alt: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --primary: #0b1528;
    --primary-2: #1e3a8a;
    --primary-light: #2563eb;
    --secondary: #64748b;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --ink: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --line: #e2e8f0;
    --surface: #ffffff;
    --bg: #f8fafc;
    --warning: #f59e0b;
    --danger: #dc2626;
    --soft-blue: #eff6ff;
    --soft-yellow: #fef3c7;
    --soft-red: #fee2e2;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Visible keyboard focus indicator across the app (buttons, links, inputs, tabs) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
    border-radius: 4px;
}

body,
input,
button,
select,
textarea,
optgroup {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: var(--bg);
    line-height: 1.55;
    letter-spacing: -0.01em;
    font-size: 0.9375rem;
}

/* Headings with tight, modern negative tracking matching FCE Eha-Amufu brand typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.font-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

/* Typography utility classes matching FCE Eha-Amufu ecosystem */
.font-heading { font-family: var(--font-heading) !important; }
.font-sans { font-family: var(--font-sans) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-opensans { font-family: var(--font-alt) !important; }

h1, .h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-size: 1.38rem;
    font-weight: 750;
    letter-spacing: -0.022em;
}

h3, .h3 {
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.018em;
}

h4, .h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h5, .h5 {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h6, .h6 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

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

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px 18px;
    background: #082542;
    color: #eef2ff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
}

.brand img,
.login-brand img,
.print-header img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.profile-mini strong,
.profile-mini span {
    display: block;
}

.profile-mini strong {
    font-size: .94rem;
    color: #ffffff;
}

.profile-mini span {
    font-size: .78rem;
    color: #b6bdd4;
}

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

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.sidebar-nav a,
.sidebar-footer a,
.sidebar-footer button {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 8px;
    color: #cbd5e1;
    background: transparent;
    text-align: left;
    font: inherit;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-footer a:hover,
.sidebar-footer button:hover {
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 6px;
}

.main-panel {
    min-width: 0;
    padding: 28px;
}

.main-region {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background: #f8fafc;
}

.topbar {
    min-height: 68px;
    padding: 16px 36px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #64748b;
}

.breadcrumbs span {
    color: #64748b;
    font-weight: 500;
}

.breadcrumbs span::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}

.breadcrumbs strong {
    color: #0f172a;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.role-pill {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    text-transform: capitalize;
}

.btn-topbar-signout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease-in-out;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-topbar-signout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.28);
    transform: translateY(-1px);
}

.btn-topbar-signout:active {
    transform: translateY(0);
}

.btn-topbar-signout svg {
    flex-shrink: 0;
    transition: transform 0.15s ease-in-out;
}

.btn-topbar-signout:hover svg {
    transform: translateX(2px);
}

@media (max-width: 576px) {
    .btn-topbar-signout span {
        display: none;
    }
    .btn-topbar-signout {
        padding: 6px 10px;
    }
}

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 36px 64px 36px;
}

.topbar,
.page-heading,
.panel-title,
.button-row,
.filter-bar,
.result-meta,
.login-brand,
.preview-top,
.print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 9px 13px;
}

.eyebrow {
    display: block;
    color: var(--primary-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-heading {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.page-heading h1,
.preview-card h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

.page-heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    letter-spacing: -0.006em;
}

.portal-btn,
.btn-primary,
.btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.portal-btn,
.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

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

.btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}

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

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card,
.panel,
.login-panel,
.preview-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.metric-card {
    padding: 24px;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.metric-card strong {
    display: block;
    margin: 8px 0 2px;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
    gap: 24px;
}

.panel {
    padding: 32px;
    margin-bottom: 28px;
}

.panel.wide {
    min-width: 0;
}

.panel-title {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-title h2,
.panel-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.workflow-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.workflow-step {
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.005em;
}

.workflow-step.done {
    background: var(--soft-blue);
    color: #166534;
}

.workflow-step.active {
    background: var(--soft-yellow);
    color: #92400e;
}

.portal-table {
    margin: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.portal-table th {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 16px;
    background: transparent;
}

.portal-table td {
    padding: 14px 16px;
    color: #1e293b;
    font-size: 0.88rem;
    letter-spacing: -0.005em;
    border-bottom: 1px solid #f8fafc;
}

.portal-table td strong {
    font-weight: 600;
    color: #0f172a;
}

.portal-table td span:not(.badge):not(.status):not(.portal-badge):not(.portal-badge-dot),
.portal-table td small:not(.badge):not(.status):not(.portal-badge) {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
}

/* ==========================================================================
   Modern Accessible Badge & Status System (WCAG AAA Compliant)
   Ensures text inside all colored boxes/pills is crystal clear & visible
   ========================================================================== */

/* Base badge resetting and modern typography */
.badge,
.portal-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 3.5px 10px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    border-radius: 9999px !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    letter-spacing: 0.015em !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* Status dots */
.portal-badge-dot,
.status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* 1. Success / Active / Approved / Published / Enrolled (High-contrast blue) */
.badge.bg-success,
.badge-success,
.portal-badge-success,
.portal-badge.success,
.badge.bg-success-subtle,
.status.active,
.status.approved,
.status.published {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}
.portal-badge-success .portal-badge-dot,
.status.active .status-dot,
.status.approved .status-dot,
.status.published .status-dot {
    background-color: #2563eb !important;
}

/* 2. Primary / Lecturer / Student / Academic (High-contrast deep blue) */
.badge.bg-primary,
.badge-primary,
.portal-badge-primary,
.portal-badge.primary,
.badge.bg-primary-subtle,
.badge-role-lecturer {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}
.portal-badge-primary .portal-badge-dot {
    background-color: #2563eb !important;
}

/* 3. Warning / Review / Exam Officer / Unassigned / Draft (High-contrast warm amber) */
.badge.bg-warning,
.badge-warning,
.portal-badge-warning,
.portal-badge.warning,
.badge.bg-warning-subtle,
.badge-role-exam-officer,
.status.draft,
.status.pending,
.status.under_review {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
.portal-badge-warning .portal-badge-dot,
.status.draft .status-dot,
.status.pending .status-dot {
    background-color: #d97706 !important;
}

/* 4. Danger / Suspended / Rejected / Admin / Carryover (High-contrast rose) */
.badge.bg-danger,
.badge-danger,
.portal-badge-danger,
.portal-badge.danger,
.badge.bg-danger-subtle,
.badge-role-super-admin,
.status.rejected,
.status.suspended,
.status.inactive {
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
}
.portal-badge-danger .portal-badge-dot,
.status.rejected .status-dot,
.status.suspended .status-dot {
    background-color: #e11d48 !important;
}

/* 5. Info / Faculty Admin / Blue-Sky (High-contrast cyan/sky) */
.badge.bg-info,
.badge-info,
.portal-badge-info,
.portal-badge.info,
.badge.bg-info-subtle,
.badge-role-faculty-admin,
.status.submitted {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
.portal-badge-info .portal-badge-dot,
.status.submitted .status-dot {
    background-color: #0284c7 !important;
}

/* 6. Dark / HOD / Head of Department (High-contrast rich slate/indigo) */
.badge.bg-dark,
.badge-dark,
.portal-badge-dark,
.portal-badge.dark,
.badge-role-hod {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1.5px solid #94a3b8 !important;
}
.portal-badge-dark .portal-badge-dot {
    background-color: #334155 !important;
}

/* 7. Secondary / Neutral / Staff / Filters / Metadata (High-contrast slate) */
.badge.bg-secondary,
.badge-secondary,
.portal-badge-secondary,
.portal-badge.secondary,
.badge.bg-light,
.badge-light,
.badge-role-staff {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Base .status pills */
.status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 80px !important;
    min-height: 25px !important;
    padding: 3px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.015em !important;
    text-transform: capitalize !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.notice-list,
.permission-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.notice-list li,
.permission-list li,
.structure-grid div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.permission-list strong,
.permission-list span,
.structure-grid strong,
.structure-grid span {
    display: block;
}

.permission-list span,
.structure-grid span {
    margin-top: 5px;
    color: var(--muted);
    font-size: .86rem;
}

.filter-bar {
    align-items: stretch;
    margin-bottom: 16px;
}

.filter-bar input {
    flex: 1 1 280px;
}

.filter-bar select {
    max-width: 180px;
}

.result-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.result-meta span {
    padding: 8px 11px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
}

.score-input {
    width: 76px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 8px;
}

.score-input.is-invalid {
    border-color: var(--danger);
    background: #fff5f5;
}

.form-hint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.signature-grid span {
    padding-top: 18px;
    border-top: 1px solid var(--ink);
    text-align: center;
}

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

/* ==========================================================================
   FCE Eha-Amufu Unified Fullpage Login (Single Screen, Brand Colors, Single Logo)
   ========================================================================== */

.login-body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background: 
        linear-gradient(135deg, rgba(245, 248, 255, 0.84) 0%, rgba(228, 239, 254, 0.80) 45%, rgba(240, 246, 255, 0.86) 100%),
        url('../images/login_hero.jpg') center center / cover no-repeat fixed;
    background-color: #f1f5f9;
    font-family: var(--font-sans);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.login-body.dark-mode {
    background: 
        linear-gradient(135deg, rgba(8, 21, 40, 0.88) 0%, rgba(4, 12, 26, 0.92) 50%, rgba(13, 27, 50, 0.86) 100%),
        url('../images/login_hero.jpg') center center / cover no-repeat fixed;
    background-color: #040c1a;
}

/* ==========================================================================
   Portal Entrance Top Navigation Bar
   ========================================================================== */
.portal-entrance-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.login-body.dark-mode .portal-entrance-nav {
    background: rgba(10, 18, 36, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.portal-nav-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.portal-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0b1a30;
}

.portal-nav-logo {
    height: 40px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.15));
}

.portal-nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.portal-nav-inst {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.02rem;
    color: #0b1a30;
    letter-spacing: -0.01em;
}

.portal-nav-portal-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-body.dark-mode .portal-nav-inst {
    color: #f8fafc;
}

.login-body.dark-mode .portal-nav-portal-title {
    color: #94a3b8;
}

.portal-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 650;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: 1px solid transparent;
}

.portal-nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    transform: translateY(-1px);
}

.portal-nav-link.active {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.portal-nav-link.active:hover {
    background: #1e40af;
    color: #ffffff;
}

.portal-nav-link-fees {
    background: rgba(16, 185, 129, 0.1);
    color: #1e40af;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.portal-nav-link-fees:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.portal-nav-badge {
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.portal-nav-link-fees:hover .portal-nav-badge {
    background: #ffffff;
    color: #1e40af;
}

.portal-nav-link-ext {
    color: #64748b;
}

.portal-nav-ext-icon {
    opacity: 0.7;
}

/* Dark Mode Nav Link Overrides */
.login-body.dark-mode .portal-nav-link {
    color: #cbd5e1;
}

.login-body.dark-mode .portal-nav-link:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.login-body.dark-mode .portal-nav-link.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.login-body.dark-mode .portal-nav-link-fees {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.login-body.dark-mode .portal-nav-link-fees:hover {
    background: #3b82f6;
    color: #ffffff;
}

.fce-login-unified-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 32px 48px;
    box-sizing: border-box;
}

.fce-login-unified-container {
    width: 100%;
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

/* ==========================================================================
   Left End: Institutional Branding & Free-Floating Crest (No Box)
   ========================================================================== */
.fce-unified-brand {
    flex: 1.15;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fce-single-logo {
    width: 125px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 22px;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
    transition: transform 0.25s ease;
    display: block;
}

.fce-single-logo:hover {
    transform: scale(1.04);
}

.fce-brand-pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 999px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.fce-brand-institution-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 850;
    color: #0b1a30;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    line-height: 1.18;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.fce-brand-institution-sub {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 750;
    color: #1d4ed8;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fce-brand-institution-meta {
    font-size: 0.95rem;
    color: #334155;
    margin: 0 0 20px 0;
    font-weight: 600;
    line-height: 1.4;
}

.fce-brand-line {
    width: 80px;
    height: 3.5px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    border-radius: 2px;
    margin-bottom: 20px;
}

.fce-brand-description {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #334155;
    max-width: 520px;
    margin: 0 0 28px 0;
    font-weight: 500;
}

.fce-brand-footer-text {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: #475569;
    border-top: 1px solid rgba(15, 23, 42, 0.14);
    padding-top: 16px;
    width: 100%;
    max-width: 520px;
    font-weight: 500;
}

/* Dark Mode Overrides for Left Brand */
.login-body.dark-mode .fce-unified-brand {
    color: #ffffff;
}

.login-body.dark-mode .fce-brand-pill {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(147, 197, 253, 0.35);
    color: #93c5fd;
}

.login-body.dark-mode .fce-brand-institution-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-body.dark-mode .fce-brand-institution-sub {
    color: #60a5fa;
}

.login-body.dark-mode .fce-brand-institution-meta {
    color: #cbd5e1;
}

.login-body.dark-mode .fce-brand-description {
    color: #94a3b8;
}

.login-body.dark-mode .fce-brand-footer-text {
    color: #94a3b8;
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Right End: The Form Card (No Duplicate Logo, Clean & Focused)
   ========================================================================== */
.fce-unified-form-card {
    flex: 0 0 430px;
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-body.dark-mode .fce-unified-form-card {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    color: #f8fafc;
}

.fce-form-card-header {
    text-align: left;
    margin-bottom: 22px;
}

.fce-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 850;
    color: #0b1a30;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.login-body.dark-mode .fce-form-title {
    color: #f8fafc;
}

.fce-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.login-body.dark-mode .fce-form-subtitle {
    color: #94a3b8;
}

/* Role Segmented Toggle Pill */
.fce-role-segmented {
    display: flex;
    width: 100%;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.login-body.dark-mode .fce-role-segmented {
    background: #1e293b;
    border-color: #334155;
}

.fce-role-tab {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fce-role-tab:hover {
    color: #0b1a30;
}

.login-body.dark-mode .fce-role-tab:hover {
    color: #ffffff;
}

.fce-role-tab.active {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(29, 78, 216, 0.35);
}

.fce-role-tab input[type="radio"] {
    display: none;
}

.fce-admin-mode-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-body.dark-mode .fce-admin-mode-pill {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

.fce-portal-return-link {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fce-portal-return-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.login-body.dark-mode .fce-portal-return-link {
    color: #60a5fa;
}

/* Form Inputs & Button */
.fce-login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.fce-form-field {
    margin-bottom: 16px;
}

.fce-form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.login-body.dark-mode .fce-form-field label {
    color: #cbd5e1;
}

.fce-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    padding: 0 16px;
    font-size: 0.94rem;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-body.dark-mode .fce-input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.fce-input:focus {
    border-color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.fce-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.fce-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.fce-input-wrapper:focus-within .fce-input-icon {
    color: #1d4ed8;
}

.fce-input-with-icon {
    padding-left: 44px !important;
    padding-right: 44px !important;
}

.fce-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 2;
}

.fce-password-toggle:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.login-body.dark-mode .fce-password-toggle:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.fce-brand-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
}

.fce-brand-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.login-body.dark-mode .fce-brand-highlight-item {
    color: #e2e8f0;
}

.fce-brand-highlight-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.login-body.dark-mode .fce-brand-highlight-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

.fce-quick-demo-drawer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.login-body.dark-mode .fce-quick-demo-drawer {
    border-top-color: #334155;
}

.fce-quick-demo-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fce-quick-demo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fce-demo-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fce-demo-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.login-body.dark-mode .fce-demo-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.login-body.dark-mode .fce-demo-btn:hover {
    background: #334155;
    color: #f8fafc;
}

.fce-btn-submit {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d3b66 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.96rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(13, 59, 102, 0.35);
    margin-top: 4px;
    margin-bottom: 14px;
}

.fce-btn-submit:hover {
    background: linear-gradient(135deg, #0a2d4e 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.42);
}

.fce-login-helper-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}

.fce-login-helper-text a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}

.login-body.dark-mode .fce-login-helper-text {
    color: #94a3b8;
}

.login-body.dark-mode .fce-login-helper-text a {
    color: #60a5fa;
}

.fce-login-bottom-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.login-body.dark-mode .fce-login-bottom-bar {
    border-top-color: #1e293b;
    color: #94a3b8;
}

/* Switch styling for dark mode */
.fce-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.fce-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
}

.fce-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fce-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 20px;
}

.fce-switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.fce-switch input:checked + .fce-switch-slider {
    background-color: #1d4ed8;
}

.fce-switch input:checked + .fce-switch-slider:before {
    transform: translateX(16px);
}

.fce-lang-select {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.login-body.dark-mode .fce-lang-select {
    color: #94a3b8;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .fce-login-unified-container {
        flex-direction: column;
        gap: 36px;
        align-items: center;
        text-align: center;
    }

    .fce-unified-brand {
        align-items: center;
        text-align: center;
    }

    .fce-brand-institution-title {
        font-size: 1.8rem;
    }

    .fce-brand-institution-sub {
        font-size: 1.1rem;
    }

    .fce-brand-description {
        display: none;
    }

    .fce-brand-footer-text {
        display: none;
    }

    .fce-unified-form-card {
        max-width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .portal-entrance-nav {
        height: auto;
        padding: 10px 0;
        position: sticky;
    }

    .portal-nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 0 16px;
    }

    .portal-nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .portal-nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .fce-login-unified-wrap {
        padding-top: 32px;
    }
}

/* Login experience refinement: focused, accessible, and form-first on small screens. */
.login-body {
    background:
        linear-gradient(105deg, rgba(244, 248, 255, 0.96) 0%, rgba(236, 244, 255, 0.92) 52%, rgba(241, 246, 253, 0.94) 100%),
        url('../images/login_hero.jpg') center center / cover no-repeat fixed;
    font-family: var(--font-sans);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.login-body .portal-nav-inst,
.login-body .fce-brand-institution-title,
.login-body .fce-brand-institution-sub,
.login-body .fce-form-title {
    font-family: inherit;
}

.portal-entrance-nav {
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
}

.portal-nav-link-fees {
    background: transparent;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.fce-login-unified-wrap {
    padding-top: 92px;
}

.fce-login-unified-container {
    max-width: 1160px;
    gap: clamp(40px, 6vw, 80px);
}

.fce-unified-brand {
    max-width: 560px;
}

.fce-brand-description {
    max-width: 500px;
}

.fce-unified-form-card {
    flex-basis: 448px;
    max-width: 448px;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 24px 64px -20px rgba(15, 23, 42, 0.30), 0 0 0 1px rgba(203, 213, 225, 0.72);
}

.fce-role-tab {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    min-height: 40px;
}

.fce-role-tab:focus-visible,
.portal-nav-link:focus-visible,
.portal-nav-brand:focus-visible,
.fce-password-toggle:focus-visible,
.fce-btn-submit:focus-visible,
.fce-login-helper-text a:focus-visible,
.fce-portal-return-link:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.fce-form-field label {
    font-weight: 650;
}

.fce-access-hint {
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.45;
}

.fce-access-hint svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #2563eb;
}

.login-body.dark-mode .fce-access-hint {
    background: rgba(37, 99, 235, 0.14);
    color: #cbd5e1;
}

.fce-unified-form-card .alert {
    border-radius: 10px;
    line-height: 1.45;
}

.fce-input[aria-invalid="true"] {
    border-color: #dc2626;
}

.fce-btn-submit {
    min-height: 48px;
}

@media (max-width: 992px) {
    .fce-login-unified-wrap {
        align-items: flex-start;
        padding: 96px 24px 40px;
    }

    .fce-login-unified-container {
        gap: 28px;
    }

    .fce-unified-form-card {
        order: -1;
        max-width: 500px;
        text-align: left;
    }

    .fce-unified-brand {
        max-width: 500px;
    }

    .fce-single-logo,
    .fce-brand-pill,
    .fce-brand-line,
    .fce-brand-description,
    .fce-brand-footer-text {
        display: none;
    }

    .fce-brand-institution-title {
        font-size: 1.18rem;
        margin-bottom: 4px;
    }

    .fce-brand-institution-sub {
        font-size: .94rem;
        margin-bottom: 6px;
    }

    .fce-brand-institution-meta {
        font-size: .8rem;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .portal-entrance-nav {
        position: static;
        height: 60px;
        padding: 0;
    }

    .portal-nav-container {
        flex-direction: row;
        gap: 10px;
        padding: 0 14px;
    }

    .portal-nav-logo {
        height: 34px;
    }

    .portal-nav-portal-title,
    .portal-nav-icon,
    .portal-nav-link-ext {
        display: none;
    }

    .portal-nav-inst {
        font-size: .9rem;
    }

    .portal-nav-menu {
        width: auto;
        flex-wrap: nowrap;
        gap: 2px;
        margin-left: auto;
    }

    .portal-nav-link {
        min-height: 40px;
        padding: 7px 9px;
        font-size: .76rem;
    }

    .fce-login-unified-wrap {
        min-height: calc(100vh - 60px);
        padding: 20px 14px 28px;
    }

    .fce-login-unified-container {
        gap: 18px;
    }

    .fce-unified-form-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .fce-form-card-header {
        margin-bottom: 18px;
    }

    .fce-form-title {
        font-size: 1.35rem;
    }

    .fce-unified-brand {
        display: none;
    }
}

@media (max-width: 390px) {
    .portal-nav-brand-text {
        display: none;
    }

    .portal-nav-link {
        padding-inline: 8px;
    }

    .fce-unified-form-card {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-body *,
    .login-body *::before,
    .login-body *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.recaptcha-notice {
    margin: 10px 0 0;
    color: #64748b;
    font-size: .68rem;
    line-height: 1.45;
    text-align: center;
}

.recaptcha-notice a {
    color: #475569;
    font-weight: 600;
}

.recaptcha-status {
    margin-bottom: 14px;
    border-radius: 10px;
}
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-panel {
    padding: 34px;
}

.login-brand {
    justify-content: flex-start;
    margin-bottom: 26px;
}

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

.login-brand span {
    color: var(--muted);
    font-size: .84rem;
}

.login-panel h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 850;
}

.login-panel p {
    color: var(--muted);
}

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

.login-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.role-selector label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary);
    cursor: pointer;
}

.role-selector input {
    accent-color: var(--accent);
}

.demo-note {
    margin-top: 18px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: .86rem;
}

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

.preview-top {
    max-width: 720px;
    margin: 0 auto 18px;
}

.preview-top span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.preview-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
    transform: rotate(-2deg);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.quick-actions span {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary);
    font-weight: 800;
}

.progress-row {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
}

.progress-row span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 800;
}

.progress-row span:nth-child(1) { background: var(--soft-red); }
.progress-row span:nth-child(2) { background: var(--soft-yellow); }
.progress-row span:nth-child(3) { background: var(--soft-blue); }
.progress-row span:nth-child(4) { background: #dff3ff; }

@media (max-width: 1040px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 20;
        inset: 0 auto 0 0;
        width: min(86vw, 300px);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: inline-flex;
    }

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

    .login-shell {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .preview-card {
        transform: none;
    }
}

@media (max-width: 700px) {
    .main-panel {
        padding: 18px;
    }

    .page-heading,
    .topbar,
    .filter-bar,
    .button-row,
    .print-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-grid,
    .content-grid,
    .structure-grid,
    .quick-actions,
    .signature-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar select {
        max-width: none;
    }

    .login-shell {
        padding: 16px;
    }

    .login-panel,
    .preview-card {
        padding: 22px;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .sidebar,
    .topbar,
    .page-heading,
    .screen-only {
        display: none !important;
    }

    .portal-shell,
    .content-grid {
        display: block;
    }

    .main-panel {
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }
}

/* ==========================================================================
   FCE Eha-Amufu — Clean White Sidebar (Reference Design Implementation)
   ========================================================================== */

.portal-shell {
    background: #f1f5f9;
}

/* White sidebar shell */
.sidebar.edulink-sidebar,
.sidebar.fce-sidebar {
    background: #ffffff !important;
    color: #334155 !important;
    padding: 0 !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 12px rgba(8, 37, 66, 0.06) !important;
    overflow: hidden;
}

/* Brand header */
.fce-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0;
}

.fce-sidebar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    filter: none;
}

.fce-sidebar-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.fce-sidebar-title {
    color: #082542;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
}

.fce-sidebar-subtitle {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
}

/* Profile card (white sidebar version) */
.edulink-profile-card,
.fce-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.15s ease;
    margin-bottom: 0;
}

.edulink-profile-card:hover,
.fce-profile-card:hover {
    background: #f8fafc;
    border-color: transparent;
}

.staff-avatar-wrapper {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 2px solid #e2e8f0;
    background: #082542;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-avatar-wrapper img,
img.staff-avatar-img,
img.edulink-avatar {
    width: 100% !important;
    height: 100% !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.edulink-avatar {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    background: #082542;
    flex-shrink: 0;
}

.edulink-profile-info {
    flex: 1;
    min-width: 0;
}

.edulink-profile-name {
    display: block;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edulink-profile-role {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edulink-profile-arrow {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Nav menu section label */
.sidebar-nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 14px 20px 6px 20px;
    display: block;
}

/* Nav list */
.edulink-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

/* Nav items — clean white sidebar style */
.edulink-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.edulink-nav-item:hover {
    color: #0f172a;
    background: #f8fafc;
    border-left-color: transparent;
}

/* Active item: Soft blue pill indicator with deep blue text and icon */
.edulink-nav-item.active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #bae6fd !important;
    border-left: none !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

.edulink-nav-item.active .nav-icon {
    color: #0284c7 !important;
}

.edulink-nav-item.active .nav-icon svg {
    color: #0284c7 !important;
    stroke: #0284c7 !important;
}

.edulink-nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

/* Footer nav (bottom of sidebar) */
.edulink-footer-nav {
    margin-top: auto;
    padding: 10px 10px 20px 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.edulink-footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.edulink-footer-item:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.edulink-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.edulink-greeting {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.15;
}

.edulink-date-meta {
    text-align: right;
    font-size: 0.86rem;
    color: #64748b;
    letter-spacing: -0.005em;
}

.edulink-date-meta strong {
    color: #0f172a;
    font-weight: 700;
}

.edulink-countdown {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}

.edulink-actions-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.action-pill:hover {
    border-color: #93c5fd;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.action-pill.active-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.action-pill.active-pill .pill-icon {
    color: #2563eb;
}

.action-pill.primary-pill {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.checkin-periods-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    overflow-x: auto;
}

.checkin-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.checkin-track {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.checkin-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s;
}

.checkin-item:hover {
    color: #2563eb;
    background: #eff6ff;
}

.checkin-chevron {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
}

.marking-progress-section {
    margin-bottom: 32px;
}

.marking-progress-title {
    font-size: 1.12rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.pastel-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 992px) {
    .pastel-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pastel-cards-grid {
        grid-template-columns: 1fr;
    }
}

.pastel-card {
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
    font-weight: 750;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pastel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.pastel-card .sub-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.9;
}

.pastel-pink {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.pastel-yellow {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.pastel-blue {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.edulink-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.edulink-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.edulink-card-title {
    font-size: 1.18rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.edulink-card-action {
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
}

.edulink-card-action:hover {
    text-decoration: underline;
}

.segmented-progress {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 140px;
}

.progress-segment {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.progress-segment.filled {
    background: #2563eb;
}

.progress-segment.partial {
    background: #f59e0b;
}

.student-roster-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 14px;
}

.student-roster-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.88rem;
    color: #1e293b;
    letter-spacing: -0.005em;
}

.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Global Clean Typography Consistency Overrides (Bootstrap & Forms)
   ========================================================================== */

table th,
.table th {
    font-family: var(--font-sans);
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #f1f5f9;
}

table td,
.table td {
    font-family: var(--font-sans);
    color: #1e293b;
    letter-spacing: -0.005em;
}

.form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #0f172a;
    border-radius: 8px;
    border-color: #e2e8f0;
    letter-spacing: -0.005em;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.badge {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0;
}

.nav-tabs .nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   FCE Eha-Amufu Official Staff Personnel Dossier & Notice Styles
   ========================================================================== */

.staff-dossier-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 32px;
}

.staff-dossier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
}

@media (max-width: 992px) {
    .staff-dossier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .staff-dossier-grid {
        grid-template-columns: 1fr;
    }
}

.staff-dossier-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-dossier-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.staff-dossier-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.staff-badge-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.staff-notice-card {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 18px;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.staff-notice-card h6 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.staff-notice-card p {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   FCE Eha-Amufu account.html Design System & Minimizable Sidebar
   ========================================================================== */

/* Custom scrollbars matching account.html */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Minimizable Sidebar Transition & Collapsed States */
.portal-shell {
    transition: grid-template-columns 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-shell.sidebar-collapsed {
    grid-template-columns: 78px minmax(0, 1fr) !important;
}

.sidebar.edulink-sidebar {
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
    overflow-x: hidden;
}

.portal-shell.sidebar-collapsed .sidebar.edulink-sidebar {
    width: 68px !important;
    padding: 0 !important;
}

.portal-shell.sidebar-collapsed .fce-sidebar-brand {
    justify-content: center;
    padding: 16px 0 14px 0;
}

.portal-shell.sidebar-collapsed .fce-sidebar-titles,
.portal-shell.sidebar-collapsed .edulink-profile-info,
.portal-shell.sidebar-collapsed .edulink-profile-arrow,
.portal-shell.sidebar-collapsed .sidebar-bell-btn,
.portal-shell.sidebar-collapsed .sidebar-nav-section-label,
.portal-shell.sidebar-collapsed .edulink-nav-item > span:not(.nav-icon),
.portal-shell.sidebar-collapsed .edulink-footer-item > span,
.portal-shell.sidebar-collapsed .fce-brand-footer-text {
    display: none !important;
}

.portal-shell.sidebar-collapsed .sidebar-user-widget {
    margin: 8px 6px 4px 6px;
    padding: 6px;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.portal-shell.sidebar-collapsed .edulink-profile-card {
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

.portal-shell.sidebar-collapsed .edulink-nav-list {
    padding: 0 6px;
}

.portal-shell.sidebar-collapsed .edulink-nav-item {
    justify-content: center;
    padding: 11px 0;
    gap: 0;
    border-left: none;
    border-radius: 10px;
}

.portal-shell.sidebar-collapsed .edulink-nav-item.active {
    background: #eff4fa;
    border-left: none;
}

.portal-shell.sidebar-collapsed .edulink-footer-nav {
    padding: 10px 6px 16px 6px;
}

.portal-shell.sidebar-collapsed .edulink-footer-item {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
}

.portal-shell.sidebar-collapsed .fce-brand-footer {
    justify-content: center;
}


/* Sidebar Toggle / Collapse Button in Topbar */
.btn-sidebar-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.btn-sidebar-collapse:hover {
    background: #f1f5f9;
    color: #082542;
    border-color: #cbd5e1;
}

/* Sidebar User Widget (white sidebar version) */
.sidebar-user-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 10px 4px 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.sidebar-user-widget:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sidebar-user-widget .edulink-profile-card {
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;
    flex: 1;
    min-width: 0;
}

/* Bell icon (white sidebar version) */
.sidebar-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}

.sidebar-bell-btn:hover {
    background: #082542;
    color: #ffffff;
    border-color: #082542;
}

.sidebar-bell-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Topbar Bell Icon Button */
.btn-topbar-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.btn-topbar-bell:hover {
    background: #f8fafc;
    color: #082542;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 37, 66, 0.08);
}

.badge-bell-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
}

/* Announcement Item Card in Modal */
.announcement-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(8, 37, 66, 0.04);
}

.announcement-item-card.is-read {
    opacity: 0.72;
    background: #f8fafc;
}

.announcement-item-card.is-read:hover {
    opacity: 1;
}

.announcement-item-card.dismissed {
    display: none !important;
}

/* FCE Eha-Amufu footer branding in sidebar */
.fce-brand-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.fce-brand-footer img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
}

.fce-brand-footer-text {
    line-height: 1.15;
}

.fce-brand-footer-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #334155;
    display: block;
}

.fce-brand-footer-sub {
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 600;
    display: block;
}

/* ==========================================================================
   Lecturer Dashboard Theme (Strict Match to Mockup media_1789852385919.png)
   ========================================================================== */

body.theme-lecturer .sidebar.edulink-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    color: #334155 !important;
}

body.theme-lecturer .fce-sidebar-brand {
    border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-lecturer .fce-sidebar-brand-name {
    color: #0f172a !important;
}

body.theme-lecturer .fce-sidebar-brand-sub {
    color: #1d4ed8 !important;
}

body.theme-lecturer .edulink-nav-item {
    color: #475569 !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    transition: all 0.15s ease !important;
    border-left: 3px solid transparent !important;
}

body.theme-lecturer .edulink-nav-item:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-left-color: transparent !important;
}

body.theme-lecturer .edulink-nav-item.active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    border: 1px solid #bae6fd !important;
    border-left: 3px solid #0284c7 !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.12) !important;
}

body.theme-lecturer .edulink-nav-item.active .nav-icon svg {
    fill: #0284c7 !important;
    color: #0284c7 !important;
    stroke: #0284c7 !important;
}

body.theme-lecturer .edulink-nav-item:not(.active) .nav-icon svg {
    color: #64748b !important;
    fill: #64748b !important;
}

body.theme-lecturer .edulink-footer-nav {
    border-top: 1px solid #f1f5f9 !important;
    padding: 10px 10px 20px 10px !important;
}

body.theme-lecturer .topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Lecturer Action Buttons in Table */
.btn-lecturer-attendance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb !important;
    background-color: #ffffff !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-lecturer-attendance:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.btn-lecturer-grades {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb !important;
    background-color: #eff6ff !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-lecturer-grades:hover {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Admin Dashboard Reference Design Theme & Quick Actions
   ========================================================================== */

.admin-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-dashboard-wrapper .quick-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.admin-dashboard-wrapper .quick-action-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.admin-dashboard-wrapper .quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #1d4ed8;
    background: #eff6ff;
    transition: all 0.2s ease;
}

.admin-dashboard-wrapper .quick-action-card:hover .quick-action-icon {
    background: #dbeafe;
    transform: scale(1.05);
}

.admin-dashboard-wrapper .quick-action-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.3;
}

/* ==========================================================================
   STICKY MATRIX & BROADSHEET USABILITY ENHANCEMENTS
   ========================================================================== */
.table-sticky-matrix {
    border-collapse: separate;
    border-spacing: 0;
}

.table-sticky-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-sticky-matrix thead tr:first-child th {
    top: 0;
}

.table-sticky-matrix thead tr:nth-child(2) th {
    top: 36px;
}

.table-sticky-matrix .sticky-col-sn {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #ffffff;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08);
}

.table-sticky-matrix .sticky-col-matric {
    position: sticky;
    left: 45px;
    z-index: 5;
    background-color: #ffffff;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08);
}

.table-sticky-matrix .sticky-col-name {
    position: sticky;
    left: 175px;
    z-index: 5;
    background-color: #ffffff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
}

.table-sticky-matrix thead th.sticky-col-sn {
    z-index: 15;
    background-color: #082542 !important;
    color: #ffffff;
}

.table-sticky-matrix thead th.sticky-col-matric {
    z-index: 15;
    background-color: #082542 !important;
    color: #ffffff;
}

.table-sticky-matrix thead th.sticky-col-name {
    z-index: 15;
    background-color: #082542 !important;
    color: #ffffff;
}

.table-sticky-matrix-light thead th.sticky-col-sn,
.table-sticky-matrix-light thead th.sticky-col-matric,
.table-sticky-matrix-light thead th.sticky-col-name {
    background-color: #f8fafc !important;
    color: #0f172a;
}

.table-sticky-matrix tbody tr:hover td.sticky-col-sn,
.table-sticky-matrix tbody tr:hover td.sticky-col-matric,
.table-sticky-matrix tbody tr:hover td.sticky-col-name {
    background-color: #f1f5f9;
}

/* ==========================================================================
   PRE-DEPLOYMENT UX FOUNDATION
   Clear page context, grouped navigation, accessible mobile drawer and tables.
   ========================================================================== */
.portal-skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #082542;
    color: #ffffff;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform .15s ease;
}

.portal-skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.edulink-nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 14px;
}

.sidebar-nav-group + .sidebar-nav-group {
    margin-top: 7px;
}

.sidebar-nav-group .sidebar-nav-section-label {
    padding: 10px 12px 4px;
    color: #748198;
    font-size: .64rem;
    letter-spacing: .09em;
}

.sidebar-nav-group .edulink-nav-item {
    min-height: 42px;
}

.portal-shell.sidebar-collapsed .sidebar-nav-group + .sidebar-nav-group {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}

.sidebar-mobile-close,
.sidebar-backdrop {
    display: none;
}

.portal-page-context {
    min-width: 0;
}

.portal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
}

.portal-breadcrumb a {
    color: #64748b;
}

.portal-breadcrumb a:hover {
    color: #1d4ed8;
}

.portal-page-title {
    overflow: hidden;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-page-meta {
    color: #64748b;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.15;
}

.topbar-primary-action {
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #1d4ed8;
    border-radius: 11px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(29, 78, 216, .18);
}

.topbar-primary-action:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-primary-action .nav-icon,
.topbar-primary-action svg {
    width: 17px;
    height: 17px;
}

.topbar-user-copy {
    flex-direction: column;
    min-width: 0;
    max-width: 180px;
    line-height: 1.15;
}

.topbar-user-name,
.topbar-user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-name {
    color: #0f172a;
    font-size: .82rem;
    font-weight: 700;
}

.topbar-user-role {
    color: #64748b;
    font-size: .66rem;
    font-weight: 500;
}

.btn-mobile-menu {
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #ffffff;
    color: #24364b;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
}

.table-responsive[tabindex="0"]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 3px;
    border-radius: 10px;
}

.table-scroll-hint {
    display: none;
    margin: 0 0 7px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
}

@media (max-width: 1040px) {
    body.sidebar-drawer-open {
        overflow: hidden;
    }

    .sidebar.edulink-sidebar {
        z-index: 1050;
        width: min(88vw, 320px);
        box-shadow: 16px 0 45px rgba(15, 23, 42, .22) !important;
    }

    .sidebar-mobile-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid #dbe4ee;
        border-radius: 10px;
        background: #ffffff;
        color: #334155;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    body.sidebar-drawer-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .fce-sidebar-brand {
        padding-right: 60px;
    }

    .btn-mobile-menu {
        display: inline-flex;
    }

    .btn-sidebar-collapse {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        min-height: 64px;
        padding: 10px 14px;
        gap: 10px;
    }

    .topbar > :first-child {
        min-width: 0;
    }

    .portal-breadcrumb,
    .portal-page-meta,
    .session-pill,
    .topbar-user-pill {
        display: none !important;
    }

    .portal-page-title {
        max-width: 42vw;
        font-size: .9rem;
    }

    .topbar-actions {
        gap: 7px;
    }

    .page-content {
        padding: 22px 16px 52px;
    }

    .table-scroll-hint {
        display: block;
    }

    .table-responsive {
        scrollbar-width: thin;
        box-shadow: inset -16px 0 16px -18px rgba(15, 23, 42, .55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar.edulink-sidebar,
    .sidebar-backdrop,
    .portal-skip-link,
    .topbar-primary-action {
        transition: none !important;
    }
}




