/* UWA MarkBook Design System */
:root {
    --uwa-navy: #002D62;
    --uwa-navy-dark: #001A3A;
    --uwa-blue-accent: #004B87;
    --uwa-gold: #EAA700;
    --uwa-gold-hover: #D49600;
    --bg-main: #0B132B;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-card-dark: #1C2541;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --border-light: #E2E8F0;
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --success-green: #10B981;
    --warning-amber: #F59E0B;
    --error-red: #EF4444;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 45, 98, 0.12), 0 8px 10px -6px rgba(0, 45, 98, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(0, 45, 98, 0.25);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #F1F5F9;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 45, 98, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(234, 167, 0, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ==============================================================================
   Official UWA Top Toolbar (Matched to uwa.edu.au)
   ============================================================================== */
.navbar {
    background-color: #28348B; /* Official UWA Blue matching logo */
    color: #FFFFFF;
    min-height: 76px;
    width: 100%;
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

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

/* Official UWA Brand & Logo */
.uwa-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #FFFFFF;
    height: 100%;
}

.uwa-navbar-logo {
    height: 50px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.uwa-portal-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 4px;
}

.uwa-portal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

/* Nav Actions & Links */
.uwa-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: 100%;
}

.uwa-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: 100%;
}

.uwa-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    height: 100%;
    padding: 0 4px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.uwa-nav-item:hover {
    color: #FFFFFF;
    opacity: 0.85;
}

.chevron-down {
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.uwa-dropdown-trigger[aria-expanded="true"] .chevron-down {
    transform: rotate(180deg);
}

/* ==============================================================================
   Official UWA Mega-Menu Dropdown Panel (Matched to uwa.edu.au screenshot)
   ============================================================================== */
.uwa-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.uwa-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    color: #1E293B;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border-bottom: 2px solid #E2E8F0;
    z-index: 1050;
    animation: slideIn 0.2s ease-out;
    box-sizing: border-box;
}

.mega-menu-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.75rem 2rem 3rem;
    position: relative;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 280px 1.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Close Button (top-right 'x') */
.mega-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.mega-close-btn:hover {
    color: #0F172A;
    background: #F1F5F9;
}

/* Left Featured Column */
.mega-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mega-col-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.65rem;
    font-weight: 800;
    color: #002D62;
    text-decoration: none;
    font-family: 'Outfit', 'Inter', sans-serif;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    transition: opacity 0.15s;
}

.mega-col-heading:hover {
    opacity: 0.85;
    color: #002D62;
}

.mega-heading-bar {
    width: 5px;
    height: 1.9rem;
    background-color: #002D62;
    border-radius: 2px;
}

.mega-btn-visit {
    background-color: #002D62;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 32px;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 45, 98, 0.2);
}

.mega-btn-visit:hover {
    background-color: #001A40;
    color: #FFFFFF;
}

/* Center & Right Columns */
.mega-category-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.mega-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-unit-link {
    display: inline-block;
    color: #1E293B;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 4px 0;
    line-height: 1.4;
    vertical-align: baseline;
}

.mega-unit-link:hover {
    color: #002D62;
    text-decoration: underline;
}

.mega-code {
    color: #64748B;
    font-weight: 600;
    font-size: 1rem;
    vertical-align: baseline;
}

.mega-info-text {
    font-size: 0.92rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* User Profile Badge */
.uwa-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uwa-user-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #FFFFFF;
}

.uwa-user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #50B5E0;
    box-shadow: 0 0 8px #50B5E0;
}

.uwa-user-name {
    font-weight: 600;
}

.uwa-user-id {
    opacity: 0.8;
    font-size: 0.8rem;
}

.uwa-btn-signout {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.uwa-btn-signout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.4);
}

.uwa-btn-signin {
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.uwa-btn-signin:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}


/* Flash Toasts */
.toast-container {
    max-width: 1240px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.alert {
    position: relative;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.alert > svg {
    flex-shrink: 0;
}

.alert span {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    word-break: break-word;
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm, 6px);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    color: currentColor;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease, transform 0.2s ease;
    transform: scale(0.85);
}

.alert:hover .alert-close,
.alert:focus-within .alert-close {
    opacity: 0.7;
    visibility: visible;
    transform: scale(1);
}

.alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}

