body {
	margin: 0;
	    font-family: 'Segoe UI', sans-serif;
	    background: url('https://i.ibb.co/RkTphg1q/2025-10-27-ous-academic-building-finally-unveiled-4.jpg') no-repeat center center fixed;
	    background-size: cover;
	    min-height: 100vh;
	    overflow-y: auto;  
}

#login-modal {
    display: none; /* Default hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 1000;
    background: white; /* Para hindi transparent yung box */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-direction: column;
    min-width: 350px;
}

#login-modal.active {
    display: flex;
}
/* HEADER */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255,255,255,0.9);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pup-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.school-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.main-name {
    font-weight: bold;
    font-size: 14px;
    color: #800000;
}

.sub-name {
    font-size: 12px;
    color: #000000;
}

/* LOGIN BUTTON HEADER */
.nav-login-btn {
    background-color: #800000;
    color: white;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-login-btn:hover {
    background-color: #a00000;
    transform: scale(1.06);
}

.welcome-text {
    text-align: center;
    color: white;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    margin-top: 0;
    margin-bottom: 10%;

}

/* log-in MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    
 
    display: flex;
    justify-content: center; 
    align-items: center;     
    z-index: 999;
}

.modal-content {
    width: 85%;
    height: 95vh;
    background: white;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    
    /* Add this just in case there's an inherited margin-left */
    margin: auto; 
}
.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGIN BOX */
.login-box {
    background: white;
    padding: 28px;
    border-radius: 16px;
    width: 320px;
    text-align: left;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.login-header h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

/* INPUTS */
.login-box input {
    width: 91%;
    height: 44px;
    padding: 0 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* LOGIN BUTTON INSIDE MODAL */
.login-box button {
    width: 100%;
    height: 44px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer; /* 🔥 THIS FIXES POINTER */
}

.login-box button:not(.cancel-btn) {
    background: #800000;
    color: white;
    font-weight: bold;
}

/* FORGOT PASSWORD */
.forgot {
    font-size: 11px;
    color: #666;
    text-align: left;
    margin-top: 4px;
    cursor: pointer;
}

/* CANCEL BUTTON */
.cancel-btn {
    background: transparent;
    color: #777;
    font-size: 12px;
    margin-top: 8px;
}

/* CURRICULUM */
.curriculum-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    
}

/* TIMEOUT SCREEN */
.timeout-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* HORIZONTAL LAYOUT */
.timeout-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    color: white;
    margin-top: none;
}

/* SPINNER */
.circle-loader {
    width: 60px;
    height: 60px;
    border: 4px dashed #800000;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* TEXT */
.timeout-text {
    display: flex;
    flex-direction: column;
}

.timeout-text h2 {
    margin: 0;
    font-size: 22px;
    color: white;
}

#countdown {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 5px;
}

/* ANIMATION */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.curriculum-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: slideIn 0.8s ease;
}

.card-box {
    width: 220px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.card-box img {
    width: 100%;
    border-radius: 10px;
}

.card-box:hover {
    transform: scale(1.1);
}

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

#moving-title {
    text-align: center;
    color: white;
    margin-top: 80px;
}

#welcome-screen {
    z-index: 1;
    
}

.top-nav {
    position: relative;
    z-index: 10;
}

.modal {
    z-index: 1000;
    
}

.logout-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.logout-item {
    margin-top: 100%;
    margin-bottom: 10px;
}


.logout-btn {
    background: #800000;
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

.profile-card {
    width: 400px;
    margin: 60px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.photo-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #800000;
    border-radius: 10px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #800000;
    font-weight: bold;
}

.profile-info {
    text-align: left;
    margin-top: 20px;
    line-height: 1.8;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.update-btn {
    background: #800000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.back-btn {
    background: #ccc;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

#user-profile.staff-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.staff-profile-card {
    position: relative;
    width: min(420px, 100%);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 28px 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(128, 0, 0, 0.12);
}

.staff-profile-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.staff-profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.staff-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #800000, #b91c1c);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-profile-sub {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.staff-profile-dl {
    margin: 0 0 14px;
    display: grid;
    gap: 10px;
}

.staff-profile-dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 8px;
}

.staff-profile-dl dt {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.staff-profile-dl dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #800000;
    color: #fff;
    font-size: 0.82rem;
}

.staff-profile-hint {
    margin: 0 0 16px;
}

.staff-profile-actions {
    display: flex;
    justify-content: flex-end;
}

.staff-profile-back {
    background: #800000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.staff-profile-back:hover {
    background: #a00000;
}

.sidebar {
    width: 220px;
    flex: 0 0 220px;
    min-height: 100vh;
    align-self: stretch;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #800000, #a00000);
    color: white;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    text-align: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* MENU STRUCTURE */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
    min-height: 0;
}

