/* ==========================================================================
   CCS Sit-in Monitoring System — Modern Minimal Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --brand: #4D2FB2;
    --brand-dark: #3A1F8F;
    --brand-deep: #2C1577;
    --brand-light: #F0EDFF;
    --brand-lighter: #F7F5FF;
    --accent: #8B5CF6;

    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --border: #E6E9F0;
    --border-strong: #D4D9E4;

    --text: #0F172A;
    --text-2: #475569;
    --text-3: #94A3B8;

    --success: #16A34A;
    --success-bg: #E9F9EF;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --danger: #DC2626;
    --danger-bg: #FEE9E9;
    --info: #2563EB;
    --info-bg: #EAF1FE;
    --neutral: #6B7280;
    --neutral-bg: #EFF1F5;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 6px 18px rgba(77, 47, 178, 0.22);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --nav-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    display: inline-block;
}

button {
    font-family: var(--font);
    cursor: pointer;
}

input, select, textarea {
    font-family: var(--font);
    color: var(--text);
}

input::placeholder, textarea::placeholder {
    color: var(--text-3);
}

.hidden {
    display: none !important;
}

.loading,
.notification-loading {
    text-align: center;
    color: var(--text-3);
    padding: 40px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.nav {
    height: var(--nav-h);
    width: 100%;
    background: var(--brand);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    position: relative;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(44, 21, 119, 0.25);
}

.nav .logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px;
}

.nav .CCS {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    padding: 0 10px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nav .links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav .links a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav .links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.nav > button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin-left: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.nav > button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

/* Notification dropdown */
.notification-dropdown {
    position: relative;
}

.notification-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    user-select: none;
}

.notification-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: -40px;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 1000;
}

.notification-menu.show {
    display: block;
    animation: fadeSlideIn 0.18s ease;
}

.notification-menu-header {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-2);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.notification-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

.notification-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--brand-lighter);
}

.notification-item-title,
.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.notification-item-date {
    font-size: 12px;
    color: var(--text-3);
}

