/*  GLOBAL RESET & ROOT VARIABLES */

:root {
    --chester-red: #d32f2f;
    --chester-red-dark: #b52a2a;
    --chester-red-light: rgba(211, 47, 47, 0.15);
    --primary-black: #1a1a1a;
    --dark-grey: #333;
    --light-bg: #f8f9fa;
    --border-radius: 8px;
    --border-color: #ddd;
}

/*  GLOBAL BASE */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    background: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
    margin: 0;
    padding: 0;
}

/* NAVBAR */

.navbar {
    background: var(--primary-black);
    border-bottom: 4px solid var(--chester-red);
    padding: 12px 0;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: var(--dark-grey);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

    .menu-toggle:hover {
        background: var(--chester-red);
    }

.navbar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

    .navbar-link:hover {
        color: var(--chester-red);
    }


.nav-logo {
    height: 60px; /* adjust as needed */
    width: auto; /* keeps aspect ratio */
}



/* PROFILE DROPDOWN */

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    object-fit: cover;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 0;
    width: 180px;
    display: none;
}

    .dropdown-menu.show {
        display: block;
    }

.dropdown-item {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--dark-grey);
}

    .dropdown-item:hover {
        background: var(--chester-red-light);
    }

    .dropdown-item.logout {
        color: var(--chester-red);
    }

/* SIDE MENU */

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 2000;
}

    .side-menu.open {
        left: 0;
    }

.side-menu-close {
    font-size: 24px;
    cursor: pointer;
    text-align: right;
}

.side-menu-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.side-menu-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--dark-grey);
}

    .side-menu-link:hover {
        background: var(--chester-red-light);
        color: var(--chester-red);
    }

/* GLOBAL CARDS */

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

    .card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
    }

/* DASHBOARD GRID LAYOUT */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.menu-link {
    text-decoration: none;
    color: var(--dark-grey);
}

    .menu-link:hover {
        color: var(--chester-red);
    }

/* DASHBOARD CARDS */

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .dashboard-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
        color: var(--chester-red);
    }

/*  STUDENT DASHBOARD */

.progress-card {
    padding: 25px;
    margin-bottom: 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-info h5 {
    font-weight: 700;
    margin-bottom: 6px;
}

.progress-info p {
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.progress-bar-container {
    width: 50%;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1c1c1c;
    color: white;
    text-align: center;
    line-height: 24px;
    border-radius: 6px 0 0 6px;
    min-width: 40px;
}
/*dropdown check-in*/
.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-pill {
    border: none;
    border-radius: 18px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.pill-checked {
    background: #e6f4ea;
    color: #1b7f3a;
}

.pill-absent {
    background: #ffe8ee;
    color: #c62828;
}

.status-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 130px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

    .status-menu.show {
        display: block;
    }

    .status-menu button {
        display: block;
        width: 100%;
        padding: 10px 14px;
        border: none;
        background: white;
        text-align: left;
        cursor: pointer;
    }

        .status-menu button:hover {
            background: #f2f2f2;
        }

/* STAFF DASHBOARD */

.staff-portal .menu-title {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-grey);
}

.staff-portal .menu-grid {
    grid-template-columns: repeat(3, 1fr);
}

.staff-portal .dashboard-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .staff-portal .dashboard-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
        color: var(--chester-red);
    }

/*  PORTAL-SPECIFIC CARD TWEAKS */

.student-portal .card {
    border-color: #ccc;
}

.student-portal .table {
    width: 100%;
    border-collapse: collapse;
}

.student-portal th,
.student-portal td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.staff-portal .card {
    border-color: #bbb;
}

.supervisor-portal .dashboard-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
}

    .supervisor-portal .dashboard-card:hover {
        background: var(--chester-red-light);
        border-color: var(--chester-red);
    }

/* STATUS BADGES */