.alert-close:active {
    transform: scale(0.9);
}

.alert-close svg {
    pointer-events: none;
}

.alert.alert-fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    pointer-events: none;
}

.alert-info {
    background-color: #EFF6FF;
    border-left: 4px solid var(--primary-blue);
    color: #1E40AF;
}

.alert-success {
    background-color: #ECFDF5;
    border-left: 4px solid var(--success-green);
    color: #065F46;
}

.alert-error {
    background-color: #FEF2F2;
    border-left: 4px solid var(--error-red);
    color: #991B1B;
}

/* Main Layout Container */
.main-content {
    flex: 1;
    max-width: 1240px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Auth Sign-In Page Campus Background */
body.auth-page-bg,
body:has(.auth-wrapper) {
    background: url('/static/img/uwa_campus.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.auth-page-bg .main-content,
body:has(.auth-wrapper) .main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 76px - 60px);
}

/* Auth Cards & Layout */
.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

body.auth-page-bg .card,
body:has(.auth-wrapper) .card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 50px rgba(0, 15, 45, 0.35);
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.card-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--uwa-navy);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-unit-text {
    font-size: 0.88rem;
    color: #475569;
    margin-top: 8px;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background-color: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--uwa-navy);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.12);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Domain Badge / Indicator */
.domain-indicator {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.domain-pill {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #E2E8F0;
    color: var(--text-muted);
    font-weight: 600;
}

.domain-pill.valid {
    background: #DCFCE7;
    color: #15803D;
}

/* OTP Digits Grid */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-digit {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background-color: white;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--uwa-gold);
    box-shadow: 0 0 0 3px rgba(234, 167, 0, 0.25);
}

.otp-demo-box {
    background: #FFFBEB;
    border: 1px dashed var(--uwa-gold);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: #92400E;
}

.otp-demo-code {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--uwa-navy);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 11px 20px;
    background-color: var(--uwa-navy);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--uwa-navy-dark);
}

.btn-gold {
    background: var(--uwa-navy);
    color: white;
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--uwa-navy-dark);
    color: white;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--uwa-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--uwa-navy);
}

.profile-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.88rem;
}

.detail-row:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-weight: 600;
    color: var(--text-main);
}

/* Drag and Drop Uploader */
.upload-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #F8FAFC;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--uwa-navy);
    background-color: #EFF6FF;
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(0, 45, 98, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uwa-navy);
}

.dropzone h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--uwa-navy);
    margin-bottom: 4px;
}

.dropzone p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.file-input-hidden {
    display: none;
}

.file-selected-name {
    margin-top: 10px;
    font-weight: 600;
    color: var(--uwa-navy);
    font-size: 0.9rem;
}

/* Grade Table */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--uwa-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.table th {
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-main);
}

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

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-graded {
    background-color: #DCFCE7;
    color: #166534;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-reviewed {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-current {
    background-color: #E0E7FF;
    color: #3730A3;
}

.badge-sub-pill {
    display: inline-block;
    font-size: 0.68rem;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}

.selectable-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.selectable-row:hover {
    background-color: #F8FAFC !important;
}

.selectable-row.active {
    background-color: #EFF6FF !important;
}

.selectable-row.active td:first-child {
    border-left: 4px solid #002D62;
}

.table-footer-hint {
    padding: 8px 16px;
    font-size: 0.76rem;
    color: #64748B;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    text-align: center;
    font-style: italic;
}

/* Project Description & Submission Card Styles */
.project-header {
    margin-bottom: 1.25rem;
}

.project-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.project-unit-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #002D62;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 4px;
}

.project-weight-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #E2E8F0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 4px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #002D62;
    margin: 0;
}

.project-desc-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

.desc-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #002D62;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.current-submission-card {
    background: #F0FDF4;
    border: 1.5px solid #BBF7D0;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.submission-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #166534;
    font-size: 0.92rem;
}