.notification-item-desc,
.notification-desc {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 6px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Landing Page (index.html)
   -------------------------------------------------------------------------- */
.main {
    display: flex;
    gap: 24px;
    padding: 28px;
    align-items: stretch;
    flex-wrap: wrap;
}

.main > .left {
    flex: 1.3;
    min-width: 320px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.main > .left .title2 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
}

.main > .left .title3 {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

.main > .left .btn-cons {
    display: flex;
    gap: 14px;
    margin: 6px 0 0;
}

.main > .left .btn {
    background: #fff;
    color: var(--brand);
    border: none;
}

.main > .left .btn:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.main > .left .btn:last-child {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.main > .left .btn:last-child:hover {
    background: rgba(255, 255, 255, 0.14);
}

.main > .right {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main > .right img {
    width: 100%;
    max-width: 620px;
    height: auto;
}

/* --------------------------------------------------------------------------
   5. Leaderboard
   -------------------------------------------------------------------------- */
.leaderboard-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin: 12px 28px 40px;
    display: block;
    visibility: visible;
}

.leaderboard-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-title span {
    font-size: 26px;
}

.leaderboard-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.leaderboard-table-container {
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn,
.btn-action,
.btn-reset,
.btn-edit,
.btn-delete,
.btn-sitin,
.btn-feedback,
.btn-refresh,
.btn-approve,
.btn-deny,
.btn-cancel,
.btn-add-student,
.btn-reset-all,
.btn-add-sitin,
.btn-add-announcement,
.btn-export-pdf,
.btn-export-csv,
.btn-save,
.btnreserve,
.pcselectbtn,
.temp-register-btn,
.announcement-form button,
.modal-buttons button,
.page-buttons button {
    appearance: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, color 0.2s;
}

.btn:hover,
.btn-action:hover,
.btn-reset:hover,
.btn-edit:hover,
.btn-delete:hover,
.btn-sitin:hover,
.btn-feedback:hover,
.btn-refresh:hover,
.btn-approve:hover,
.btn-deny:hover,
.btn-cancel:hover,
.btn-add-student:hover,
.btn-reset-all:hover,
.btn-add-sitin:hover,
.btn-add-announcement:hover,
.btn-export-pdf:hover,
.btn-export-csv:hover,
.btn-save:hover,
.btnreserve:hover,
.pcselectbtn:hover,
.temp-register-btn:hover,
.announcement-form button:hover,
.modal-buttons button:hover,
.page-buttons button:hover {
    transform: translateY(-1px);
}

.btn:active,
.btn-action:active,
.btn-reset:active,
.btn-edit:active,
.btn-delete:active,
.btn-sitin:active,
.btn-feedback:active,
.btn-refresh:active,
.btn-approve:active,
.btn-deny:active,
.btn-cancel:active,
.btn-add-student:active,
.btn-reset-all:active,
.btn-add-sitin:active,
.btn-add-announcement:active,
.btn-export-pdf:active,
.btn-export-csv:active,
.btn-save:active,
.btnreserve:active,
.pcselectbtn:active,
.temp-register-btn:active,
.announcement-form button:active,
.modal-buttons button:active,
.page-buttons button:active {
    transform: translateY(0);
}

.btn,
.btn-add-student,
.btn-add-sitin,
.btn-add-announcement,
.btn-edit,
.btn-save,
.btn-feedback,
.btn-refresh,
.btnreserve,
.pcselectbtn,
.temp-register-btn {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn:hover,
.btn-add-student:hover,
.btn-add-sitin:hover,
.btn-add-announcement:hover,
.btn-edit:hover,
.btn-save:hover,
.btn-feedback:hover,
.btn-refresh:hover,
.btnreserve:hover,
.pcselectbtn:hover,
.temp-register-btn:hover {
    background: var(--brand-dark);
    box-shadow: var(--shadow-brand);
}

.btn-reset-all,
.btn-reset {
    background: var(--warning);
    color: #fff;
}

.btn-reset-all:hover,
.btn-reset:hover {
    background: #B45309;
}

.btn-sitin,
.btn-approve,
.btn-export-csv {
    background: var(--success);
    color: #fff;
}

.btn-sitin:hover,
.btn-approve:hover,
.btn-export-csv:hover {
    background: #15803D;
}

.btn-delete,
.btn-deny,
.btn-cancel,
.btn-timeout,
.btn-export-pdf {
    background: var(--danger);
    color: #fff;
}

.btn-delete:hover,
.btn-deny:hover,
.btn-cancel:hover,
.btn-timeout:hover,
.btn-export-pdf:hover {
    background: #B91C1C;
}

.btn-cancel {
    background: var(--neutral);
}

.btn-cancel:hover {
    background: #4B5563;
}

.btn-action {
    background: var(--neutral-bg);
    color: var(--text-2);
    padding: 6px 14px;
    font-size: 13px;
}

.btn-action:hover {
    background: var(--border-strong);
    color: var(--text);
}

.btn-add-student,
.btn-add-sitin,
.btn-add-announcement {
    font-weight: 700;
}

.btn-export-pdf,
.btn-export-csv {
    padding: 9px 18px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.login-main,
.register-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-h));
    padding: 40px 20px;
}

.login-container,
.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 980px;
    flex-wrap: wrap;
}

.computer-logo {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.computer-logo img {
    width: 100%;
    max-width: 460px;
    height: auto;
}

.login-form,
.register-form {
    flex: 1;
    min-width: 320px;
    max-width: 440px;
    background: var(--surface);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.login-title,
.register-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 26px;
    color: var(--text);
}

.login-form input,
.register-form input,
.login-form select,
.register-form select {
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-form input:focus,
.register-form input:focus,
.login-form select:focus,
.register-form select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

.login-form button[type="submit"],
.register-form button[type="submit"] {
    padding: 13px;
    margin-top: 6px;
    border: none;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.login-form button[type="submit"]:hover,
.register-form button[type="submit"]:hover {
    background: var(--brand-dark);
    box-shadow: var(--shadow-brand);
}

.login-form button[type="button"] {
    padding: 12px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.login-form button[type="button"]:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand);
}

#errorMessage {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
}

/* General form groups (modals, admin, software) */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

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

.form-group input,
.form-group select,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

.form-group input[readonly] {
    background: var(--surface-2);
    color: var(--text-3);
}

.form-select {
    cursor: pointer;
}

/* Reservation form groups */
.formrow {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.formgroup {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.formgroup label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

.formgroup input,
.formgroup select {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.formgroup input:focus,
.formgroup select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

/* --------------------------------------------------------------------------
   8. Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    width: 480px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    text-align: left;
}

.modal h3 {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;
    color: var(--text);
}

.modal > p {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 10px;
}

.modal.show,
.modal-overlay.show {
    display: block;
}

.modal.show {
    animation: modalIn 0.18s ease;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.modal-buttons button {
    padding: 10px 24px;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.modal-buttons button:first-child {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.modal-buttons button:first-child:hover {
    background: var(--brand-dark);
}

#logoutModal .modal-buttons button:first-child,
#timeoutModal .modal-buttons button:first-child {
    background: var(--danger);
    border-color: var(--danger);
}

#logoutModal .modal-buttons button:first-child:hover,
#timeoutModal .modal-buttons button:first-child:hover {
    background: #B91C1C;
}

#feedbackModal,
#logoutModal,
#pcModal,
#pcManagementModal {
    width: 520px;
}

#sitInModal,
#softwareModal,
#addStudentModal,
#editStudentModal {
    width: 520px;
}

#searchModal {
    width: 460px;
}

#searchModal input {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}

#searchModal input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

#feedbackText {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: var(--font);
}

#feedbackText:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

.user-result,
.search-result-item {
    margin: 14px 0;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}

.user-result p,
.search-result-item p {
    font-size: 14px;
    color: var(--text-2);
    margin: 4px 0;
}

.user-result p strong,
.search-result-item p strong {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   9. Tables (shared)
   -------------------------------------------------------------------------- */
.student-section,
.current-sit-in-section,
.sit-in-records-section,
.history-section,
.feedback-section,
.reservationrequestmain {
    padding: 28px;
}

.student-header,
.records-header,
.sit-in-header,
.history-header,
.reservationrequestheader,
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}

.student-header h2,
.records-header h2,
.sit-in-header h2,
.history-header h2,
.reservationrequestheader h2,
.feedback-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.student-controls,
.records-controls,
.history-controls,
.reservationrequestcontrols {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.student-buttons,
.export-buttons,
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.student-table-container,
.records-table-container,
.sit-in-table-container,
.history-table-container,
.feedback-table-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.student-table,
.records-table,
.sit-in-table,
.history-table,
.feedback-table,
.leaderboard-table,
.reservationrequesttable table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.student-table thead,
.records-table thead,
.sit-in-table thead,
.history-table thead,
.feedback-table thead,
.leaderboard-table thead,
.reservationrequesttable thead {
    background: var(--surface-2);
}

.student-table th,
.records-table th,
.sit-in-table th,
.history-table th,
.feedback-table th,
.leaderboard-table th,
.reservationrequesttable th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.student-table td,
.records-table td,
.sit-in-table td,
.history-table td,
.feedback-table td,
.leaderboard-table td,
.reservationrequesttable td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-2);
}

.student-table tbody tr:last-child td,
.records-table tbody tr:last-child td,
.sit-in-table tbody tr:last-child td,
.history-table tbody tr:last-child td,
.feedback-table tbody tr:last-child td,
.leaderboard-table tbody tr:last-child td,
.reservationrequesttable tbody tr:last-child td {
    border-bottom: none;
}

.student-table tbody tr:hover,
.records-table tbody tr:hover,
.sit-in-table tbody tr:hover,
.history-table tbody tr:hover,
.feedback-table tbody tr:hover,
.leaderboard-table tbody tr:hover,
.reservationrequesttable tbody tr:hover {
    background: var(--brand-lighter);
}

.reservationrequesttable {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.reservationrequesttable th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

.reservationrequesttable td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-2);
}

.reservationrequesttable tbody tr:hover {
    background: var(--brand-lighter);
}

.no-records {
    text-align: center;
    padding: 48px 20px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    margin-top: 16px;
}

.no-records p {
    font-size: 15px;
    color: var(--text-3);
}

.no-data {
    text-align: center;
    color: var(--text-3);
    font-style: italic;
    padding: 24px !important;
}

/* Status badges */
.status-active {
    color: var(--success);
    background: var(--success-bg);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.status-completed {
    color: var(--neutral);
    background: var(--neutral-bg);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.statusbadge {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-approved {
    background: var(--success-bg);
    color: var(--success);
}

.status-denied {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-cancelled {
    background: var(--neutral-bg);
    color: var(--neutral);
}

/* Leaderboard extras */
.leaderboard-row {
    transition: background 0.15s;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 2px 8px rgba(255, 200, 0, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #9CA3AF);
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.4);
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B45309);
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4);
}

.rank-other {
    background: var(--brand-light);
    color: var(--brand);
}

.session-count {
    background: var(--brand-light);
    color: var(--brand);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

.points-badge {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(77, 47, 178, 0.15);
}

.leaderboard-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(77, 47, 178, 0.15);
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

.search-box input {
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 210px;
    background: transparent;
}

.search-box .btn-search {
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-3);
    transition: color 0.2s;
}

.search-box .btn-search:hover {
    color: var(--brand);
}

/* Entries / date / filter selects */
.entries-per-page,
.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.entries-per-page select,
.date-filter input,
.reservationrequestcontrols select,
#filterStatus {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--surface);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.entries-per-page select:focus,
.date-filter input:focus,
.reservationrequestcontrols select:focus,
#filterStatus:focus {
    border-color: var(--brand);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-2);
}

.page-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-buttons button {
    padding: 7px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.page-buttons button:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand);
}

.page-buttons .current-page {
    padding: 7px 13px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   10. Stats & Summary Cards
   -------------------------------------------------------------------------- */
.main1 {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
    flex-wrap: wrap;
}

.statistic,
.admin-announcements-section {
    flex: 1;
    min-width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.statistic > h1,
.admin-announcements-section > h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand-light);
    color: var(--text);
}

.stats-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    padding: 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-brand);
}