.status-checked {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-absent {
    background: #ffebee;
    color: #c62828;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/*  LOGIN PAGE  */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
}

    /* Login card */
    .login-container .login-card {
        background: white;
        padding: 40px;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        width: 100%;
        max-width: 450px;
    }

    /* Logo */
    .login-container .login-logo {
        max-width: 150px;
        margin-bottom: 20px;
    }

    /* Headings */
    .login-container h2 {
        font-weight: 700;
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: var(--dark-grey);
    }

    /* Form labels */
    .login-container .form-group label {
        font-weight: 600;
        margin-bottom: 5px;
        display: block;
    }

    /* Inputs */
    .login-container .form-input,
    .login-container .form-select {
        width: 100%;
        padding: 12px;
        margin-bottom: 20px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 1rem;
        box-sizing: border-box;
    }

        .login-container .form-input:focus {
            outline: none;
            border-color: var(--chester-red);
            box-shadow: 0 0 0 2px rgba(227, 34, 25, 0.1);
        }

    /* Login button */
    .login-container .btn-login {
        background-color: var(--chester-red);
        color: white;
        width: 100%;
        padding: 14px;
        border: none;
        border-radius: 4px;
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .login-container .btn-login:hover {
            background-color: var(--chester-red-dark);
        }

    /* Forgot password link */
    .login-container .forgot-password {
        color: var(--chester-red);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
    }

        .login-container .forgot-password:hover {
            text-decoration: underline;
        }

    /* Navbar theme (login layout only) */
    .login-container .navbar-custom {
        background: white;
        border-bottom: 1px solid #ddd;
    }




/* ATTENDANCE PAGE */

.attendance-container {
    background: var(--light-bg);
    padding: 30px 20px;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
}

    .attendance-container h2 {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--primary-black);
        margin-bottom: 20px;
        text-align: center;
    }

    .attendance-container table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .attendance-container th,
    .attendance-container td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .attendance-container th {
        background: var(--chester-red);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .attendance-container tr:hover {
        background: var(--chester-red-light);
    }

    .attendance-container .status-active {
        color: var(--chester-red);
        font-weight: 600;
    }

    .attendance-container .status-warning {
        color: #ff9800;
        font-weight: 600;
    }

    .attendance-container .footer-note {
        margin-top: 20px;
        font-size: 0.85rem;
        color: #777;
        text-align: center;
    }












/* APPRAISAL PAGE  */

.appraisal-page {
    background-color: var(--light-bg);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

    .appraisal-page .card {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 25px;
        margin-bottom: 25px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .appraisal-page .card:hover {
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        }

    /* Page Header */
    .appraisal-page h2 {
        color: var(--chester-red);
        font-weight: 700;
        text-align: center;
        margin-bottom: 30px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Form Labels */
    .appraisal-page .form-label {
        font-weight: 600;
        color: var(--primary-black);
        margin-bottom: 8px;
    }

    /* Form Inputs */
    .appraisal-page .form-input,
    .appraisal-page .form-control {
        border-radius: 6px;
        border: 1px solid var(--border-color);
        padding: 12px;
        width: 100%;
    }

        .appraisal-page .form-input:focus,
        .appraisal-page .form-control:focus {
            border-color: var(--chester-red);
            box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
            outline: none;
        }

    /* Rating Options */
    .appraisal-page .rating-options {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .appraisal-page .rating-options input[type="radio"] {
            margin-right: 4px;
            cursor: pointer;
        }

    /* Rating Grid (legacy support) */
    .appraisal-page .rating-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--chester-red-light);
        padding: 15px 20px;
        border-radius: 8px;
        margin: 15px 0;
    }

    .appraisal-page .rating-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.85rem;
        font-weight: 600;
    }

        .appraisal-page .rating-option input[type="radio"] {
            margin-bottom: 5px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

    /* Submit Button */
    .appraisal-page .btn-login {
        background-color: var(--chester-red);
        color: white;
        padding: 12px 30px;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        transition: background 0.3s ease;
    }

        .appraisal-page .btn-login:hover {
            background-color: var(--chester-red-dark);
        }

    /* Progress Bar (legacy support) */
    .appraisal-page progress {
        width: 100%;
        height: 12px;
        border-radius: 10px;
        accent-color: var(--chester-red);
    }











/* PROFILE SETTINGS PAGE */

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--light-bg);
    color: var(--dark-grey);
}

    /* TOP NAV  */

    .app-layout .top-nav {
        background: #ffffff;
        border-bottom: 1px solid #ebebeb;
        padding: 0 40px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 200;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .app-layout .top-nav-logo {
        display: flex;
        flex-direction: column;
        min-width: 220px;
    }

    .app-layout .logo-main {
        font-size: 0.92rem;
        font-weight: 700;
        color: #111;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }

    .app-layout .logo-sub {
        font-size: 0.65rem;
        color: #aaa;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .app-layout .top-nav-links {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: center;
    }

    .app-layout .nav-link {
        padding: 6px 16px;
        font-size: 0.85rem;
        color: #555;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.15s;
        font-weight: 500;
    }

    .app-layout .nav-link-active {
        background: #f0f0f0;
        color: #111;
        font-weight: 600;
    }

    .app-layout .top-nav-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 220px;
        justify-content: flex-end;
    }

    .app-layout .nav-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #111;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* PAGE CONTENT */

    .app-layout .page-content {
        flex: 1;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 2.5rem 3rem 3rem;
    }

    .app-layout .back-arrow {
        display: inline-block;
        font-size: 1.2rem;
        color: #555;
        margin-bottom: 1.2rem;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 6px;
        transition: background 0.15s;
    }

        .app-layout .back-arrow:hover {
            background: #f0f0f0;
        }

    .app-layout .page-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #111;
        margin-bottom: 1.8rem;
        letter-spacing: -0.3px;
    }

    /*  PROFILE FIELDS */

    .app-layout .profile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .app-layout .profile-pfp {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid #e8e8e8;
        background: #f5f5f5;
    }

    .app-layout .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .app-layout .initials-avatar {
        width: 100%;
        height: 100%;
        background: #111;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        font-weight: 700;
        border-radius: 50%;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .app-layout .profile-fields {
        background: #ffffff;
        border: 1px solid #ebebeb;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        width: 100%;
    }

    .app-layout .profile-field {
        display: flex;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f5f5f5;
        align-items: center;
    }

        .app-layout .profile-field:last-child {
            border-bottom: none;
        }

    .app-layout .field-label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #222;
        min-width: 260px;
    }

    .app-layout .field-value {
        font-size: 0.95rem;
        color: #555;
    }

    /* Editable input */
    .app-layout .field-input {
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 0.88rem;
        color: #111;
        background: #fff;
        outline: none;
        width: 280px;
        transition: border 0.15s;
    }

        .app-layout .field-input:focus {
            border-color: #aaa;
        }

    /*  SETTINGS GRID */

    .app-layout .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .app-layout .content-grid-full {
        grid-column: 1 / -1;
    }

    .app-layout .section-card {
        background: #ffffff;
        border: 1px solid #ebebeb;
        border-radius: 12px;
        padding: 1.8rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

        .app-layout .section-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        }

    .app-layout .section-label {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1.8px;
        color: #888;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid #f5f5f5;
        text-transform: uppercase;
    }

    .app-layout .row-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 0.4rem;
        border-bottom: 1px solid #f8f8f8;
        border-radius: 8px;
        transition: background 0.15s ease;
    }

        .app-layout .row-item:hover {
            background: #f6f6f6;
        }

        .app-layout .row-item:last-child {
            border-bottom: none;
        }

    .app-layout .setting-title {
        font-weight: 600;
        margin-bottom: 2px;
        font-size: 0.88rem;
        color: #111;
    }

    .app-layout .setting-title-danger {
        color: #cc0000;
    }

    .app-layout .setting-desc {
        color: #999;
        font-size: 0.8rem;
    }

    /* SELECTS & TOGGLES */

    .app-layout .settings-select {
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        padding: 8px 12px;
        width: 100%;
        color: #111;
        background: #fafafa;
        font-size: 0.88rem;
        outline: none;
        transition: border 0.15s;
    }

        .app-layout .settings-select:focus {
            border-color: #aaa;
        }

    .app-layout .toggle-input {
        width: 44px;
        height: 24px;
        cursor: pointer;
    }

    /* Modern dark mode toggle */
    .app-layout #darkMode {
        display: none;
    }

    .app-layout .dark-toggle {
        position: relative;
        width: 52px;
        height: 30px;
        display: inline-block;
    }

        .app-layout .dark-toggle .slider {
            position: absolute;
            inset: 0;
            background: #d0d0d0;
            border-radius: 50px;
            transition: 0.25s;
            cursor: pointer;
        }

            .app-layout .dark-toggle .slider:before {
                content: "";
                position: absolute;
                width: 22px;
                height: 22px;
                left: 4px;
                top: 4px;
                background: white;
                border-radius: 50%;
                transition: 0.25s;
                box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            }

    .app-layout #darkMode:checked + .slider {
        background: #111;
    }

        .app-layout #darkMode:checked + .slider:before {
            transform: translateX(22px);
        }

    /*  BUTTONS */

    .app-layout .btn-save {
        background: #111;
        color: #fff;
        border-radius: 8px;
        font-size: 0.88rem;
        border: none;
        padding: 10px 28px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 1.2rem;
        letter-spacing: 0.2px;
        transition: background 0.15s;
    }

        .app-layout .btn-save:hover {
            background: #333;
        }

    .app-layout .btn-action {
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        color: #333;
        background: #fff;
        padding: 6px 16px;
        font-size: 0.83rem;
        cursor: pointer;
        font-weight: 500;
        white-space: nowrap;
        transition: background 0.15s;
    }

        .app-layout .btn-action:hover {
            background: #f5f5f5;
        }

    .app-layout .btn-danger-outline {
        border-radius: 8px;
        border: 1px solid #e8c8c8;
        color: #cc0000;
        background: #fff8f8;
        padding: 6px 16px;
        font-size: 0.83rem;
        cursor: pointer;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.15s;
    }

        .app-layout .btn-danger-outline:hover {
            background: #cc0000;
            color: #fff;
            border-color: #cc0000;
        }

    /*  NOTIFICATIONS */

    .app-layout .notification-card {
        border: 1px solid #ebebeb;
        border-radius: 12px;
        margin-bottom: 0.7rem;
        padding: 1.2rem 1.5rem;
        background: #fff;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        transition: box-shadow 0.15s;
    }

        .app-layout .notification-card:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

    .app-layout .notification-card-unread {
        border-left: 3px solid #111 !important;
    }

    .app-layout .notification-card-read {
        border-left: 3px solid #e8e8e8 !important;
        opacity: 0.65;
    }

    .app-layout .notification-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f5f5f5;
        font-size: 0.85rem;
        font-weight: 700;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ebebeb;
    }

    .app-layout .notification-category {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #111;
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .app-layout .notification-message {
        font-size: 0.92rem;
        color: #555;
        margin-bottom: 4px;
        line-height: 1.4;
    }

    .app-layout .notification-time {
        font-size: 0.74rem;
        color: #bbb;
    }

    .app-layout .btn-mark-read {
        background: #111;
        color: #fff;
        border-radius: 6px;
        font-size: 0.76rem;
        border: none;
        white-space: nowrap;
        padding: 5px 12px;
        font-weight: 600;
        cursor: pointer;
        align-self: center;
        transition: background 0.15s;
    }

        .app-layout .btn-mark-read:hover {
            background: #333;
        }

    .app-layout .badge-read {
        background: #f5f5f5;
        color: #aaa;
        border-radius: 6px;
        font-size: 0.73rem;
        padding: 4px 10px;
        border: 1px solid #ebebeb;
        align-self: center;
        white-space: nowrap;
        font-weight: 500;
    }

    /* EMPTY STATE */

    .app-layout .empty-state {
        border: 1px solid #ebebeb;
        border-radius: 12px;
        padding: 3rem;
        text-align: center;
        font-size: 0.95rem;
        color: #aaa;
        background: #fff;
    }

    /* FOOTER */

    .app-layout .page-footer {
        background: #ffffff;
        border-top: 1px solid #ebebeb;
        padding: 16px 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .app-layout .footer-logo {
        font-size: 0.82rem;
        font-weight: 700;
        color: #333;
    }

    .app-layout .footer-divider {
        color: #ddd;
        font-size: 0.82rem;
    }

    .app-layout .footer-text {
        font-size: 0.8rem;
        color: #bbb;
    }

    /*  PROFILE SETTINGS CONFIRM POPUP  */

    .app-layout .confirm-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        display: none; /* JS sets this to flex */
        align-items: center;
        justify-content: center;
        z-index: 9999;
        backdrop-filter: blur(3px);
    }

    .app-layout .confirm-modal {
        width: 420px;
        background: #ffffff;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 12px 40px rgba(0,0,0,0.18);
        animation: modalPop 0.2s ease;
    }

    .app-layout .confirm-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

        .app-layout .confirm-header h3 {
            font-size: 1.1rem;
        }

    .app-layout .modal-close {
        border: none;
        background: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: #999999;
    }

    .app-layout .confirm-body {
        padding: 1.5rem;
        font-size: 0.92rem;
        color: #555555;
        line-height: 1.5;
    }

    .app-layout .confirm-warning {
        margin-top: 12px;
        color: #111111;
    }

    .app-layout .confirm-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 1rem 1.5rem;
        border-top: 1px solid #f5f5f5;
    }

    .app-layout .btn-cancel {
        border: 1px solid #dddddd;
        background: #ffffff;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
    }

    .app-layout .btn-confirm {
        background: #111111;
        color: white;
        border: none;
        padding: 8px 18px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
    }

        .app-layout .btn-confirm:hover {
            background: #333333;
        }

    /*  MODALS */

    .app-layout .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .app-layout .modal-box {
        background: #ffffff;
        padding: 22px;
        border-radius: 14px;
        width: 380px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.18);
        animation: modalPop 0.18s ease;
    }