.submission-card-header code {
    background: #DCFCE7;
    color: #14532D;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.submission-notice {
    font-size: 0.85rem;
    color: #15803D;
    margin-top: 6px;
    line-height: 1.45;
}

/* Midsem Exam Record & Marking Rubric Styles */
.exam-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
    font-size: 0.85rem;
    background: #FFFFFF;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.exam-breakdown-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.exam-question-row {
    border-bottom: 1px solid #F1F5F9;
    padding: 12px 0;
}

.exam-question-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exam-q-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #002D62;
}

.exam-mark-pill {
    font-size: 0.78rem;
    font-weight: 700;
    background: #DCFCE7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.exam-q-feedback {
    font-size: 0.84rem;
    color: #475569;
    margin: 6px 0 0 0;
    line-height: 1.45;
}

.exam-download-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

/* Academic Feedback Report Display (Clean University Style) */
.feedback-report-card,
.ai-review-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.feedback-report-header,
.ai-review-header {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.feedback-report-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    margin-bottom: 4px;
}

.feedback-report-header h3,
.ai-review-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #002D62;
    margin: 0;
    font-weight: 700;
}

.feedback-report-sub {
    font-size: 0.82rem;
    color: #64748B;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.report-file-badge {
    font-size: 0.76rem;
    background: #FFFFFF;
    color: #334155;
    border: 1px solid #CBD5E1;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.feedback-report-body,
.ai-review-body {
    padding: 20px;
    font-size: 0.92rem;
    color: #1E293B;
    line-height: 1.6;
    white-space: pre-wrap;
    background: #FFFFFF;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* Footer */
footer {
    margin-top: auto;
    background: var(--uwa-navy-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   Nickname Display and Inline Editor Styles
   ============================================================================== */
.nickname-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nickname-title-row h3 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.btn-edit-icon {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-edit-icon:hover {
    color: var(--uwa-navy);
    background: rgba(0, 45, 98, 0.08);
}

.nickname-edit-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.nickname-input {
    padding: 0.3rem 0.55rem;
    font-size: 0.88rem;
    border: 1.5px solid var(--uwa-navy);
    border-radius: var(--radius-sm);
    max-width: 140px;
    font-family: inherit;
}

.nickname-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 45, 98, 0.15);
}

.btn-save-sm {
    background: var(--uwa-navy);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-save-sm:hover {
    background: var(--uwa-navy-dark, #001A3A);
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.25);
}

.btn-cancel-sm {
    background: none;
    border: 1px solid #CBD5E1;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.45rem;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1;
}

.btn-cancel-sm:hover {
    background: #F1F5F9;
    color: var(--text-dark);
}

/* Responsive Navbar Media Queries */
@media (max-width: 900px) {
    .uwa-nav-links {
        display: none;
    }
    .uwa-portal-title {
        display: none;
    }
    .uwa-portal-divider {
        display: none;
    }
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .mega-menu-inner {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 540px) {
    .navbar {
        padding: 0 1rem;
        height: 66px;
    }
    .uwa-navbar-logo {
        height: 38px;
        max-width: 135px;
    }
}

/* ==============================================================================
   Unit Coordinator Cohort MarkBook & Moderation Console Styles
   ============================================================================== */
.staff-avatar {
    background: linear-gradient(135deg, #002D62 0%, #1E40AF 100%) !important;
    border: 2px solid #EAA700;
}

/* Coordinator Left Navigation Items */
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    background-color: #F8FAFC;
    border-color: #E2E8F0;
}

.admin-nav-item.active {
    background-color: #EFF6FF !important;
    border-color: #BFDBFE !important;
    border-left: 4px solid var(--uwa-navy) !important;
}

.admin-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uwa-navy);
    flex-shrink: 0;
}

.admin-nav-item.active .admin-nav-icon {
    background: var(--uwa-navy);
    color: #FFFFFF;
}

.admin-nav-content {
    flex: 1;
    min-width: 0;
}

.admin-nav-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--uwa-navy);
}

.admin-nav-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cohort Stats Grid */
.cohort-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .cohort-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cohort-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.08);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uwa-blue-bg { background: #EFF6FF; color: #1D4ED8; }
.uwa-gold-bg { background: #FFFBEB; color: #D97706; }
.green-bg    { background: #F0FDF4; color: #16A34A; }
.purple-bg   { background: #FAF5FF; color: #9333EA; }

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--uwa-navy);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

/* Filter & Search Toolbar */
.cohort-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 16px 0;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 1rem;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 440px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}

.cohort-search-input {
    width: 100%;
    padding: 9px 36px 9px 38px;
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.86rem;
    font-family: var(--font-body);
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.cohort-search-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--uwa-navy);
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #334155;
}

.filter-pills-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 18px;
    border: 1.5px solid var(--border-light);
    background: #FFFFFF;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background: #F8FAFC;
    color: var(--uwa-navy);
    border-color: #CBD5E1;
}