.stat-box h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.stat-box p {
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.language-stats {
    margin-top: 6px;
}

.chart-wrapper {
    width: 100%;
    height: 300px;
}

/* Reports summary */
.reports-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-box h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-box p {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    margin: 0;
}

/* Admin announcements */
.announcement-form {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-strong);
}

.announcement-form input[type="text"],
.announcement-form textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.announcement-form input[type="text"]:focus,
.announcement-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

.announcement-form textarea {
    min-height: 100px;
    resize: vertical;
}

.announcement-form button {
    width: 100%;
}

.admin-announcement-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.admin-announcement-list::-webkit-scrollbar {
    width: 6px;
}

.admin-announcement-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.admin-announcement-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-announcement-item:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.admin-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-announcement-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    flex: 1;
}

.admin-announcement-date {
    font-size: 12px;
    color: var(--text-3);
    background: var(--brand-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.admin-announcement-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}

.admin-no-announcements {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
}

.admin-no-announcements-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   11. Student Dashboard (main.html)
   -------------------------------------------------------------------------- */
.Studentinfo,
.announcements-holder,
.Rulesandreg {
    flex: 1;
    min-width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: auto;
    align-self: stretch;
}

.Studentinfo > h1,
.announcements-holder > h1,
.Rulesandreg > h1 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-light);
    background: none;
    color: var(--text);
    width: 100%;
    height: auto;
    border-radius: 0;
}