@keyframes modalPop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.app-layout .modal-box h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #111;
}

.app-layout .modal-input {
    width: 100%;
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border 0.15s;
}

    .app-layout .modal-input:focus {
        border-color: #999;
    }

.app-layout .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .app-layout .content-grid {
        grid-template-columns: 1fr;
    }
}






/* TIMESHEET PAGES  */

.timesheet-page {
    padding: 20px;
    background: var(--light-bg);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* TOP SECTION */

    .timesheet-page .top-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .timesheet-page .ts-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--primary-black);
    }

    .timesheet-page .search-box {
        padding: 10px 14px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        width: 220px;
        outline: none;
    }

        .timesheet-page .search-box:focus {
            border-color: var(--chester-red);
            box-shadow: 0 0 0 2px rgba(211,47,47,0.15);
        }

    /* BACK ROW */

    .timesheet-page .back-row {
        margin-bottom: 15px;
    }

    .timesheet-page .icon-btn {
        background: white;
        border: 1px solid var(--border-color);
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .timesheet-page .icon-btn:hover {
            background: var(--chester-red-light);
        }

    /* TABLE-BASED TIMESHEET PAGES (Staff 1 + Staff 2) */

    .timesheet-page .table-wrap {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
    }

    .timesheet-page table {
        width: 100%;
        border-collapse: collapse;
    }

    .timesheet-page th {
        background: var(--primary-black);
        color: white;
        padding: 14px;
        text-align: left;
        font-size: 0.95rem;
    }

    .timesheet-page td {
        padding: 14px;
        border-bottom: 1px solid #eee;
        font-size: 0.95rem;
    }

    .timesheet-page tr:hover td {
        background: #fafafa;
    }

    /*  CALENDAR-BASED TIMESHEET PAGES (Student + Supervisor) */

    .timesheet-page .app {
        background: white;
        border-radius: 12px;
        padding: 20px;
        border: 1px solid var(--border-color);
    }

    /* Month row */
    .timesheet-page .month-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .timesheet-page .month-label {
        font-size: 1.4rem;
        font-weight: 700;
    }

    /* View toggle */
    .timesheet-page .view-toggle {
        display: flex;
        gap: 6px;
    }

    .timesheet-page .vtog {
        padding: 6px 14px;
        border: 1px solid var(--border-color);
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
    }

        .timesheet-page .vtog.active {
            background: var(--chester-red);
            color: white;
            border-color: var(--chester-red);
        }

    /* Week navigation */
    .timesheet-page .nav-row {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 12px;
        gap: 10px;
    }

    .timesheet-page .nav-btn {
        padding: 6px 12px;
        border: 1px solid var(--border-color);
        background: white;
        border-radius: 6px;
        cursor: pointer;
    }

    .timesheet-page .nav-label {
        font-weight: 600;
    }

    /* Calendar grid */
    .timesheet-page .cal {
        margin-top: 10px;
    }

    .timesheet-page .cal-heads {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .timesheet-page .cal-head {
        padding: 10px 0;
        color: var(--primary-black);
    }

    .timesheet-page .cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        min-height: 260px;
    }

    .timesheet-page .cal-cell {
        background: #fafafa;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 8px;
        min-height: 80px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .timesheet-page .cal-cell:hover {
            background: var(--chester-red-light);
        }

        /* Selected day */
        .timesheet-page .cal-cell.selected {
            border: 2px solid var(--chester-red);
            background: #fff5f5;
        }

    /* Loading */
    .timesheet-page .loading {
        grid-column: 1 / -1;
        text-align: center;
        padding: 20px;
        color: #777;
    }

    /*  SHIFT SECTION (Student + Supervisor) */

    .timesheet-page .shift-section {
        margin-top: 20px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 20px;
    }

    .timesheet-page .no-shift {
        text-align: center;
        color: #777;
        padding: 20px 0;
    }

    /*  SUPERVISOR — BOTTOM ROW ADD BUTTON */

    .timesheet-page .bottom-row {
        display: flex;
        justify-content: flex-end;
        margin-top: 20px;
    }

    .timesheet-page .add-btn {
        width: 48px;
        height: 48px;
        background: var(--chester-red);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.8rem;
        cursor: pointer;
        transition: background 0.2s;
    }

        .timesheet-page .add-btn:hover {
            background: var(--chester-red-dark);
        }

    /*  SUPERVISOR MODALS (Absence, Delete, Create Shift) */

    .timesheet-page .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 5000;
    }

        .timesheet-page .overlay.show {
            display: flex;
        }

    .timesheet-page .modal {
        background: white;
        padding: 25px;
        border-radius: 12px;
        width: 380px;
        max-width: 90%;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .timesheet-page .modal-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .timesheet-page .modal-sub {
        font-size: 0.9rem;
        color: #777;
        margin-bottom: 15px;
    }


/*Overlay check css*/
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .overlay.show {
        display: flex;
    }

    .overlay .modal {
        display: block;
        background: #fff;
        color: #222;
        padding: 24px;
        width: 360px;
        border-radius: 12px;
        border: 1px solid #ccc;
        box-shadow: 0 8px 32px rgba(0,0,0,.3);
        z-index: 10000;
        position: relative;
    }

/* Form fields inside modals */
.timesheet-page .form-field {
    margin-bottom: 15px;
}

.timesheet-page .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.timesheet-page .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}

    .timesheet-page .form-input:focus {
        border-color: var(--chester-red);
        box-shadow: 0 0 0 2px rgba(211,47,47,0.15);
    }

/* Row of two inputs */
.timesheet-page .form-row {
    display: flex;
    gap: 12px;
}

/* Modal actions */
.timesheet-page .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.timesheet-page .btn-cancel {
    background: #eee;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.timesheet-page .btn-submit {
    background: var(--chester-red);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

    .timesheet-page .btn-submit:hover {
        background: var(--chester-red-dark);
    }

.timesheet-page .btn-danger {
    background: #c62828;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

    .timesheet-page .btn-danger:hover {
        background: #a61f1f;
    }

/* Delete modal icon */
.timesheet-page .confirm-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}







/* type of shift indicaters */
.bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.bar {
    height: 6px;
    width: 42px;
    border-radius: 8px;
}

.bar-placement {
    background: #222;
}

.bar-wfh {
    background: #11883b;
}

.bar-holiday {
    background: #777;
}
/*indicato student supervisor view timesheet*/
.student-colour-1 {
    background: #6f42c1;
}

.student-colour-2 {
    background: #198754;
}

.student-colour-3 {
    background: #0d6efd;
}

.student-colour-4 {
    background: #fd7e14;
}

.student-colour-5 {
    background: #d63384;
}

/*lmodal overlay*/
#checkin-overlay .modal,
#absent-overlay .modal,
#delete-overlay .modal {
    width: 340px;
    min-height: auto;
    max-height: 90vh;
    padding: 24px;
}

/* MISC */

.dark-mode .status-checked {
    background: rgba(76,175,80,0.15) !important;
    color: #81c784 !important;
}

.dark-mode .status-absent {
    background: rgba(244,67,54,0.15) !important;
    color: #ef9a9a !important;
}

/*Attendance pages student/supervisor */
/* Main attendance page container. */
.attendance-container {
    padding: 24px;
}

/* Top section containing page title and attendance percentage. */
.attendance-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Attendance percentage display. */
.attendance-percentage {
    text-align: center;
}

    .attendance-percentage strong {
        display: block;
        font-size: 42px;
    }

/* Individual attendance record card. */
.attendance-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 18px;
    background: #fff;
    overflow: hidden;
}