.filter-btn.active {
    background: var(--uwa-navy);
    color: #FFFFFF;
    border-color: var(--uwa-navy);
}

/* Scrollable Table Wrapper */
.table-scroll-wrapper {
    max-height: 540px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    position: relative;
    max-width: 100%;
}

.cohort-table thead th {
    position: sticky;
    top: 0;
    background: #F8FAFC;
    z-index: 10;
    box-shadow: 0 1px 0 var(--border-light);
}

.student-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-id-pill {
    font-family: monospace;
    font-size: 0.74rem;
    color: #475569;
    background: #F1F5F9;
    padding: 1px 5px;
    border-radius: 4px;
    width: fit-content;
}

.student-email-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.score-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.score-graded {
    background: #DCFCE7;
    color: #166534;
}

.score-pending {
    background: #FEF3C7;
    color: #92400E;
}

.score-muted {
    background: #F1F5F9;
    color: #94A3B8;
}

.total-score-text {
    font-size: 0.92rem;
    color: var(--uwa-navy);
}

.btn-edit-mark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    color: var(--uwa-navy);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit-mark:hover {
    background: var(--uwa-navy);
    color: #FFFFFF;
    border-color: var(--uwa-navy);
    box-shadow: 0 2px 6px rgba(0, 45, 98, 0.15);
}

/* Modal Popup Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
    animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 3rem);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: #002D62;
    color: #FFFFFF;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #EAA700;
    font-weight: 700;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 2px 0 0 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.modal-close-btn:hover {
    color: #FFFFFF;
}

.modal-body {
    padding: 1.5rem;
    max-height: 72vh;
    overflow-y: auto;
}

.student-target-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.student-target-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--uwa-navy);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.student-target-name {
    font-weight: 700;
    color: var(--uwa-navy);
    font-size: 0.98rem;
}

.student-target-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix .form-control {
    padding-right: 32px;
}

.input-suffix {
    position: absolute;
    right: 12px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.weighted-preview-box {
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.weighted-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E40AF;
}

.weighted-score {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1E3A8A;
    font-family: var(--font-heading);
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 10px 18px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancel:hover {
    background: #F1F5F9;
    color: #1E293B;
}

.btn-save-mark {
    padding: 10px 22px;
    background: var(--uwa-navy);
    border: none;
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 45, 98, 0.2);
}

.btn-save-mark:hover {
    background: var(--uwa-navy-dark);
}

/* ==========================================================================
   SUBMISSIONS & AI QUEUE ENHANCEMENTS
   ========================================================================== */