.Studentinfo {
    display: flex;
    flex-direction: column;
}

.studentpic {
    display: flex;
    justify-content: center;
    margin: 8px auto 20px;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-light);
    box-shadow: var(--shadow-sm);
    background: var(--surface-2);
    flex-shrink: 0;
}

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

.info {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 16px;
    background: var(--surface-2);
}

.info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
}

.info p:last-child {
    border-bottom: none;
}

.info p span:first-child {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.info p span:last-child {
    color: var(--brand);
    font-weight: 600;
    text-align: right;
}

.announcements-holder {
    display: flex;
    flex-direction: column;
}

.announcement-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.announcement {
    background: var(--surface-2);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.announcement .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.announcement p {
    color: var(--text-2);
    line-height: 1.55;
    margin: 0;
    font-size: 14px;
}

.separator {
    height: 1px;
    width: 100%;
    background: var(--border);
}

.rules-content {
    text-align: center;
    font-size: 14px;
}

.rules-content h3 {
    font-size: 18px;
    color: var(--text);
    margin: 8px 0;
}

.rules-content h4 {
    font-size: 14px;
    color: var(--brand);
    margin: 6px 0;
    letter-spacing: 0.3px;
}

.rules-content p {
    text-align: justify;
    color: var(--text-2);
    margin: 14px 0;
}

.rules-content ol {
    text-align: justify;
    margin-left: 18px;
    color: var(--text-2);
}

.rules-content li {
    margin: 10px 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Community & About Pages
   -------------------------------------------------------------------------- */
.community-hero,
.about-hero {
    text-align: center;
    padding: 64px 24px 56px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
}

.community-hero h1,
.about-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
}

.community-hero p,
.about-hero p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 28px;
    background: var(--surface);
    margin: -26px auto 44px;
    max-width: 780px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    flex-wrap: wrap;
}

.community-stats .stat {
    text-align: center;
    min-width: 120px;
}

.community-stats .stat-number,
.about-stat .stat-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand);
}