/* Top section of each attendance card. */
.attendance-card-header {
    padding: 12px 18px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
}

/* Body section of each attendance card. */
.attendance-card-body {
    padding: 16px 18px;
}

/* Checked-in status text. */
.status-checked {
    color: #2e7d32;
    font-weight: 600;
}

/* Absent status text. */
.status-absent {
    color: #c62828;
    font-weight: 600;
}

/* Pending status text. */
.status-pending {
    color: #666;
    font-weight: 600;
}

/* Popup overlay background. */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    /* Shows popup when JavaScript adds the show class. */
    .overlay.show {
        display: flex;
    }

    /* Popup modal box. */
    .overlay .modal {
        width: 360px;
        max-width: 90vw;
        background: #fff;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,.25);
    }

/* Popup action buttons. */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/*Timesheet/Shift history Staff tables/page */
.staff-page {
    padding: 32px 48px;
}

.back-btn {
    border: none;
    background: none;
    font-size: 36px;
    cursor: pointer;
    margin-bottom: 32px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .page-header h1 {
        font-size: 42px;
        font-weight: 400;
    }

.search-box {
    width: 240px;
    padding: 8px 18px;
    border: 1px solid #999;
    border-radius: 18px;
    font-size: 16px;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #999;
    background: white;
}

    .staff-table th,
    .staff-table td {
        border: 1px solid #999;
        padding: 22px 34px;
        font-size: 20px;
        text-align: left;
    }

    .staff-table tbody tr {
        cursor: pointer;
    }

        .staff-table tbody tr:hover {
            background: #f3f3f3;
        }

.check-icon {
    color: #6f42c1;
    font-weight: bold;
    margin-left: 20px;
}

.warning-icon {
    color: #e6a100;
    font-weight: bold;
    margin-left: 20px;
}

.status-checked {
    color: #2e7d32;
    font-weight: 600;
}

.status-absent {
    color: #c62828;
    font-weight: 600;
}

.status-pending {
    color: #666;
    font-weight: 600;
}

.reason-box {
    display: inline-block;
    background: #bdbdbd;
    color: #222;
    border: 1px solid #777;
    border-radius: 12px;
    padding: 14px 22px;
    margin-left: 16px;
    min-width: 240px;
}



/* RESPONSIVE RULES (GLOBAL + PAGE SPECIFIC) */

/*  GLOBAL RESPONSIVE */

@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }

    .navbar-links {
        display: none;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        height: auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .menu-toggle {
        padding: 6px 10px;
    }
}