/* MENU ITEMS */
.sidebar-menu li {
    padding: 10px 12px;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar-menu li:hover {
    background: rgb(255, 27, 27);
}

/* LOGOUT AT BOTTOM */
.logout-item {
    margin-top: auto;
}


/* ><><><><><><><><><><><><SHS DASHBOARD LAYOUT FIXED><><><><><><><><><><><>< */

/* REMOVE BACKGROUND IMAGE */
body.dashboard-active {
    background: white !important;
}

/* MAIN LAYOUT */
.dashboard-layout {
    display: flex;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
    background: rgb(250, 250, 250);
    box-sizing: border-box;
}

.dashboard-layout.sidebar-collapsed .right-panel {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.dashboard-layout.sidebar-collapsed .main-content {
    width: 100%;
    max-width: 100%;
}

.dashboard-layout.sidebar-collapsed .student-table {
    font-size: 11px;
}

.dashboard-layout.sidebar-collapsed .student-table th,
.dashboard-layout.sidebar-collapsed .student-table td {
    padding: 4px 5px;
}

#shs-section {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* RIGHT PANEL */
.right-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Sidebar burger + collapse */
.sidebar-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border: none;
    border-radius: 8px;
    background: #800000;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-burger:hover {
    background: #a00000;
}

.dashboard-layout {
    transition: grid-template-columns 0.25s ease;
}

.dashboard-layout.sidebar-collapsed .sidebar {
    width: 0;
    min-width: 0;
    flex: 0 0 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .sidebar-burger {
        display: inline-flex;
    }

    .dashboard-layout .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1500;
        height: 100vh;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .dashboard-layout.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        width: 220px;
        flex: 0 0 220px;
        padding: 20px 14px;
    }

    .dashboard-layout:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* TOP HEADER */
.top-header {
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    gap: 12px;
    background: linear-gradient(120deg, #630000, #f73838);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.staff-deadline-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 100%;
}

.staff-deadline-label {
    font-size: 13px;
    font-weight: 700;
    color: #7a0d0d;
}

.staff-deadline-countdown {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.top-header h1 {
    color: white;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    margin: 0;
    flex: 1;
    padding: 2px 2px;
    box-shadow: 0 5px 15px rgb(37, 37, 37);
    border-radius: 999px;
    
}

/* MAIN CONTENT (FIXED) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0; 
}

/* VIEW SECTION (VERY IMPORTANT FIX) */
.view-section {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Head — review application dashboard */
.review-dash {
    padding: 16px 20px 28px;
    overflow: auto;
}

.review-dash-lead {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    max-width: 900px;
}

.review-dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    max-width: 100%;
}

.review-dash-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-dash-card--amber {
    border-left: 4px solid #f59e0b;
}

.review-dash-card--green {
    border-left: 4px solid #16a34a;
}

.review-dash-card--rose {
    border-left: 4px solid #be123c;
}

.review-dash-card-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-dash-card-num {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.review-dash-insights {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    max-width: 100%;
}

.review-dash-insights-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #333;
}

.review-dash-insights-list {
    margin: 0;
    padding-left: 1.2em;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
}

.review-table-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #4a1515;
}

.review-table-wrap {
    max-width: 100%;
}

.admission-review-notice {
    margin: 8px 0 12px 0;
    padding: 10px 14px;
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    font-size: 14px;
    color: #0d47a1;
}

.review-decision-bar {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.review-decision-hint {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #444;
}

.review-decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-approve-btn {
    background: #15803d;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.review-return-btn {
    background: #fff;
    color: #800000;
    border: 2px solid #800000;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.review-return-btn:hover {
    background: #fff5f5;
}

.review-reject-btn {
    background: #991b1b;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.review-reopen-btn {
    background: #ef6c00;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.review-reopen-btn:hover { background: #c25700; }

/* Deadline-settings centered layout (matches Home/FAQ visual rhythm) */
.deadline-centered-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 64px;
    background: #f7f4f4;
    min-height: 60vh;
}
.deadline-centered-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    padding: 28px 28px 24px;
}
.deadline-section-title {
    text-align: center;
    color: #8B0000;
    margin: 0 0 8px;
    font-size: 1.6rem;
}
.deadline-centered-card .deadline-help {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 18px;
}
.deadline-centered-card .deadline-help a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}
.deadline-centered-card .deadline-help a:hover { text-decoration: underline; }
.deadline-centered-card .deadline-setter {
    background: #fff8f8;
    border: 1px solid #f0d4d4;
    border-radius: 10px;
    padding: 18px;
}
.deadline-centered-card .deadline-setter-inner { width: 100%; }
.deadline-centered-card .deadline-panel-title {
    color: #8B0000;
    font-size: 1.05rem;
    margin: 0 0 14px;
    text-align: center;
}
.deadline-centered-card .deadline-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    gap: 4px;
}
.deadline-centered-card .deadline-controls {
    justify-content: center;
}
.deadline-centered-card .deadline-reminder-panel {
    margin-top: 16px;
    border-top: 1px dashed #f0d4d4;
    padding-top: 14px;
}
.deadline-centered-card .deadline-reminder-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
}

/* General Settings page */
.settings-card { max-width: 820px; }
.settings-section {
    border-top: 1px solid #f1d4d4;
    padding: 18px 0 8px;
}
.settings-section:first-of-type { border-top: none; padding-top: 8px; }
.settings-section-title {
    color: #8B0000;
    font-size: 0.95rem;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.settings-subtitle {
    color: #8B0000;
    font-size: 0.9rem;
    margin: 16px 0 8px;
}
.db-backup-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #f1d4d4;
    border-radius: 8px;
    background: #fffaf8;
}
.db-backup-actions { margin-bottom: 12px; }
.db-restore-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
}
.db-restore-form input[type="file"] { font-size: 0.9rem; }
.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.settings-row--inline { margin-bottom: 6px; }
.settings-row--actions {
    justify-content: flex-end;
    margin-top: 18px;
    border-top: 1px solid #f1d4d4;
    padding-top: 14px;
}
.settings-label {
    min-width: 200px;
    font-weight: 600;
    color: #444;
}
.settings-input {
    flex: 1;
    min-width: 180px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}
.settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #444;
    font-size: 0.95rem;
}
.settings-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.settings-link-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #f0d4d4;
    border-radius: 8px;
    background: #fff8f8;
    text-decoration: none;
    color: #2c2c2c;
    transition: background 0.15s, transform 0.15s;
}
.settings-link-card:hover { background: #fff; transform: translateY(-1px); border-color: #8B0000; }
.settings-link-card strong { display: block; color: #8B0000; font-size: 0.95rem; }
.settings-link-card span { display: block; font-size: 0.82rem; color: #777; }
.settings-link-icon {
    font-size: 1.6rem;
    color: #8B0000;
    width: 32px;
    text-align: center;
}
.settings-saved-flash {
    margin-right: auto;
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}
.settings-saved-flash.visible { opacity: 1; }

/* =====================================================================
 * DARK MODE
 *
 * Palette anchored on three swatches:
 *   #16181d   page background (very dark, near-black, slight blue tint)
 *   #21242b   surface (cards, modals, sidebar) — 1 step lighter
 *   #2c3038   raised surface (table rows, inputs) — 2 steps lighter
 *   #ECEDEE   body text (off-white)
 *   #c8caceaf secondary text
 *   #ff9a9a   accent text (link / brand red, lightened for WCAG AA on dark)
 *
 * Every readable-text rule uses these tokens. The previous dark-mode
 * fell back to off-the-shelf #1a1a1a / #e0e0e0 which produced ~3:1
 * contrast on red text and ~2:1 on muted text — failing AA. This rewrite
 * targets ~7:1 on body, ~4.5:1 on muted, and explicit overrides for
 * every coloured pill, badge, status chip in the UI.
 * ===================================================================== */
body.theme-dark {
    background: #16181d;
    color: #ecedee;
}
body.theme-dark a { color: #ff9a9a; }
body.theme-dark a:hover { color: #ffbcbc; }

/* Layout shells */
body.theme-dark .top-header,
body.theme-dark .sidebar,
body.theme-dark .right-panel,
body.theme-dark .view-section,
body.theme-dark .dashboard-hero {
    background: #1c1f25 !important;
    color: #ecedee !important;
}
body.theme-dark .sidebar-menu li { color: #ecedee; }
body.theme-dark .sidebar-menu li:hover { background: #2c3038; }
body.theme-dark .top-header,
body.theme-dark .top-header * { color: #ecedee; }

/* Cards and surfaces */
body.theme-dark .dash-card,
body.theme-dark .review-dash-card,
body.theme-dark .deadline-centered-card,
body.theme-dark .settings-card,
body.theme-dark .sys-card,
body.theme-dark .faq-card,
body.theme-dark .review-dash-insights,
body.theme-dark #modalBackdrop .modal-card,
body.theme-dark .modal-content,
body.theme-dark .rev-insight-modal-card {
    background: #21242b !important;
    color: #ecedee !important;
    border-color: #2c3038 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5) !important;
}

/* Section + card titles use a slightly lightened brand red so they're still
   identifiable as PUP red but readable on dark. #ffafaf hits ~5.5:1 on #21242b. */
body.theme-dark .section-title,
body.theme-dark .dash-card-header,
body.theme-dark .review-dash-card-label,
body.theme-dark .settings-section-title,
body.theme-dark .faq-section-title,
body.theme-dark .sys-section-title,
body.theme-dark .review-dash-insights-title { color: #ffafaf !important; }

/* Numbers stay bright white so they're loud */
body.theme-dark .dash-card-num,
body.theme-dark .review-dash-card-num,
body.theme-dark .audit-card-num { color: #ffffff !important; }

/* Tables */
body.theme-dark table {
    background: #21242b !important;
    color: #ecedee !important;
    border-color: #2c3038 !important;
}
body.theme-dark thead th {
    background: #5e1212 !important;
    color: #ffffff !important;
    border-color: #2c3038 !important;
}
body.theme-dark tbody tr { background: #21242b !important; }
body.theme-dark tbody tr:nth-child(even) { background: #262a32 !important; }
body.theme-dark tbody tr:hover { background: #2f343d !important; }
body.theme-dark td, body.theme-dark th { border-color: #2c3038 !important; color: #ecedee !important; }

/* Form inputs */
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .sys-input,
body.theme-dark .settings-input,
body.theme-dark .faq-search,
body.theme-dark .dash-toolbar-search,
body.theme-dark .dash-toolbar-filter-select {
    background: #2c3038 !important;
    color: #ecedee !important;
    border-color: #3a3f48 !important;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder { color: #98989f !important; }
body.theme-dark input:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus { border-color: #ff9a9a !important; outline-color: #ff9a9a !important; }

/* Muted / secondary text */
body.theme-dark .muted,
body.theme-dark .muted-cell,
body.theme-dark .small,
body.theme-dark .deadline-help,
body.theme-dark .sys-desc { color: #c8cace !important; }

/* Status pills + chips */
body.theme-dark .extra-doc-pill {
    background: #2c3038 !important;
    color: #ecedee !important;
    border-color: #3a3f48 !important;
}
body.theme-dark .head-queue-badge { color: #87b7ff !important; }
body.theme-dark .rev-insight {
    background: #262a32 !important;
    border-color: #2c3038 !important;
    color: #ecedee !important;
}
body.theme-dark .rev-insight:hover { background: #2f343d !important; }
body.theme-dark .rev-insight-cta { color: #98989f !important; }

/* Settings link cards */
body.theme-dark .settings-link-card {
    background: #2c3038 !important;
    border-color: #3a3f48 !important;
    color: #ecedee !important;
}
body.theme-dark .settings-link-card:hover { background: #353a44 !important; border-color: #ff9a9a !important; }
body.theme-dark .settings-link-card strong { color: #ffafaf !important; }
body.theme-dark .settings-link-card span { color: #c8cace !important; }
body.theme-dark .settings-link-icon { color: #ffafaf !important; }
body.theme-dark .settings-toggle { color: #ecedee !important; }

/* Buttons keep brand red but with a brighter shade for visibility */
body.theme-dark .dl-btn.set,
body.theme-dark .sys-btn,
body.theme-dark .review-approve-btn { background: #b71c1c !important; color: #ffffff !important; }
body.theme-dark .dl-btn.set:hover,
body.theme-dark .sys-btn:hover { background: #ff5252 !important; }
body.theme-dark .review-reject-btn { background: #c62828 !important; }
body.theme-dark .review-reopen-btn { background: #f57c00 !important; }
body.theme-dark .sys-btn-ghost {
    background: #21242b !important;
    color: #ffafaf !important;
    border-color: #ffafaf !important;
}

/* Flash + error messages */
body.theme-dark .sys-flash {
    background: #1b2e1c !important;
    color: #b9f6ca !important;
    border-color: #2e7d32 !important;
}
body.theme-dark .sys-flash.err {
    background: #321414 !important;
    color: #ffcdd2 !important;
    border-color: #c62828 !important;
}

/* FAQ entries */
body.theme-dark details.faq-entry {
    background: #262a32 !important;
    border-color: #2c3038 !important;
}
body.theme-dark details.faq-entry summary { color: #ecedee !important; }
body.theme-dark details.faq-entry .faq-answer { color: #c8cace !important; }
body.theme-dark details.faq-entry summary::after { color: #ffafaf !important; }

/* Sys-config type badges */
body.theme-dark .sys-type-badge { background: #2c3038 !important; color: #ecedee !important; border-color: #3a3f48 !important; }
body.theme-dark .sys-type-badge[data-type="boolean"] { background: #0d2540 !important; color: #82b1ff !important; }
body.theme-dark .sys-type-badge[data-type="integer"] { background: #3b2400 !important; color: #ffb74d !important; }
body.theme-dark .sys-type-badge[data-type="json"]    { background: #2a1238 !important; color: #ce93d8 !important; }

/* Modals + backdrops */
body.theme-dark .modal-backdrop,
body.theme-dark .sh-modal-backdrop,
body.theme-dark .rev-insight-modal { background: rgba(0,0,0,0.6) !important; }
body.theme-dark .rev-insight-table th { background: #21242b !important; color: #ffafaf !important; }
body.theme-dark .rev-insight-table td { color: #ecedee !important; }

/* Make labels readable */
body.theme-dark label,
body.theme-dark .dash-filter-label,
body.theme-dark .settings-label,
body.theme-dark .toolbar-section-label { color: #ecedee !important; }

/* Compact mode */
body.density-compact table th,
body.density-compact table td {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}
body.density-compact .dash-card,
body.density-compact .review-dash-card {
    padding: 8px 12px !important;
}
body.density-compact .section-title { font-size: 1.2rem !important; }

/* Disable animations */
body.anim-off *,
body.anim-off *::before,
body.anim-off *::after {
    transition: none !important;
    animation: none !important;
}

.send-review-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #800000;
    background: #fff;
    color: #800000;
    cursor: pointer;
    white-space: nowrap;
}

.send-review-btn:hover {
    background: #800000;
    color: #fff;
}

.send-review-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.head-queue-badge {
    font-size: 12px;
    color: #1565c0;
    font-weight: 600;
}

.extra-doc-pill {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

/* Notice that replaces the Approve/Reject/Return/Reopen buttons when the
   application is already in a final head-decided state AND the current user is
   not a sysadmin. Plain styling so it doesn't compete with the brand red — the
   message is informational, not a button. */
.review-decision-final-notice {
    margin: 0.75rem 0 0.25rem 0;
    padding: 0.6rem 0.9rem;
    border-left: 3px solid #b71c1c;
    background: #fff3f3;
    color: #7a1f1f;
    font-size: 0.9rem;
    line-height: 1.45;
    border-radius: 4px;
}
body.theme-dark .review-decision-final-notice {
    background: #2a1414;
    color: #ffb3b3;
    border-left-color: #ff8a8a;
}

/* The Extra docs column shows two pills ("F137: …" + "Affi: …") which need ~9rem
   side-by-side or they wrap awkwardly. Reserve a stable width so the rest of the
   table doesn't reshuffle when statuses change. */
.col-extra-docs {
    min-width: 11rem;
    width: 11rem;
    white-space: normal;
    line-height: 1.6;
}

/* Action-based insight chips on the Review dashboard */
.rev-insight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #8B0000;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.92rem;
}
.rev-insight:hover { background: #fff8f8; border-color: #8B0000; }
.rev-insight:focus { outline: 2px solid #8B0000; outline-offset: 2px; }
.rev-insight--ready  { border-left-color: #2e7d32; }
.rev-insight--warn   { border-left-color: #ef6c00; }
.rev-insight--special { border-left-color: #c62828; }
.rev-insight-icon {
    display: inline-flex;
    width: 22px; height: 22px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    color: #444;
    font-weight: 700;
}
.rev-insight--ready  .rev-insight-icon { background: #c8e6c9; color: #2e7d32; }
.rev-insight--warn   .rev-insight-icon { background: #ffe0b2; color: #ef6c00; }
.rev-insight--special .rev-insight-icon { background: #ffcdd2; color: #c62828; }
.rev-insight-cta { color: #888; font-size: 0.82rem; margin-left: auto; font-style: italic; }

.rev-insight-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.rev-insight-modal-card {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 760px;
    max-height: 80vh;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}
.rev-insight-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.rev-insight-modal-header h2 { margin: 0; font-size: 1.1rem; color: #8B0000; }
.rev-insight-modal-close {
    background: none; border: none; font-size: 1.6rem;
    cursor: pointer; color: #777; line-height: 1;
}
.rev-insight-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}
table.rev-insight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.rev-insight-table th, table.rev-insight-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
table.rev-insight-table th {
    background: #f8f4f4;
    color: #8B0000;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rev-insight-open-btn {
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}
.rev-insight-open-btn:hover { background: #5a0000; }


/* HERO (FULL COVER FIX) */
.dashboard-hero {
    width: 100%;
    height: 100%;  
    position: relative;

    background-image: url('https://www.shutterstock.com/image-photo/bacolod-philippines-mar-01-2019-260nw-2037931616.jpg');
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* DARK OVERLAY */
.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* TEXT */
.hero-overlay {
    position: absolute;
    top: 20%;
    left: 30%;
    text-align: center;
    color: rgb(255, 255, 255);
    z-index: 2;
}

/* ROLE-SPECIFIC HOME DASHBOARD */
.home-dashboard {
    padding: 12px 20px 32px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-content:has(#dashboardHome:not(.hidden-section)) {
    align-items: center;
}

.home-notif-list--modal {
    padding: 0;
}

.home-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.home-greeting-sub {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.home-greeting h2 {
    margin: 0;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 800;
}

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

.home-notif-bell {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e6d6d6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.home-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.home-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #800000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.home-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-loading,
.home-error,
.home-empty {
    color: #666;
    font-size: 14px;
    margin: 0;
    padding: 12px 0;
}

.home-error {
    color: #c62828;
}

.home-section {
    background: #fff;
    border: 1px solid #eadbdb;
    border-radius: 14px;
    padding: 16px 18px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section-title {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #800000;
    font-weight: 800;
}

.home-view-all {
    border: none;
    background: transparent;
    color: #800000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.home-notif-list,
.home-todo-list,
.home-app-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-notif-item,
.home-todo-item,
.home-app-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ecec;
}

.home-notif-item:last-child,
.home-todo-item:last-child,
.home-app-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-notif-icon,
.home-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.home-notif-text strong,
.home-todo-text strong,
.home-app-text strong {
    display: block;
    font-size: 14px;
    color: #222;
    margin-bottom: 2px;
}

.home-notif-text span,
.home-todo-text span,
.home-app-text span {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.home-app-sub {
    font-size: 12px !important;
    color: #888 !important;
}

.home-notif-time,
.home-todo-due {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.home-todo-due {
    color: #c62828;
    font-weight: 600;
}

.home-todo-check {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
}

.home-stat-grid {
    display: grid;
    gap: 12px;
}

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

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

.home-stat-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-stat-grid--secondary {
    margin-top: 12px;
}

.home-stat-card {
    background: #fff8f8;
    border: 1px solid #f0e0e0;
    border-radius: 12px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.home-stat-card:hover {
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.12);
}

.home-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.home-stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.home-stat-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #800000;
    font-weight: 600;
}

.home-badge {
    align-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-review { background: #fff8e1; color: #f57f17; }
.badge-checking { background: #e3f2fd; color: #1565c0; }
.badge-incomplete { background: #ffebee; color: #c62828; }
.badge-approved { background: #e8f5e9; color: #2e7d32; }
.badge-rejected { background: #ffebee; color: #b71c1c; }
.badge-pending { background: #f5f5f5; color: #616161; }

@media (max-width: 768px) {
    .home-stat-grid--3,
    .home-stat-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-greeting h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .home-stat-grid--2,
    .home-stat-grid--3,
    .home-stat-grid--4 {
        grid-template-columns: 1fr;
    }
    .home-notif-item,
    .home-todo-item,
    .home-app-item {
        grid-template-columns: auto 1fr;
    }
    .home-notif-time,
    .home-todo-due,
    .home-badge {
        grid-column: 2;
    }
}

.search-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    color: #f5f5f5;
}

.deadline-setter {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 12px 0 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.deadline-setter-inner {
    background: #fff;
    border: 1px solid #eadbdb;
    border-left: 5px solid #7a0d0d;
    border-radius: 12px;
    padding: 18px 20px 20px;
    max-width: 920px;
}

.deadline-help {
    margin: 14px 0 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #444;
    max-width: 880px;
}

.deadline-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.deadline-mail-banner {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: #664d03;
    line-height: 1.5;
}

.deadline-mail-test-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.deadline-mail-test-row label {
    font-size: 13px;
    font-weight: 600;
    color: #7a0d0d;
}

.deadline-test-email-input {
    min-width: 220px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.deadline-mail-recipients {
    margin: 8px 0 0;
    font-size: 12px;
    color: #555;
}

.deadline-reminder-panel {
    margin-top: 14px;
    padding: 14px 16px;
    background: #faf6f6;
    border: 1px solid #eadbdb;
    border-radius: 8px;
}

.deadline-reminder-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #7a0d0d;
}

.deadline-reminder-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.deadline-stage-badge {
    font-size: 12px;
    color: #666;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
}

.deadline-stage-badge--sent {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}

.deadline-stage-due {
    font-size: 11px;
    color: #888;
}

.deadline-stage-due--active {
    color: #b45309;
    font-weight: 600;
}

.deadline-email-status {
    font-size: 13px;
    color: #1565c0;
    flex: 1 1 220px;
}

.deadline-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.deadline-input-wrapper label {
    font-weight: 600;
    color: #4a1515;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.deadline-input-wrapper input[type="datetime-local"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.deadline-controls {
    display: flex;
    gap: 8px;
}

.dl-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #b71c1c;
    cursor: pointer;
    font-size: 13px;
}

.dl-btn.set {
    background: #7a0d0d;
    color: #fff;
}

.dl-btn.clear {
    background: #fff;
    color: #7a0d0d;
}

.deadline-countdown {
    font-size: 13px;
    color: #5b5b5b;
    margin-left: auto;
}

.student-summary-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 14px 0;
}

.summary-report-actions--top {
    align-self: flex-end;
}

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

@media (min-width: 1100px) {
    .dash-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dash-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    border: 1px solid #e4e4e4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 248px;
}

.dash-card-header {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #333;
}

.dash-card--teal .dash-card-header { background: #b2dfdb; color: #004d40; }
.dash-card--violet .dash-card-header { background: #d1c4e9; color: #311b92; }
.dash-card--amber .dash-card-header { background: #ffe082; color: #5d4037; }
.dash-card--rose .dash-card-header { background: #f8bbd0; color: #880e4f; }

.dash-card-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px 10px;
    gap: 14px;
}

.dash-card-big {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.dash-card-metric-label {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

.dash-card-status-pill {
    text-align: right;
    font-size: 10px;
    color: #555;
}

.dash-pill-on {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #43a047;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
}

.dash-card-engagements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    padding: 14px 18px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.dash-eng-val {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #4a148c;
}

.dash-card--teal .dash-eng-val { color: #00695c; }
.dash-card--violet .dash-eng-val { color: #4527a0; }
.dash-card--amber .dash-eng-val { color: #e65100; }
.dash-card--rose .dash-eng-val { color: #c62828; }

.dash-eng-lbl {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.dash-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 16px;
    margin-top: auto;
}

.dash-card-footer--split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    justify-content: center;
}

.dash-view-mine {
    background: #fff;
    color: #800000;
    border: 1px solid #800000;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.dash-view-mine:hover {
    background: #fff8f8;
}

.review-dash-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
    justify-content: center;
}

.review-dash-card-actions .dash-view-all,
.review-dash-card-actions .dash-view-mine {
    font-size: 0.65rem;
    padding: 0.3rem 0.55rem;
}

.dash-card .dash-view-all {
    background: transparent !important;
    border: none !important;
    color: #1565c0 !important;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 !important;
}

.dash-view-all:hover {
    color: #0d47a1;
}

.dash-card-dots {
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: default;
}

.dash-card-details {
    padding: 10px 14px 14px;
    background: #fffefb;
    border-top: 1px dashed #ddd;
    font-size: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.dash-detail-list {
    margin: 0;
    padding-left: 18px;
}

.dash-detail-list li {
    margin-bottom: 8px;
    line-height: 1.35;
}

.dash-detail-meta {
    color: #666;
    font-size: 11px;
}

.dash-detail-empty {
    margin: 0;
    color: #888;
    font-style: italic;
}

.req-intro {
    color: #555;
    margin: 0 0 14px;
    font-size: 14px;
}

.summary-report-panel {
    background: #fff;
    border: 1px solid #eadbdb;
    border-radius: 12px;
    padding: 14px 18px 16px;
    max-width: 920px;
}

.report-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #4a1515;
    margin-bottom: 8px;
}

.report-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.report-source-select {
    flex: 1 1 260px;
    min-width: 200px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    background: #fff;
}

.dash-list-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dash-list-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.dash-list-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: min(78vh, 720px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-list-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #fff7f7, #fff);
}

.dash-list-modal-head h3 {
    margin: 0;
    font-size: 18px;
    color: #7a0d0d;
}

.dash-list-modal-close {
    border: none;
    background: #eee;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.dash-list-modal-close:hover {
    background: #ddd;
}

.dash-list-modal-body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.45;
}

.req-doc-block {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
    background: #fff;
}

.req-doc-block h4 {
    margin: 0 0 10px;
    color: #7a0d0d;
    font-size: 15px;
}

.req-doc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.req-file-col {
    flex: 0 0 200px;
}

.req-meta-col {
    flex: 1 1 240px;
}

.req-meta-col label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin: 6px 0 4px;
}

.req-remarks {
    width: 100%;
    max-width: 520px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
    min-height: 52px;
}

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

.btn-upload {
    margin-top: 8px;
    padding: 6px 12px;
    background: #7a0d0d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.req-file-name {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #444;
    word-break: break-all;
}

.req-status-chip {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.req-status-chip::before {
    margin-right: 5px;
    font-weight: 900;
}

.req-status-chip--idle {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

.req-status-chip--idle::before {
    content: "…";
}

.req-status-chip--ok {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.req-status-chip--ok::before {
    content: "✓";
}

.req-status-chip--warning {
    background: #fff8e1;
    color: #8a4b00;
    border-color: #ffcc80;
}

.req-status-chip--warning::before {
    content: "!";
}

.req-status-chip--error {
    background: #fdecea;
    color: #b71c1c;
    border-color: #ef9a9a;
}

.req-validation--ok { color: #1b5e20; }
.req-validation--warn { color: #8a4b00; }
.req-validation--error { color: #b71c1c; }
.btn-link-view { color: #0a4291; text-decoration: underline; }
.req-upload-label { display: block; margin-top: 0.25rem; font-weight: 500; }
.req-upload-input { display: block; margin-top: 0.25rem; }
.req-upload-filename { margin-top: 0.25rem; }

.req-status-chip--error::before {
    content: "✕";
}

@keyframes reqChipPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.req-status-chip--pulse {
    animation: reqChipPulse 900ms ease-out;
}

.req-validation-msg {
    margin: 6px 0 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #0d47a1;
}

.student-summary-toolbar .summary-block-wide {
    flex: 1 1 280px;
    min-width: 0;
}

.summary-report-actions {
    display: flex;
    align-items: center;
}

.download-report-btn {
    padding: 12px 16px;
    background: #7a0d0d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.download-report-btn:hover {
    background: #5c0a0a;
}

.summary-card-approved strong {
    color: #1b5e20;
}

.summary-card-rejected strong {
    color: #b71c1c;
}

.summary-card-pending strong {
    color: #e65100;
}

.student-summary-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin: 8px 0 10px 0;
}

.summary-block {
    background: #ffffff;
    border: 1px solid #eadbdb;
    border-left: 5px solid #7a0d0d;
    border-radius: 10px;
    padding: 10px 12px;
}

.summary-block h3 {
    margin: 0 0 8px 0;
    color: #7a0d0d;
    font-size: 16px;
}

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

.summary-card {
    background: #fff7f7;
    border: 1px solid #f0d5d5;
    border-radius: 8px;
    text-align: center;
    padding: 8px 6px;
}

.summary-card .summary-label {
    display: block;
    font-size: 11px;
    color: #5b5b5b;
}

.summary-card strong {
    color: #7a0d0d;
    font-size: 20px;
}

.quick-alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #fff7f7;
    border: 1px solid #f0d5d5;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.quick-alert-item strong {
    color: #c62828;
    font-size: 18px;
}

#studentListSection {
    margin-left: 0;
    margin-right: auto;
    padding: 8px 20px 24px 8px;
    max-width: 1440px;
    width: 100%;
    box-sizing: border-box;
}

/* SEARCH BAR (SAFE) */
.search-bar-container {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 5px;
}
.search-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 3px;
}

.search-box {
    transition: 1.0s ease;
    flex: 2;
    display: flex;
    align-items: left;
    background: linear-gradient(120deg, #630000, #ff1919);
    border-radius: 999px;
    padding: 2px 2px;
    box-shadow: 0 10px 25 px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 3px 3px;
}

.filter-icon {
    margin-left: 10px;
    cursor: pointer;
}

.create-btn {
    background: linear-gradient(120deg, #ff0000, #4b0000);
    color: white;
    border: none;
    padding: 10px 3px;
    border-radius: 20px;
    cursor: pointer;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 6px;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.dashboard-layout.sidebar-collapsed .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.student-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    background: white;
    table-layout: fixed;
    box-sizing: border-box;
}

.student-table th,
.student-table td {
    border: 1px solid #ddd;
    padding: 5px 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    word-break: break-word;
}

.dashboard-layout.sidebar-collapsed .student-table th,
.dashboard-layout.sidebar-collapsed .student-table td {
    white-space: normal;
    line-height: 1.25;
    vertical-align: top;
}

.student-table .col-id { width: 6%; }
.student-table .col-name { width: 11%; }
.student-table .col-course { width: 9%; }
.student-table .col-year { width: 5%; }
.student-table .col-email { width: 12%; }
.student-table .col-status { width: 7%; }
.student-table .col-req { width: 5%; }
.student-table .col-remarks { width: 8%; }
.student-table .col-head { width: 11%; min-width: 6.5rem; }

.student-table th.col-head-review,
.student-table td.col-head-review {
    min-width: 7.75rem;
    width: 7.75rem;
    max-width: 9rem;
    padding-left: 8px;
    padding-right: 8px;
    vertical-align: middle;
}

.student-table th.col-action,
.student-table td.col-action {
    min-width: 4.5rem;
    width: 4.5rem;
    padding-left: 6px;
    padding-right: 6px;
    vertical-align: middle;
}

.send-review-btn {
    display: inline-block;
    width: auto;
    min-width: 6.75rem;
    max-width: none;
    white-space: nowrap;
    line-height: 1.25;
    font-size: 11px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.btn-edit-row {
    min-width: 3.25rem;
    padding: 6px 10px;
    white-space: nowrap;
}

.extra-contacts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.extra-contact-block {
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.extra-contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.extra-contact-head h3 {
    margin: 0;
    font-size: 1rem;
}

.btn-add-contact,
.btn-remove-contact {
    border: 1px solid #800000;
    background: #fff;
    color: #800000;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.btn-add-contact {
    padding: 8px 14px;
}

.btn-remove-contact {
    width: 28px;
    height: 28px;
    line-height: 1;
    padding: 0;
}

.contact-add-row {
    margin-top: 12px;
}

.review-dash-card--slate {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.head-queue-badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    white-space: normal;
    line-height: 1.2;
}

.student-table td:has(.send-review-btn),
.student-table th:nth-child(14),
.student-table td:nth-child(14) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    min-width: 5.75rem;
    vertical-align: middle;
}

.send-review-btn {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    font-size: 10px;
    padding: 4px 6px;
}

.summary-item--wide {
    flex: 1 1 100%;
    min-width: 280px;
}

#sum-overallNotes {
    white-space: pre-wrap;
    text-align: left;
    font-size: 13px;
    color: #333;
}

.student-table th {
    background-color: #800000;
    color: white;
}

.student-table tr:hover {
    background: linear-gradient(120deg, #ffffff, #880000);
}

button {
    padding: 5px 10px;
    background-color: #800;
    color: white;
    border: none;
    cursor: pointer;
}


button:hover {
    background-color: #fa2020; /* NEED to  fix ha, nag aafect sya sa cancel button sa login main menu */
}
/* HIDDEN */
.hidden-section {
    display: none !important;
}

.audit-archive-panel {
    padding: 0 0 2rem;
}

.audit-archive-panel .section-title {
    margin-bottom: 0.35rem;
}

.staff-create-form {
    margin: 1.25rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e8d4d4;
    border-radius: 10px;
}

.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.staff-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3a0000;
}

.staff-form-grid input {
    font-weight: 400;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.staff-list-heading {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #5a0000;
}

.dash-card-clickable,
.review-dash-card-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card-clickable:hover,
.review-dash-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 0, 0.18);
}

.dash-card-clickable:focus-visible,
.review-dash-card-clickable:focus-visible {
    outline: 2px solid #800000;
    outline-offset: 3px;
}

.dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e8d4d4;
    border-radius: 10px;
}

.dashboard-toolbar--student {
    margin-bottom: 0.75rem;
}

.dash-toolbar-search {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 0.45rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.dash-toolbar-filter-select {
    min-width: 160px;
    padding: 0.45rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.dash-toolbar-filter-select.hidden-section {
    display: none;
}

.dash-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.dash-detail-list .dash-detail-item--clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
    transition: background 0.15s ease;
}

.dash-detail-list .dash-detail-item--clickable:hover,
.dash-detail-list .dash-detail-item--clickable:focus {
    background: #fff3f3;
    outline: none;
}

.dash-list-modal:not(.hidden-section) {
    display: flex !important;
}

.dash-detail-hint {
    margin: 0 0 12px;
}

/* Collapsible sidebar — fully hidden when collapsed (no red strip) */
#appSidebar.sidebar {
    transition: width 0.25s ease, flex-basis 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    position: relative;
    overflow: visible;
}

.dashboard-layout.sidebar-collapsed #appSidebar.sidebar,
#appSidebar.sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    border: none;
}

.dashboard-layout.sidebar-collapsed #appSidebar .sidebar-toggle,
#appSidebar.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar-open-btn {
    flex-shrink: 0;
}

.sidebar-toggle {
    position: absolute;
    right: -14px;
    top: 48%;
    transform: translateY(-50%);
    background: #910000;
    color: #fff;
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 0 16px 16px 0;
    height: 48px;
    width: 22px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:hover {
    background: #b30000;
}

.sidebar-menu li.rbac-hidden {
    display: none !important;
}

.rbac-blocked {
    display: none !important;
}

/* Special handling modals */
.sh-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.sh-modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.sh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.sh-modal-header h2 {
    margin: 0;
    color: #7a0d0d;
    font-size: 1.25rem;
}

.sh-close-btn {
    font-size: 26px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.sh-close-btn:hover {
    color: #333;
}

.sh-modal-lead {
    margin: 0 0 12px;
}

.sh-modal-body {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.sh-student-info-tag {
    margin-bottom: 14px;
    background: #fdf8ff;
    padding: 10px 12px;
    border-left: 4px solid #9b59b6;
    border-radius: 4px;
    font-size: 0.92rem;
}

.sh-list-card {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafafa;
    transition: background 0.15s ease;
}

.sh-list-card:hover {
    background: #fff5f5;
}

.sh-list-id {
    color: #7a0d0d;
    font-size: 12px;
    display: block;
}

.sh-list-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}

.sh-list-cta {
    color: #9b59b6;
    font-weight: 700;
    font-size: 13px;
}

.sh-detail-item {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.sh-detail-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sh-detail-status {
    font-size: 11px;
    font-weight: 700;
    color: #856404;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
}

.sh-detail-remarks {
    font-size: 13px;
    color: #555;
    background: #fffbf2;
    padding: 8px;
    border-radius: 4px;
    border: 1px dashed #e6b85c;
}

.sh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 12px;
}

.sh-btn-back {
    background: #7f8c8d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.sh-btn-open {
    background: #800000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.sh-btn-open:hover {
    background: #a00000;
}

.btn-audit-view {
    background: #5a0000;
    color: #fff;
    border: none;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-audit-view:hover {
    background: #800000;
}

.audit-log-table td:nth-child(4) {
    max-width: 420px;
    word-break: break-word;
}

.muted-cell {
    color: #666;
    text-align: center;
    padding: 1.25rem !important;
}

.archive-profile-btn {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.archive-profile-btn:hover {
    background: #a00000;
}

.btn-restore-profile {
    background: #1a6b3c;
    color: #fff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-restore-profile:hover {
    background: #22884a;
}

/* BOX BUTTON */
.status-box {
    width: 10px;
    height: 20px;
    border: 2px solid #000000;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}

/* Status Box check on Send Email kimi char */
.status-box.active {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

/* CHECK ICON */
.status-box.active::after {
    content: "✔";
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Ang lahat ng ito ay yung form na */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* ><><><><><><><><><><><>< MODAL BOX ><><><><><><><><><><><>< */
.modal-content {
    width: 85%;
    height: 95vh;
    background: white;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
}

/* ><><><><><><><><><><><><SIDEBAR><><><><><><><><><><><><*/
.modal-sidebar {
    width: 160px;
    min-width: 160px;
    align-self: stretch;
    min-height: 0;
    background: #800000;
    color: white;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-sidebar li {
    padding: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.modal-sidebar li:hover {
    background: rgba(255,255,255,0.2);
}

/* ><><><><><><><><><><><><MAIN AREA (FIXED)><><><><><><><><><><><>< */
.form-container {
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editing-student-banner {
    align-self: flex-start;
    margin: 0 0 10px 2px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

/* ><><><><><><><><><><><><SECTIONS><><><><><><><><><><><>< */
.form-section {
    display: none;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    padding: 6px 10px;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.form-section.active {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ><><><><><><><><><><><><GRID (FIXED)><><><><><><><><><><><><*/
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* FIXED */
    gap: 5px;
    align-items: start;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px; /* FIXED */
}

/* ><><><><><><><><><><><>< TEXT ><><><><><><><><><><><><*/
h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

h3 {
    font-size: 16px;
    margin: 0 0 6px 0;
}

h4 {
    font-size: 12px;
    margin: 0 0 4px 0;
}

/* ><><><><><><><><><><><><FORM ELEMENTS><><><><><><><><><><><><*/
.form-group {
    margin-bottom: 4px;
}

.form-group label {
    font-size: 11px;
    margin-bottom: 2px;
    display: auto;
}

.form-group input,
.form-group select {
    height: 26px;
    width: 100%;
    padding: 3px 6px;
    font-size: 12px;
    box-sizing: border-box;
    border: 0.1px solid #303030;
    border-radius: 999px;
}

/* ><><><><><><><><><><><><PROFILE><><><><><><><><><><><>< */
.profile-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: start;
}

.applicant-photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 110px;
}

.applicant-photo-frame {
    width: 96px;
    height: 96px;
    border: 2px solid #800000;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.applicant-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-box {
    width: 96px;
}

.picture-placeholder {
    width: 100%;
    height: 100%;
    min-height: 96px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #800000;
    font-weight: 600;
}

.applicant-photo-input {
    display: none;
}

.applicant-photo-btn {
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.applicant-photo-btn:hover {
    background: #a00000;
}

.applicant-photo-status {
    margin: 0;
    text-align: center;
    line-height: 1.3;
    max-width: 110px;
}

.audit-dash-grid {
    margin-bottom: 18px;
}

/* ><><><><><><><><><><><><ROW SYSTEMS><><><><><><><><><><><><*/
.name-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.row-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(4, 1fr));
    gap: 6px;
}

.row-2-custom {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 8px;
    width: 100%;
    align-items: end;
}

.row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

/*><><><><><><><><><><><><ADDRESS><><><><><><><><><><><>< */
.address-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* ><><><><><><><><><><><><BUTTONS><><><><><><><><><><><>< */
.modal-sidebar .modal-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.modal-sidebar .update-btn,
.modal-sidebar .back-btn,
.modal-sidebar .archive-profile-btn {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.25;
}

.modal-sidebar .update-btn {
    background: #fff;
    color: #800000;
}

.modal-sidebar .update-btn:hover {
    background: #f1f5f9;
}

.modal-sidebar .archive-profile-btn {
    background: #5c0000;
    color: #fff;
}

.modal-sidebar .archive-profile-btn:hover {
    background: #7a0000;
}

.modal-sidebar .back-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.modal-sidebar .back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.personnel-approve-bar {
    margin: 20px 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
}

.personnel-approve-hint {
    margin: 0 0 12px;
    color: #166534;
    font-size: 0.95rem;
}

.personnel-approve-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personnel-approve-btn {
    background: #15803d;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.personnel-approve-btn:hover {
    background: #166534;
}

.personnel-queue-btn {
    background: #800000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.personnel-queue-btn:hover {
    background: #a00000;
}

/* ><><><><><><><><><><><><UTILS><><><><><><><><><><><><*/
.hidden-section {
    display: none;
}

/* ===== RADIO ALIGN FIX ===== */
.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.req-grid {
    padding: 12px;      /* was 8px */
    gap: 10px;          /* more breathing space */
}

.req-grid .form-group {
    margin-bottom: 8px;
}

.req-grid input,
.req-grid select,
.req-grid textarea {
    height: 60px;       /* was 26px */
    font-size: 13px;
    resize: none;
}

.req-grid h4 {
    font-size: 20px;
}

.file-box {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
}

/* ><><><><><><><><><><><><SUMMARY FULL WIDTH FIX><><><><><><><><><><><>< */

#summary {
    width: 100%;
    max-width: 100%;
}

/* SECTION TITLES */
#summary h2 {
    font-size: 22px;
    margin: 10px 0 5px 0;
    text-align: left;
}

/* SUB TITLES */
#summary h3 {
    font-size: 14px;
    margin: 5px 0 10px 0;
    text-align: left;
    color: #555;
}

/* ROW LAYOUT (IMPORTANT) */
.summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 10px;
    margin-bottom: 8px;
}

/* 2 COLUMN ROW */
.summary-row-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

/* TEXT STYLE */
.summary-row span,
.summary-row-2 span {
    display: block;
    font-size: 13px;
}

/* LABEL STYLE */
.summary-label {
    font-weight: bold;
    font-size: 12px;
}

/* FOOTER */
#summary p strong {
    font-size: 14px;
}

#summary {
    width: 100%;
    flex: 1;
}

/* MAKE ROWS FULL WIDTH */
.summary-row,
.summary-row-2 {
    width: 100%;
}

/* FORCE EVEN DISTRIBUTION */
.summary-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}

.summary-row-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: 3fr 1fr;
}

/* FIX ALIGNMENT INSIDE GRID */
.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* LABEL STYLE */
.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #181818;
}

/* VALUE STYLE */
.summary-item div:last-child {
    font-size: 13px;
    min-height: 18px;
}

/* ><><><><><><><><><><><><SECTION CARD STYLE><><><><><><><><><><><>< */

.section-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* spacing for titles inside card */
.section-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.section-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* ><><><><><><><><><><><><REQUIREMENTS STATUS BADGES><><><><><><><><><><><>< */

.status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* APPROVED */
.status-approved {
    background: #e6f7ee;
    color: #1a7f37;
    border: 1px solid #1a7f37;
}

/* MISSING / REJECTED */
.status-missing {
    background: #fdeaea;
    color: #c62828;
    border: 1px solid #c62828;
}

/* PENDING */
.status-pending {
    background: #fff7e6;
    color: #b26a00;
    border: 1px solid #b26a00;
}

.summary-item div[id^="sum-"] {
    font-weight: bold;
    color: #0a0404;
    margin-top: 5px;
}

/*><><><><><><><><><><><><SUMMARY EXTRA DETAILS FIX><><><><><><><><><><><>< */

/* This targets the specific Reason, Category, and Notes divs */
.summary-item div[id$="-reason"], 
.summary-item div[id$="-category"] {
    font-weight: normal !important; /* Overrides yong bold rule */
    color: #555 !important;        /* Makes it a softer gray */
    font-size: 11px !important;    /* Slightly smaller than the status */
    margin-top: 5px !important;    /* Tighter spacing */
}

.summary-item div[id$="-notes"] {
    font-weight: normal !important;
    font-style: italic;
    color: #2c3e50 !important;
    font-size: 12px !important;
    border-left: 2px solid #ddd;   /* Small decorative line */
    padding-left: 5px;
    margin-top: 5px !important;
    white-space: pre-wrap;         /* Allows notes to wrap to next line */
}

/* Ensure these look clean when printed */
@media print {
    .summary-item div[id$="-notes"] {
        border-left: 2px solid #000;
    }
}

/*><><><><><><><><><><><><Summary Footer><><><><><><><><><><><><*/
.summary-footer {
    width: 100%;
    margin-top: 30px; /* Space between the last data and the footer */
    padding-bottom: 20px;
    clear: both;      /* Prevents overlaying if things are floating */
    text-align: center;
}

.footer-line {
    width: 100%;
    overflow: hidden; /* Prevents the long line from breaking layout */
    white-space: nowrap;
    color: #ccc;
    margin-bottom: 10px;
}

.summary-footer p {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-transform: uppercase; /* makes it look more official */
    letter-spacing: 1px;
}

/* Ensure footer prints at the very bottom */
@media print {
    .summary-footer {
        position: relative;
        bottom: 0;
    }
}

/* Container for the extra info */
.req-details {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

/* Style for Reason and Category */
.summary-extra {
    font-size: 11px !important;
    color: #666 !important;
    font-weight: normal !important;
    line-height: 1.2;
}

/* Style for Notes */
.summary-notes-container {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 5px;
    text-align: left;
}

/* Prevent the summary-item from growing too wide */
.summary-item {
    overflow: hidden;
    min-width: 0; 
}

/* ROW 3: The 5 Document Columns */
.summary-row-requirements {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.summary-row-requirements .summary-extra {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #555 !important;
    font-weight: normal !important;
    display: block;
    margin-top: 4px !important;
    word-break: break-word;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Grouping Reason and Category tightly under the Status */
.req-details {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

#curriculum-section {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Para siguradong maputi at readable ang "Welcome" title niyo */
#moving-title {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-top: 50px;
    font-size: 32px;
}

/* ROW 4: Notes (Full Width) */
.summary-notes-container {
    width: 100%;
    border-top: 1px solid #000000;
    padding-top: 8px;
    margin-top: 5px;
    text-align: left;
}

#sum-bc-notes {
    font-size: 12px !important;
    color: #ff0606 !important;
    font-style: italic;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Footer alignment */
.summary-footer {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

/* Fix para hindi maging higante ang Logout button */
.logout-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* Nilalagay sa gitna */
    margin: 20px 0;
}

.logout-btn {
    background-color: #800000; /* PUP Maroon */
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* Para hindi lumaki nang sobra */
    font-weight: bold;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #a00000;
}

/* Siguraduhin na ang Curriculum Hub images ay hindi mawawala */
.curriculum-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.card-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 250px; /* Standard size */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

.welcome-screen--visible {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px 80px;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}

.welcome-screen--hidden {
    display: none !important;
}

.welcome-login-panel {
    display: flex;
    justify-content: center;
    width: 100%;
}

.welcome-login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-login-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.welcome-login-submit {
    background: #800000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.welcome-login-submit:hover {
    background: #600000;
}

.login-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin: 0;
}

.db-load-status {
    font-size: 0.9rem;
    color: #2e7d32;
    margin: 0 0 12px;
}

.db-load-status--error {
    color: #c0392b;
}

.toolbar-create-btn {
    margin-left: auto;
}

.req-file-col--hidden {
    display: none;
}

.req-doc-row {
    grid-template-columns: 1fr;
}

.req-help,
.req-enrollment-question {
    margin-bottom: 1rem;
}

body.dashboard-active #welcome-screen {
    display: none !important;
}

.live-db-banner {
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.live-db-banner--info {
    background: #e8f4fd;
    color: #0b3d6e;
    border: 1px solid #9ecae8;
}

.live-db-banner--warn {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffc107;
}

.toolbar-section-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #8B0000;
    margin-right: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-toolbar--filters,
.dashboard-toolbar--report {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.dashboard-toolbar--report {
    background: #fff8f8;
    border-color: #e8d0d0;
}

.deadline-panel-title {
    margin: 0 0 0.5rem;
    color: #8B0000;
}

.dash-modal-summary {
    background: #f5f0f0;
    border-left: 4px solid #8B0000;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 4px;
}

.save-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 12000;
    background: #1b5e20;
    color: #fff;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    max-width: 320px;
    font-size: 0.92rem;
}

.save-toast--visible {
    opacity: 1;
}