.community-stats .stat-label,
.about-stat .stat-label {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 4px;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

.community-cta,
.about-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px;
    border-radius: 0;
}

.community-cta h2,
.about-cta h2 {
    font-size: 30px;
    margin-bottom: 12px;
    color: #fff;
}

.community-cta p,
.about-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    color: #fff;
}

.about-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.about-stat {
    background: var(--brand-light);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 34px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.about-section h2 {
    font-size: 26px;
    color: var(--brand);
    margin-bottom: 16px;
    font-weight: 800;
}

.about-section h3 {
    font-size: 20px;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 700;
}

.about-section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    margin-bottom: 14px;
}

.about-section ul {
    list-style: none;
    margin-top: 16px;
}

.about-section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.about-section li:last-child {
    border-bottom: none;
}

.about-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 800;
}

.about-section li strong {
    color: var(--brand);
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.legacy-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.legacy-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.legacy-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.legacy-card p {
    font-size: 13.5px;
    color: var(--text-2);
    margin-bottom: 0;
}

.about-cta {
    border-radius: var(--radius-lg);
    margin: 8px 0 48px;
}

/* --------------------------------------------------------------------------
   13. Reservation
   -------------------------------------------------------------------------- */
.reservemain {
    display: flex;
    gap: 24px;
    padding: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.reservestudentinfo {
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.reservestudentinfo h2,
.reserveform h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-light);
}

.reservestudentinfo-content p {
    font-size: 14px;
    margin-bottom: 10px;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.reservestudentinfo-content p span:first-child {
    font-weight: 700;
    color: var(--text-2);
}

.reservestudentinfo-content p span:last-child {
    color: var(--brand);
    font-weight: 600;
}

.reserveform {
    flex: 1;
    min-width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.software-availability-section label {
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
    display: block;
}

body .software-badge {
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid rgba(77, 47, 178, 0.18);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

body .software-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

body .no-software-text {
    color: var(--text-3);
    font-style: italic;
    font-size: 14px;
}

.pcselection {
    margin-top: 18px;
}

.pcselection label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
    display: block;
}

.pcselectbtn {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.btnreserve {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    font-size: 15px;
}

.my-reservations-section {
    padding: 0 28px 40px;
}

/* PC grids */
.pc-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}

.pc-box {
    padding: 14px 8px;
    text-align: center;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
}

.pc-available {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.pc-available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

.pc-unavailable,
.pc-reserved {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.25);
    cursor: not-allowed;
}

.pc-disabled {
    background: var(--neutral-bg);
    color: var(--text-3);
    border: 1px solid var(--border);
    cursor: not-allowed;
}

.pc-box.selected {
    box-shadow: 0 0 0 3px var(--brand);
    background: var(--brand-light);
    color: var(--brand);
}

/* Admin PC grid */
.admin-pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-pc-card {
    padding: 14px 8px;
    text-align: center;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
}

.admin-pc-card.enabled {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.25);
}

.admin-pc-card.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

.admin-pc-card.disabled {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.25);
}

.admin-pc-card.disabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

.pc-status-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    opacity: 0.8;
}