.empty-submissions-box {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.empty-icon {
    width: 60px;
    height: 60px;
    background: #EFF6FF;
    color: var(--uwa-navy);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.submission-card-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submission-card-item:hover {
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.08);
}

.submission-card-top {
    padding: 12px 16px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-student-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-id-badge {
    background: #002D62;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.sub-student-name {
    font-size: 0.95rem;
    color: #0F172A;
}

.sub-time {
    font-size: 0.78rem;
    color: #64748B;
}

.sub-actions-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sub-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-sub-download {
    background: #EFF6FF;
    color: #002D62;
    border-color: #BFDBFE;
}

.btn-sub-download:hover {
    background: #DBEAFE;
    color: #001A3D;
}

.btn-sub-preview {
    background: #F1F5F9;
    color: #334155;
    border-color: #CBD5E1;
}

.btn-sub-preview:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.btn-sub-grade {
    background: var(--uwa-navy);
    color: #FFFFFF;
}

.btn-sub-grade:hover {
    background: var(--uwa-navy-dark);
}

.sub-ai-output-box {
    padding: 14px 16px;
    background: #FFFFFF;
}

.sub-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-ai-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #002D62;
}

.sub-filename-tag {
    font-size: 0.8rem;
    color: #64748B;
}

.sub-ai-content {
    background: #F8FAFC;
    border-left: 3.5px solid #002D62;
    border-radius: 0 4px 4px 0;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1E293B;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Document Inspection Modal Content */
.preview-doc-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.preview-ai-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 0.88rem;
    color: #1E3A8A;
    line-height: 1.55;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Final Exam Draft Styles */
.exam-solution-box {
    margin-top: 8px;
    background: #FEF2F2;
    border-left: 3.5px solid #DC2626;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #991B1B;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.exam-solution-box.hidden-solution {
    display: none !important;
}

.exam-solution-label {
    font-weight: 700;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-options-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exam-option-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.86rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.exam-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #002D62;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==============================================================================
   Educational & Vulnerability Disclaimer Modal (CITS3006 Penetration Testing)
   ============================================================================== */
.disclaimer-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
    box-sizing: border-box;
    animation: fadeIn 0.25s ease-out;
}

.disclaimer-modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 2.5rem);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.disclaimer-header {
    background: #002D62;
    color: #FFFFFF;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px solid #EAA700;
}

.disclaimer-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(234, 167, 0, 0.18);
    border: 1.5px solid #EAA700;
    color: #EAA700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-header-text {
    flex: 1;
}

.disclaimer-unit-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #EAA700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.disclaimer-header-text h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0;
}

.disclaimer-sub {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 3px;
}

.disclaimer-progress-bar-container {
    height: 4px;
    background: #E2E8F0;
    width: 100%;
    overflow: hidden;
}

.disclaimer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #EAA700, #2563EB);
    transition: width 0.15s ease-out;
}

.disclaimer-scroll-box {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.65;
    background: #FFFFFF;
}

.disclaimer-callout {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
}

.callout-danger {
    background: #FEF2F2;
    border-left: 4px solid #DC2626;
    border-right: 1px solid #FEE2E2;
    border-top: 1px solid #FEE2E2;
    border-bottom: 1px solid #FEE2E2;
}

.callout-danger .callout-title {
    color: #991B1B;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.callout-danger p {
    color: #7F1D1D;
    font-size: 0.84rem;
    margin: 0;
    line-height: 1.55;
}

.callout-warning {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    border-right: 1px solid #FEF3C7;
    border-top: 1px solid #FEF3C7;
    border-bottom: 1px solid #FEF3C7;
}

.callout-warning .callout-title {
    color: #92400E;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.callout-warning p {
    color: #78350F;
    font-size: 0.84rem;
    margin: 0;
    line-height: 1.55;
}

.disclaimer-section {
    margin-bottom: 1.25rem;
}

.disclaimer-section h3 {
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    color: #002D62;
    margin-bottom: 6px;
}

.disclaimer-section p {
    margin-bottom: 8px;
    color: #334155;
}

.disclaimer-section ul,
.disclaimer-section ol {
    margin-left: 1.25rem;
    margin-bottom: 8px;
}

.disclaimer-section li {
    margin-bottom: 4px;
    color: #475569;
}

.disclaimer-scroll-end {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #166534;
    margin-top: 1.25rem;
}

.disclaimer-footer {
    padding: 1.1rem 1.75rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.disclaimer-scroll-hint {
    font-size: 0.82rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.disclaimer-scroll-hint.completed {
    color: #16A34A;
    font-weight: 600;
}

.disclaimer-agree-btn {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.disclaimer-agree-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #94A3B8 !important;
    border-color: #94A3B8 !important;
    box-shadow: none !important;
    transform: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}