/* LOGIN PAGE RESPONSIVE */

@media (max-width: 480px) {
    .login-container .login-card {
        padding: 25px;
    }

    .login-container h2 {
        font-size: 1.4rem;
    }
}

/*  APPRAISAL PAGE RESPONSIVE */

@media (max-width: 600px) {
    .appraisal-page {
        padding: 20px 10px;
    }

        .appraisal-page .card {
            padding: 18px;
        }
}

/* PROFILE SETTINGS RESPONSIVE */

@media (max-width: 900px) {
    .app-layout .content-grid {
        grid-template-columns: 1fr;
    }

    .app-layout .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .app-layout .field-label {
        min-width: auto;
    }

    .app-layout .field-input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .app-layout .page-content {
        padding: 1.5rem;
    }

    .app-layout .top-nav {
        padding: 0 20px;
    }

    .app-layout .profile-top-row {
        flex-direction: column;
        gap: 15px;
    }
}



@media (max-width: 900px) {
    .timesheet-page .cal-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .timesheet-page .cal-heads {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .timesheet-page .top-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timesheet-page .search-box {
        width: 100%;
    }

    .timesheet-page .month-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timesheet-page .cal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timesheet-page .form-row {
        flex-direction: column;
    }

    .timesheet-page .modal {
        width: 95%;
    }
}

@media (max-width: 420px) {
    .timesheet-page .cal-grid {
        grid-template-columns: 1fr;
    }

    .timesheet-page .vtog {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .timesheet-page .add-btn {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
}


.modal-field {
    margin-bottom: 12px;
}

.modal-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.modal-warning {
    font-size: 0.82rem;
    color: #cc0000;
    margin: 12px 0;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #f5c6c6;
}

/* Success and error alerts */
.success-alert {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
}

.error-alert {
    background: #fff5f5;
    color: #cc0000;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
}

/* Settings layout grid */
.settings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}


.setting-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lock-message {
    margin-top: 1.2rem;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666666;
}

html.dark-mode {
    background: #121212 !important;
}


body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0 !important;
}


.dark-mode .container {
    background: transparent;
}


.dark-mode .dropdown-menu {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

.dark-mode .dropdown-item {
    color: #ddd !important;
}

    .dark-mode .dropdown-item:hover {
        background: rgba(211, 47, 47, 0.15) !important;
        color: #fff !important;
    }

.dark-mode .app-layout .top-nav {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

.dark-mode .app-layout .logo-main {
    color: #ffffff !important;
}

.dark-mode .app-layout .logo-sub {
    color: #888888 !important;
}

.dark-mode .app-layout .nav-username {
    color: #cccccc !important;
}

.dark-mode .app-layout .page-content {
    background: #121212 !important;
}

.dark-mode .app-layout .profile-fields {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

.dark-mode .app-layout .profile-field {
    border-color: #2a2a2a !important;
}

.dark-mode .app-layout .field-label {
    color: #ffffff !important;
}

.dark-mode .app-layout .field-value {
    color: #bbbbbb !important;
}

.dark-mode .app-layout .page-title {
    color: #ffffff !important;
}

.dark-mode .app-layout .page-footer {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

.dark-mode .app-layout .footer-logo {
    color: #ffffff !important;
}

.dark-mode .app-layout .footer-text {
    color: #666666 !important;
}

.dark-mode .app-layout .section-label {
    color: #888888 !important;
    border-color: #333 !important;
}

.dark-mode .app-layout .setting-title {
    color: #ffffff !important;
}

.dark-mode .app-layout .setting-desc {
    color: #888888 !important;
}

.dark-mode .app-layout .settings-select {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.dark-mode .app-layout .row-item {
    border-color: #2a2a2a !important;
}

    .dark-mode .app-layout .row-item:hover {
        background: #1a1a1a !important;
    }

.dark-mode .app-layout .btn-action {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.dark-mode .app-layout .btn-save {
    background: #ffffff !important;
    color: #111111 !important;
}

    .dark-mode .app-layout .btn-save:hover {
        background: #e0e0e0 !important;
    }

.dark-mode .app-layout .btn-cancel {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.dark-mode .app-layout .btn-confirm {
    background: #ffffff !important;
    color: #111111 !important;
}

    .dark-mode .app-layout .btn-confirm:hover {
        background: #e0e0e0 !important;
    }

.dark-mode .app-layout .modal-box {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

    .dark-mode .app-layout .modal-box h3 {
        color: #ffffff !important;
    }

.dark-mode .app-layout .modal-input {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.dark-mode .app-layout .modal-label {
    color: #cccccc !important;
}

.dark-mode .app-layout .confirm-modal {
    background: #1b1b1b !important;
}

.dark-mode .app-layout .confirm-header h3 {
    color: #ffffff !important;
}

.dark-mode .app-layout .confirm-body {
    color: #bbbbbb !important;
}

.dark-mode .app-layout .confirm-warning {
    color: #ffffff !important;
}

.dark-mode .app-layout .notification-icon {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

.dark-mode .app-layout .notification-category {
    color: #ffffff !important;
}

.dark-mode .app-layout .notification-message {
    color: #aaaaaa !important;
}

.dark-mode .app-layout .back-arrow {
    color: #aaaaaa !important;
}

    .dark-mode .app-layout .back-arrow:hover {
        background: #2a2a2a !important;
        color: #ffffff !important;
    }

.dark-mode .app-layout .empty-state {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #888888 !important;
}

.dark-mode .app-layout .lock-message {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #aaaaaa !important;
}

.dark-mode .success-alert {
    background: #1a2a1a !important;
    color: #88cc88 !important;
    border-color: #336633 !important;
}

.dark-mode .error-alert {
    background: #2a1a1a !important;
    color: #ff8888 !important;
    border-color: #663333 !important;
}

.dark-mode .modal-warning {
    background: #2a1a1a !important;
    border-color: #663333 !important;
    color: #ff8888 !important;
}


.dark-mode ::-webkit-scrollbar {
    width: 10px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #121212;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}


/* Notifications Page Styling  */


/* ============================
   Notifications Page Styling
   ============================ */


/* Back Arrow */
.app-layout .back-arrow {
    font-size: 2.2rem;
    color: var(--chester-red);
    cursor: pointer;
    margin-bottom: 1.2rem;
    margin-left: 4px;
    transition: color 0.3s ease;
}

    .app-layout .back-arrow:hover {
        color: var(--primary-black);
    }


/* Filter Bar Layout */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}


    /* Filter Buttons (Improved Visibility) */
    .filter-bar a {
        color: var(--primary-black);
        background-color: #f0f0f0;
        border: 1px solid #d0d0d0;
        text-decoration: none;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: var(--border-radius);
        transition: all 0.25s ease;
    }

        .filter-bar a:hover {
            background-color: #e6e6e6;
            border-color: var(--chester-red);
            color: var(--primary-black);
        }

/* Active Filter Button */
.btn-filter-active {
    background-color: var(--chester-red) !important;
    color: #fff !important;
    border-color: var(--chester-red) !important;
}


/* Mark All as Read Button */
.btn-mark-all {
    background-color: var(--primary-black);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-mark-all:hover {
        background-color: var(--chester-red);
    }


/* Notification Cards */
.notification-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s ease;
}

    .notification-card:hover {
        transform: translateY(-3px);
    }

/* Unread Notification Highlight */
.notification-card-unread {
    border-left: 4px solid var(--chester-red);
}

/* Read Notification (Clearer Visual Indicator) */
.notification-card-read {
    border-left: 4px solid #bfbfbf;
    background-color: #fafafa;
}


/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--chester-red);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}


/* READ Badge contrast changed for accessibility */
.badge-read {
    background-color: #e0e0e0;
    color: #555;
    border: 1px solid #c2c2c2;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Empty State */
.empty-state {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 40px;
}

/* Base styling for the reason container */
.reason-box {
    display: inline-block;
    position: relative;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

    /* Hide the popup by default */
    .reason-box::after {
        content: attr(data-reason);
        position: absolute;
        left: 50%;
        top: -10px;
        transform: translate(-50%, -100%);
        background: #fff;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 10px 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        white-space: pre-wrap;
        width: 220px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 100;
    }

    /* Show popup on hover */
    .reason-box:hover::after {
        opacity: 1;
        transform: translate(-50%, -110%);
    }

    /* subtle underline to indicate hoverable text */
    .reason-box strong {
        text-decoration: underline dotted;
        color: var(--chester-red);
        font-weight: 600;
    }


/* Staff Timesheet 1 page layout */
.staff-page {
    padding: 40px 60px;
    background-color: #f9fafc;
}

/* Page header */
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--chester-red);
    margin-bottom: 20px;
}

/* Search box */
.search-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    width: 240px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .search-box:focus {
        border-color: var(--chester-red);
        outline: none;
        box-shadow: 0 0 4px rgba(204, 0, 0, 0.3);
    }

/* Table styling */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .staff-table th {
        background-color: #f3f4f6;
        color: #333;
        font-weight: 600;
        text-align: left;
        padding: 14px 18px;
        border-bottom: 1px solid #e5e7eb;
    }

    .staff-table td {
        padding: 14px 18px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
        color: #444;
    }

    /* Hover row effect */
    .staff-table tr:hover {
        background-color: #fdf2f2;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

/* Status icons */
.check-icon {
    color: #16a34a;
    font-weight: bold;
    margin-left: 6px;
}

.warning-icon {
    color: #facc15;
    font-weight: bold;
    margin-left: 6px;
}

/* Percentage cell */
.staff-table td:last-child {
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .staff-page {
        padding: 20px;
    }

    .staff-table th, .staff-table td {
        padding: 10px;
    }
}