/* Feedback rating */
.rating {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.rating .star {
    font-size: 30px;
    cursor: pointer;
    color: var(--border-strong);
    transition: color 0.15s, transform 0.15s;
}

.rating .star:hover {
    color: #FBBF24;
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   14. Edit Profile (inline-styled page — overridden with higher specificity)
   -------------------------------------------------------------------------- */
body .edit-profile-container {
    max-width: 640px;
    margin: 40px auto;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

body .profile-picture-section {
    text-align: center;
    margin-bottom: 26px;
}

body .profile-picture-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand);
    margin-bottom: 14px;
    background: var(--surface-2);
}

body .profile-picture-preview.default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--text-3);
}

body .edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body .edit-profile-form label {
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
}

body .edit-profile-form input,
body .edit-profile-form select {
    padding: 12px 14px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body .edit-profile-form input:focus,
body .edit-profile-form select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

body .btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

body .btn-save {
    flex: 1;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

body .btn-save:hover {
    background: var(--brand-dark);
    box-shadow: var(--shadow-brand);
}

body .btn-cancel {
    flex: 1;
    background: var(--neutral);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

body .btn-cancel:hover {
    background: #4B5563;
}

body .message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

body .message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

body .message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

/* --------------------------------------------------------------------------
   15. Software Availability Page (mostly inline-styled)
   -------------------------------------------------------------------------- */
.software-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.software-page-container .form-group select {
    width: 100%;
}

/* --------------------------------------------------------------------------
   16. Admin Register (inline-styled page — overridden with higher specificity)
   -------------------------------------------------------------------------- */
body .temp-register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    padding: 20px;
}

body .temp-register-box {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

body .temp-register-box h1 {
    text-align: center;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 24px;
}

body .subtitle {
    text-align: center;
    color: var(--text-3);
    margin-bottom: 24px;
    font-size: 14px;
}

body .warning {
    background: var(--warning-bg);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: var(--warning);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 12px;
    text-align: center;
}

body .temp-register-box .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body .temp-register-box .form-group input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 47, 178, 0.12);
}

body .temp-register-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

body .temp-register-btn:hover {
    background: var(--brand-dark);
    box-shadow: var(--shadow-brand);
}

body .back-link {
    text-align: center;
    margin-top: 20px;
}

body .back-link a {
    color: var(--brand);
    font-size: 14px;
}

body .back-link a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main > .left .title2 {
        font-size: 36px;
    }

    .nav .links {
        gap: 2px;
    }

    .nav .links a {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav {
        height: auto;
        min-height: var(--nav-h);
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav .CCS {
        font-size: 16px;
        padding: 0 6px;
    }

    .nav .links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .nav > button {
        margin-left: auto;
    }

    .notification-menu {
        right: -90px;
        width: 300px;
    }

    .main {
        padding: 18px;
    }

    .main > .left {
        padding: 36px 28px;
    }

    .main > .left .title2 {
        font-size: 32px;
    }

    .leaderboard-section {
        margin: 12px 18px 32px;
        padding: 20px;
    }

    .login-container,
    .register-container {
        flex-direction: column;
    }

    .computer-logo {
        display: none;
    }

    .login-form,
    .register-form {
        width: 100%;
        max-width: 420px;
    }

    .reservemain,
    .main1 {
        flex-direction: column;
    }

    .reservestudentinfo {
        width: 100%;
    }

    .formrow {
        flex-direction: column;
    }

    body .form-row {
        grid-template-columns: 1fr;
    }

    .student-header,
    .records-header,
    .sit-in-header,
    .history-header,
    .reservationrequestheader {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-controls,
    .records-controls,
    .history-controls,
    .reservationrequestcontrols {
        width: 100%;
    }

    .search-box {
        flex: 1;
    }

    .search-box input {
        width: 100%;
        flex: 1;
    }

    .community-hero h1,
    .about-hero h1 {
        font-size: 32px;
    }

    .community-stats {
        gap: 24px;
        padding: 22px;
    }

    .about-content {
        padding: 32px 18px;
    }

    .about-section {
        padding: 24px;
    }

    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .statistic,
    .admin-announcements-section {
        min-width: 100%;
    }
}
