/*------------------------------
  RESET & BASE STYLES
-------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2f3e46;
    line-height: 1.4;
}

/*------------------------------
  HEADER (Logo + Title)
-------------------------------*/
.header-container {
    width: 100%;
    background: linear-gradient(to bottom, #d8dde2, #f2f4f7);
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 48px;
    margin-right: 12px;
}

.header-left .title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b262c;
    line-height: 1.1;
}

.header-left .subtitle {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: 2px;
}

.header-right img {
    height: 64px;
}

/*------------------------------
  NAVIGATION TABS
-------------------------------*/
.nav-tabs {
    width: 100%;
    background-color: #e2e6eb;
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    padding-left: 24px;
}

.nav-tabs li {
    list-style: none;
    position: relative;
    /* needed for the dropdown positioning */
    margin-right: 4px;
}

.nav-tabs li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: #1b262c;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    background-color: #cfd6dc;
    border: 1px solid #aab2b9;
    border-bottom: none;
    transition: background-color 0.2s;
}

/* Hover / Active states for top‐level tabs */
.nav-tabs li a:hover {
    background-color: #aab2b9;
    color: #fff;
}

.nav-tabs li a.active {
    background-color: #3b5a81;
    color: #fff;
    font-weight: bold;
    border-color: #2d486a;
}

/*------------------------------
  DROPDOWN MENU STYLES
-------------------------------*/
.nav-tabs li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    /* place right below the parent <a> */
    left: 0;
    background-color: #e2e6eb;
    border: 1px solid #aab2b9;
    border-top: none;
    min-width: 180px;
    z-index: 999;
}

.nav-tabs li:hover ul.dropdown {
    display: block;
}

.nav-tabs li ul.dropdown li {
    width: 100%;
}

.nav-tabs li ul.dropdown li a {
    padding: 8px 12px;
    border-bottom: 1px solid #aab2b9;
    background-color: #e2e6eb;
    color: #1b262c;
    border-radius: 0;
    font-size: 0.9rem;
}

.nav-tabs li ul.dropdown li a:hover {
    background-color: #cfd6dc;
    color: #fff;
}

.nav-tabs li ul.dropdown li:last-child a {
    border-bottom: none;
}

/*------------------------------
  WELCOME LINE
-------------------------------*/
.welcome-line {
    background-color: #fafafa;
    border-top: 1px solid #b0b8c0;
    border-bottom: 1px solid #b0b8c0;
    padding: 6px 24px;
    font-size: 0.9rem;
    color: #3a4a53;
}

.welcome-line a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 8px;
}

.welcome-line a:hover {
    text-decoration: underline;
}

/*------------------------------
  MAIN CONTENT AREA
-------------------------------*/
.main-container {
    max-width: 1200px;
    margin: 16px auto;
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    overflow: hidden;
}

.main-header {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b262c;
}

.main-content {
    padding: 0 24px 24px;
}

/* Links in green */
.main-content .quick-links {
    margin-bottom: 16px;
}

.main-content .quick-links a {
    display: inline-block;
    color: #388e3c;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 18px;
}

.main-content .quick-links a:hover {
    text-decoration: underline;
}

/* Separator line */
.separator {
    height: 1px;
    background-color: #aab2b9;
    margin-bottom: 16px;
}

/*------------------------------
  CALENDAR (STATIC) STYLING
-------------------------------*/
.calendar-container {
    overflow-x: auto;
}

.calendar-header {
    background-color: #dfe7ef;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #1b262c;
    border: 1px solid #aab2b9;
    border-bottom: none;
}

.calendar-nav {
    text-align: right;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #3a4a53;
    border: 1px solid #aab2b9;
    border-top: none;
    background-color: #f8f9fa;
}

.calendar-nav span {
    margin-left: 12px;
    cursor: pointer;
    color: #1a73e8;
}

.calendar-nav span:hover {
    text-decoration: underline;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aab2b9;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #aab2b9;
    width: 14.285%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    background-color: #f7fafe;
}

.calendar-table th {
    background-color: #d0d9e2;
    text-align: center;
    font-size: 0.95rem;
    color: #1b262c;
}

.calendar-table td span.date-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2e7d32;
    /* greenish like the original */
}

/*------------------------------
  FOOTER
-------------------------------*/
.footer {
    background-color: #e2e6eb;
    border-top: 1px solid #b0b8c0;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #3a4a53;
    text-align: center;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .line {
    margin: 4px 0;
}

/*----------------------------------------------------------------------*/
/*  ADDITIONAL STYLES FOR “My Courses” / “View Registered Students”     */
/*  / “Upload Results” PAGES                                             */
/*----------------------------------------------------------------------*/

/* Container for search bar + button */
.search-container {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-container button {
    padding: 8px 16px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #3b5a81;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-container button:hover {
    background-color: #2d486a;
}

/* General table styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.data-table th,
.data-table td {
    border: 1px solid #aab2b9;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.95rem;
}

.data-table th {
    background-color: #d0d9e2;
    color: #1b262c;
}

.data-table tr:nth-child(even) {
    background-color: #f7fafe;
}

/* Button styles inside table rows */
.table-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s;
}

.table-btn.view {
    background-color: #52796f;
}

.table-btn.view:hover {
    background-color: #3a5a4a;
}

.table-btn.upload {
    background-color: #bb3e03;
}

.table-btn.upload:hover {
    background-color: #8c2b01;
}

/* Simple form styling for Upload Results */
.upload-form {
    max-width: 480px;
}

.upload-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #1b262c;
}

.upload-form input[type="file"],
.upload-form select,
.upload-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
}

.upload-form button {
    padding: 10px 18px;
    font-size: 1rem;
    background-color: #3b5a81;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-form button:hover {
    background-color: #2d486a;
}

/*==============================================================================
  ADDITIONAL STYLES FOR “Manage Curriculum” PAGE
==============================================================================*/

/* Pink “View All Uploaded Curriculum” button */
.btn-view {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #e91e63;
    color: #e91e63;
    border-radius: 4px;
    background-color: transparent;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-view:hover {
    background-color: rgba(233, 30, 99, 0.1);
    color: #c2185b;
}

/* Container for “Show X entries” + Search */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.table-controls .entries-control {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #3a4a53;
}

.table-controls .entries-control select {
    margin-left: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
}

.table-controls .search-control input[type="text"] {
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 180px;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
}

.table-controls .search-control input[type="text"]::placeholder {
    color: #aab2b9;
}

/* Slight top padding to separate the “View All” button from page header */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.page-header-row h2 {
    font-size: 1.2rem;
    color: #1b262c;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Ensure the table still scrolls if it’s wider than the viewport */
.table-responsive {
    overflow-x: auto;
}

/* OPTIONAL: On very small screens, make “Show X entries” + Search stack */
@media (max-width: 600px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .table-controls .entries-control {
        margin-bottom: 8px;
    }

    .table-controls .search-control input[type="text"] {
        width: 100%;
    }
}

/*==============================================================================
  STYLES FOR VIEW CURRICULUM PAGE (DROPDOWNS & SEARCH)
==============================================================================*/

/* Container for the entire filter form */
.filter-container {
    max-width: 800px;
    margin: 0 auto 24px;
    /* center, with bottom margin */
    padding: 0 16px;
    /* some side padding for mobile */
}

.filter-container label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #1b262c;
    font-weight: 500;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* space between columns */
    margin-bottom: 16px;
}

.filter-group {
    flex: 1 1 200px;
    /* at least 200px, but grow equally */
    display: flex;
    flex-direction: column;
}

.filter-group select {
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    appearance: none;
    /* remove default arrow on some browsers */
}

/* Purple Search button */
.btn-search {
    display: inline-flex;
    align-items: center;
    background-color: #5c6bc0;
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
    /* small top margin if stacking below selects */
}

.btn-search:hover {
    background-color: #3f51b5;
}

/* Small search icon (using Unicode) */
.btn-search .icon-search {
    font-size: 1.1rem;
    margin-right: 6px;
}

/* RESPONSIVE ADJUSTMENTS (if any) */
@media (max-width: 600px) {
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-container {
        margin-bottom: 16px;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }
}

/*==============================================================================
  STYLES FOR “Course Allocation Results” PAGE
==============================================================================*/

/* Bulk Upload Button */
.btn-bulk {
    display: inline-flex;
    align-items: center;
    background-color: #1976d2;
    /* a nice blue */
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-bottom: 16px;
}

.btn-bulk:hover {
    background-color: #115293;
}

/* Icon inside Bulk Upload, optional Unicode icon */
.btn-bulk .icon-upload {
    font-size: 1.1rem;
    margin-right: 6px;
}

/* Adjust “Assign Lecturer” button if necessary */
.table-btn.assign {
    background-color: #2e7d32;
    /* dark green */
}

.table-btn.assign:hover {
    background-color: #27632a;
}

/* Ensure the “Assign Lecturer” icon has proper spacing */
.table-btn.assign .icon-assign {
    font-size: 1.1rem;
    margin-right: 6px;
}

/*==============================================================================
  MODAL STYLES (for Assign Lecturer dialog)
==============================================================================*/
.modal {
    display: none;
    /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* enable scroll if content is tall */
    background-color: rgba(0, 0, 0, 0.4);
    /* semi-transparent overlay */
}

.modal-content {
    background-color: #fff;
    margin: 8% auto;
    /* 8% from top, centered horizontally */
    padding: 20px;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    /* doesn’t grow beyond 600px */
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.modal-close:hover {
    color: #000;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1b262c;
}

/* Search input inside modal */
.modal-content input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    margin-bottom: 12px;
    outline: none;
}

/* Staff table inside modal */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 400px;
    /* will scroll if narrower */
}

.staff-table th,
.staff-table td {
    border: 1px solid #aab2b9;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.95rem;
}

.staff-table th {
    background-color: #d0d9e2;
    color: #1b262c;
}

.staff-table tr:nth-child(even) {
    background-color: #f7fafe;
}

/* Responsive wrapper for the staff table */
.staff-table-responsive {
    overflow-x: auto;
    margin-bottom: 12px;
}

/* “No results” message styling */
.modal-content .no-results {
    text-align: center;
    padding: 12px 0;
    color: #3a4a53;
}

/*==============================================================================
  UPDATED MODAL STYLES (using a <select> dropdown, not a table)
==============================================================================*/

/* Override previous table-specific modal styles if any */
.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 20px 24px;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Search input in modal */
.modal-content input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    margin-bottom: 12px;
    outline: none;
}

/* Dropdown <select> style */
.modal-content select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    margin-bottom: 16px;
    /* Allow scrolling if the list is long */
    max-height: 200px;
}

/* Assign button inside modal */
.modal-content .btn-assign-confirm {
    display: inline-flex;
    align-items: center;
    background-color: #2e7d32;
    /* green */
    color: #fff;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-content .btn-assign-confirm:hover {
    background-color: #27632a;
}

/* “×” close icon */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.modal-close:hover {
    color: #000;
}

/* “No matching staff found” message */
.modal-content .no-results {
    text-align: center;
    padding: 12px 0;
    color: #e53935;
    display: none;
    font-size: 0.95rem;
}

/* Ensure modal overlay covers full screen */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/*==============================================================================
  PROCESS RESULT PAGE STYLES
==============================================================================*/

.process-container {
    max-width: 600px;
    margin: 0 auto 24px;
    /* center, with bottom margin */
    padding: 0 16px;
    /* side padding for narrow screens */
}

.process-container h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #1b262c;
}

.process-form {
    display: flex;
    flex-direction: column;
}

.process-form .form-group {
    margin-bottom: 16px;
}

.process-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #1b262c;
    font-weight: 500;
}

.process-form select,
.process-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
}

.process-form input[type="radio"],
.process-form input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.1);
    vertical-align: middle;
}

.process-form .radio-label {
    margin-right: 20px;
    /* spacing between radio options */
    font-size: 0.95rem;
    color: #1b262c;
    vertical-align: middle;
}

.process-form .btn-generate {
    align-self: flex-start;
    background-color: #5c6bc0;
    /* purple */
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.process-form .btn-generate:hover {
    background-color: #3f51b5;
}

.process-form .note {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* Link styling for optional fields */
.process-form .optional-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 4px;
}

.process-form .optional-link:hover {
    text-decoration: underline;
}

/* Responsive: ensure form fields fill screen on very narrow devices */
@media (max-width: 480px) {
    .process-container {
        padding: 0 12px;
        margin-bottom: 16px;
    }

    .process-form .btn-generate {
        width: 100%;
        text-align: center;
    }
}

/*==============================================================================
  REVISED PROCESS RESULT STYLES
==============================================================================*/

/* 1. Make radio buttons larger & more prominent */
.process-form .large-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.process-form input[type="radio"] {
    width: 20px;
    /* larger circular area */
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    accent-color: #5c6bc0;
    /* purple accent on modern browsers */
}

.process-form .radio-label {
    font-size: 1rem;
    /* slightly larger text */
    font-weight: 600;
    color: #1b262c;
    vertical-align: middle;
}

/* 2. Important note box for “Class of Degree” */
.important-note {
    background-color: #ffe0b2;
    /* light orange background */
    border-left: 4px solid #fb8c00;
    /* dark orange border */
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #bf360c;
    border-radius: 3px;
}

/* 3. Shorten vertical spacing to make form feel less long */
.process-form .form-group {
    margin-bottom: 12px;
    /* reduced from 16px */
}

.process-container {
    max-width: 550px;
    /* slightly narrower to reduce vertical length */
    margin: 0 auto 24px;
    padding: 0 12px;
}

.process-form .btn-generate {
    margin-top: 16px;
    /* reduce top margin */
}

/* 4. Adjust heading and top spacing */
.process-container h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1b262c;
}

/* 5. Responsive tweaks */
@media (max-width: 480px) {
    .process-form .large-radio-group {
        flex-direction: column;
        gap: 16px;
    }
}

/*==============================================================================
  PROCESS RESULT: THREE‐COLUMN LAYOUT STYLES
==============================================================================*/

/* Container for a row of up to 3 fields */
.process-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* horizontal & vertical gaps between columns */
    margin-bottom: 12px;
    /* space below each “row” */
}

/* Each form group in a 3‐column grid */
.process-form .form-row .form-group {
    flex: 1 1 calc(33.333% - 10.666px);
    /* Explanation: 
     - 33.333% for three columns 
     - subtract a fraction of gap so that three + gaps fill 100% 
  */
    display: flex;
    flex-direction: column;
}

/* For the last row if fewer than 3 items, they still shrink/grow evenly */
.process-form .form-row .form-group:last-child {
    margin-bottom: 0;
}

/* Full‐width elements like External Examiner, Important Note, and Generate Button */
.process-form .full-width {
    flex: 1 1 100%;
    margin-bottom: 12px;
}

/* If you want the radio buttons in their own row (two items), 
   you can center them within a 3‐column grid (leaving one blank) */
.process-form .radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

/* Each radio container takes roughly one third */
.process-form .radio-row .radio-group {
    flex: 1 1 calc(33.333% - 10.666px);
    display: flex;
    align-items: center;
}

/* Larger radios & labels (from previous update) */
.process-form input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: #5c6bc0;
}

.process-form .radio-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1b262c;
}

/* Important note box */
.important-note {
    background-color: #ffe0b2;
    border-left: 4px solid #fb8c00;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #bf360c;
    border-radius: 3px;
}

/* Generate button alignment */
.process-form .btn-generate {
    margin-top: 0;
}

/* Responsive: at ≤768px, make every .form-group full width */
@media (max-width: 768px) {
    .process-form .form-row {
        flex-direction: column;
    }

    .process-form .form-row .form-group {
        flex: 1 1 100%;
    }

    .process-form .radio-row {
        flex-direction: column;
    }

    .process-form .radio-row .radio-group {
        flex: 1 1 100%;
        margin-bottom: 12px;
    }
}

/*==============================================================================
  MY ACTIVITIES PAGE – ADDITIONAL STYLES
==============================================================================*/

/* Card container around the activities table */
.activities-card {
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px auto;
    max-width: 1000px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Title of the card */
.activities-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b262c;
    margin-bottom: 16px;
}

/* Controls (Show entries + Search) */
.activities-card .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.controls .entries-control {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #3a4a53;
    margin-bottom: 8px;
}

.controls .entries-control select {
    margin-left: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
}

.controls .search-control input[type="text"] {
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 180px;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    outline: none;
    margin-bottom: 8px;
}

.controls .search-control input[type="text"]::placeholder {
    color: #aab2b9;
}

/* Table styling (reuse .data-table if available) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.data-table th,
.data-table td {
    border: 1px solid #aab2b9;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.95rem;
}

.data-table th {
    background-color: #f1f3f5;
    color: #1b262c;
}

.data-table tr:nth-child(even) {
    background-color: #f7fafe;
}

/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 4px;
}

.pagination li {
    display: inline;
}

.pagination li a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #1b262c;
    background-color: #fff;
    border: 1px solid #aab2b9;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.pagination li a:hover {
    background-color: #e1e5ea;
}

.pagination li a.active {
    background-color: #1976d2;
    color: #fff;
    border-color: #115293;
}

/* Responsive: stack controls on narrow screens */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls .entries-control,
    .controls .search-control {
        width: 100%;
        justify-content: space-between;
    }

    .controls .search-control {
        margin-top: 8px;
    }

    .controls .search-control input[type="text"] {
        width: 100%;
    }
}

/*------------------------------
  RESET & BASE STYLES
-------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2f3e46;
    line-height: 1.4;
}

/*------------------------------
  HEADER (Logo + Title)
-------------------------------*/
.header-container {
    width: 100%;
    background: linear-gradient(to bottom, #d8dde2, #f2f4f7);
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 48px;
    margin-right: 12px;
}

.header-left .title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b262c;
    line-height: 1.1;
}

.header-left .subtitle {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: 2px;
}

.header-right img {
    height: 64px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1b262c;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 16px;
}

/*------------------------------
  SIDEBAR NAVIGATION
-------------------------------*/
.sidebar {
    position: fixed;
    top: 140px;
    /* Start below header with more margin */
    left: 20px;
    /* Simple left margin */
    bottom: 120px;
    /* Larger bottom margin for much shorter height */
    width: 280px;
    background-color: #e2e6eb;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
    border: 1px solid #b0b8c0;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu>li {
    border-bottom: 1px solid #b0b8c0;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu>li>a:hover {
    background-color: #cfd6dc;
    color: #1b262c;
}

.nav-menu>li>a.active {
    background-color: #3b5a81;
    color: #fff;
    font-weight: 600;
}

.nav-menu>li>a .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-menu>li.open>a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown/Submenu Styles */
.dropdown {
    max-height: 0;
    overflow: hidden;
    background-color: #cfd6dc;
    transition: max-height 0.3s ease;
}

.dropdown.open {
    max-height: 400px;
}

.dropdown li {
    border-bottom: 1px solid #aab2b9;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background-color: #aab2b9;
    color: #1b262c;
}

/*------------------------------
  WELCOME LINE
-------------------------------*/
.welcome-line {
    background-color: #fafafa;
    border-bottom: 1px solid #b0b8c0;
    padding: 6px 24px;
    font-size: 0.9rem;
    color: #3a4a53;
}

.welcome-line a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 8px;
}

.welcome-line a:hover {
    text-decoration: underline;
}

/*------------------------------
  MAIN LAYOUT CONTAINER
-------------------------------*/
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.layout-container,
.welcome-line,
.footer {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
}

/*------------------------------
  MAIN CONTENT AREA
-------------------------------*/
.main-container {
    max-width: 1200px;
    margin: 16px 20px;
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    overflow: hidden;
}

.main-header {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b262c;
}

.main-content {
    padding: 0 24px 24px;
}

/* Links in green */
.main-content .quick-links {
    margin-bottom: 16px;
}

.main-content .quick-links a {
    display: inline-block;
    color: #388e3c;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 18px;
}

.main-content .quick-links a:hover {
    text-decoration: underline;
}

/* Separator line */
.separator {
    height: 1px;
    background-color: #aab2b9;
    margin-bottom: 16px;
}

/*------------------------------
  CALENDAR (STATIC) STYLING
-------------------------------*/
.calendar-container {
    overflow-x: auto;
}

.calendar-header {
    background-color: #dfe7ef;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #1b262c;
    border: 1px solid #aab2b9;
    border-bottom: none;
}

.calendar-nav {
    text-align: right;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #3a4a53;
    border: 1px solid #aab2b9;
    border-top: none;
    background-color: #f8f9fa;
}

.calendar-nav span {
    margin-left: 12px;
    cursor: pointer;
    color: #1a73e8;
}

.calendar-nav span:hover {
    text-decoration: underline;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aab2b9;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #aab2b9;
    width: 14.285%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    background-color: #f7fafe;
}

.calendar-table th {
    background-color: #d0d9e2;
    text-align: center;
    font-size: 0.95rem;
    color: #1b262c;
}

.calendar-table td span.date-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2e7d32;
}

/*------------------------------
  FOOTER
-------------------------------*/
.footer {
    background-color: #e2e6eb;
    border-top: 1px solid #b0b8c0;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #3a4a53;
    text-align: center;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .line {
    margin: 4px 0;
}

/*------------------------------
  RESPONSIVE DESIGN
-------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        margin: 16px 15px;
    }

    .sidebar {
        width: 260px;
        left: 15px;
    }

    .layout-container,
    .welcome-line,
    .footer {
        margin-left: 295px;
        /* 260px + 15px margins */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        top: 100px;
        left: 20px;
        right: 20px;
        bottom: 100px;
        width: auto;
        transform: translateX(-100%);
        border-radius: 12px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .layout-container,
    .welcome-line,
    .footer {
        margin-left: 0;
    }

    .main-container {
        margin: 16px 10px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .header-left .title {
        font-size: 1.3rem;
    }

    .header-left .subtitle {
        font-size: 0.8rem;
    }

    .welcome-line {
        padding: 6px 16px;
    }

    .main-content {
        padding: 0 16px 16px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 60px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-left img {
        height: 40px;
        margin-right: 8px;
    }

    .header-right img {
        height: 50px;
    }

    .header-left .title {
        font-size: 1.1rem;
    }

    .header-left .subtitle {
        font-size: 0.75rem;
    }

    .main-container {
        margin: 12px 8px;
    }

    .main-content .quick-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .calendar-table th,
    .calendar-table td {
        height: 50px;
        padding: 2px;
    }

    .calendar-table td span.date-number {
        font-size: 0.8rem;
    }
}

/* When sidebar is collapsed on desktop */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: 70px;
        left: 20px;
    }

    .sidebar.collapsed .nav-menu>li>a {
        padding: 16px 20px;
        justify-content: center;
    }

    .sidebar.collapsed .nav-menu>li>a span:not(.dropdown-arrow) {
        display: none;
    }

    .sidebar.collapsed .dropdown {
        display: none !important;
    }

    .layout-container.sidebar-collapsed,
    .welcome-line.sidebar-collapsed,
    .footer.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }
}

/*------------------------------
  RESET & BASE STYLES
-------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2f3e46;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*------------------------------
  HEADER (Logo + Title)
-------------------------------*/
.header-container {
    width: 100%;
    background: linear-gradient(to bottom, #d8dde2, #f2f4f7);
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 48px;
    margin-right: 12px;
}

.header-left .title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b262c;
    line-height: 1.1;
}

.header-left .subtitle {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: 2px;
}

.header-right img {
    height: 64px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1b262c;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 16px;
}

/*------------------------------
  SIDEBAR NAVIGATION
-------------------------------*/
.sidebar {
    position: fixed;
    top: 140px;
    /* Start below header with more margin */
    left: 20px;
    /* Simple left margin */
    bottom: 120px;
    /* Larger bottom margin for much shorter height */
    width: 280px;
    background-color: #e2e6eb;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
    border: 1px solid #b0b8c0;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu>li {
    border-bottom: 1px solid #b0b8c0;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu>li>a:hover {
    background-color: #cfd6dc;
    color: #1b262c;
}

.nav-menu>li>a.active {
    background-color: #3b5a81;
    color: #fff;
    font-weight: 600;
}

.nav-menu>li>a .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-menu>li.open>a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown/Submenu Styles */
.dropdown {
    max-height: 0;
    overflow: hidden;
    background-color: #cfd6dc;
    transition: max-height 0.3s ease;
}

.dropdown.open {
    max-height: 400px;
}

.dropdown li {
    border-bottom: 1px solid #aab2b9;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background-color: #aab2b9;
    color: #1b262c;
}

/*------------------------------
  WELCOME LINE
-------------------------------*/
.welcome-line {
    background-color: #fafafa;
    border-bottom: 1px solid #b0b8c0;
    padding: 6px 24px;
    font-size: 0.9rem;
    color: #3a4a53;
}

.welcome-line a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 8px;
}

.welcome-line a:hover {
    text-decoration: underline;
}

/*------------------------------
  MAIN LAYOUT CONTAINER
-------------------------------*/
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-container,
.welcome-line {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    flex: 1;
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
    /* Subtract header height */
}

.footer {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    margin-top: auto;
    /* Push footer to bottom */
}

/*------------------------------
  MAIN CONTENT AREA
-------------------------------*/
.main-container {
    max-width: 1200px;
    margin: 16px 20px;
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    /* Allow main content to grow */
}

.main-header {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b262c;
}

.main-content {
    padding: 0 24px 24px;
}

/* Links in green */
.main-content .quick-links {
    margin-bottom: 16px;
}

.main-content .quick-links a {
    display: inline-block;
    color: #388e3c;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 18px;
}

.main-content .quick-links a:hover {
    text-decoration: underline;
}

/* Separator line */
.separator {
    height: 1px;
    background-color: #aab2b9;
    margin-bottom: 16px;
}

/*------------------------------
  CALENDAR (STATIC) STYLING
-------------------------------*/
.calendar-container {
    overflow-x: auto;
}

.calendar-header {
    background-color: #dfe7ef;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #1b262c;
    border: 1px solid #aab2b9;
    border-bottom: none;
}

.calendar-nav {
    text-align: right;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #3a4a53;
    border: 1px solid #aab2b9;
    border-top: none;
    background-color: #f8f9fa;
}

.calendar-nav span {
    margin-left: 12px;
    cursor: pointer;
    color: #1a73e8;
}

.calendar-nav span:hover {
    text-decoration: underline;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aab2b9;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #aab2b9;
    width: 14.285%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    background-color: #f7fafe;
}

.calendar-table th {
    background-color: #d0d9e2;
    text-align: center;
    font-size: 0.95rem;
    color: #1b262c;
}

.calendar-table td span.date-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2e7d32;
}

/*------------------------------
  FOOTER
-------------------------------*/
.footer {
    background-color: #e2e6eb;
    border-top: 1px solid #b0b8c0;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #3a4a53;
    text-align: center;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .line {
    margin: 4px 0;
}

/*------------------------------
  RESPONSIVE DESIGN
-------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        margin: 16px 15px;
    }

    .sidebar {
        width: 260px;
        left: 15px;
    }

    .layout-container,
    .welcome-line {
        margin-left: 295px;
        /* 260px + 15px margins */
    }

    .footer {
        margin-left: 295px;
        /* 260px + 15px margins */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        top: 100px;
        left: 20px;
        right: 20px;
        bottom: 100px;
        width: auto;
        transform: translateX(-100%);
        border-radius: 12px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .layout-container,
    .welcome-line,
    .footer {
        margin-left: 0;
    }

    .main-container {
        margin: 16px 10px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .header-left .title {
        font-size: 1.3rem;
    }

    .header-left .subtitle {
        font-size: 0.8rem;
    }

    .welcome-line {
        padding: 6px 16px;
    }

    .main-content {
        padding: 0 16px 16px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 60px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-left img {
        height: 40px;
        margin-right: 8px;
    }

    .header-right img {
        height: 50px;
    }

    .header-left .title {
        font-size: 1.1rem;
    }

    .header-left .subtitle {
        font-size: 0.75rem;
    }

    .main-container {
        margin: 12px 8px;
    }

    .main-content .quick-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .calendar-table th,
    .calendar-table td {
        height: 50px;
        padding: 2px;
    }

    .calendar-table td span.date-number {
        font-size: 0.8rem;
    }
}

/* When sidebar is collapsed on desktop */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: 70px;
        left: 20px;
    }

    .sidebar.collapsed .nav-menu>li>a {
        padding: 16px 20px;
        justify-content: center;
    }

    .sidebar.collapsed .nav-menu>li>a span:not(.dropdown-arrow) {
        display: none;
    }

    .sidebar.collapsed .dropdown {
        display: none !important;
    }

    .layout-container.sidebar-collapsed,
    .welcome-line.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }

    .footer.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }
}

/* Additional styles for this page */
.breadcrumbs {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    font-weight: bold;
    color: #333;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 4px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/*------------------------------
  RESET & BASE STYLES
-------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2f3e46;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*------------------------------
  HEADER (Logo + Title)
-------------------------------*/
.header-container {
    width: 100%;
    background: linear-gradient(to bottom, #d8dde2, #f2f4f7);
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 48px;
    margin-right: 12px;
}

.header-left .title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b262c;
    line-height: 1.1;
}

.header-left .subtitle {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: 2px;
}

.header-right img {
    height: 64px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1b262c;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 16px;
}

/*------------------------------
  SIDEBAR NAVIGATION
-------------------------------*/
.sidebar {
    position: fixed;
    top: 140px;
    /* Start below header with more margin */
    left: 20px;
    /* Simple left margin */
    bottom: 20px;
    /* Smaller bottom margin to show logout */
    width: 280px;
    background-color: #e2e6eb;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
    border: 1px solid #b0b8c0;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu>li {
    border-bottom: 1px solid #b0b8c0;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu>li>a:hover {
    background-color: #cfd6dc;
    color: #1b262c;
}

.nav-menu>li>a.active {
    background-color: #3b5a81;
    color: #fff;
    font-weight: 600;
}

.nav-menu>li>a .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-menu>li.open>a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown/Submenu Styles */
.dropdown {
    max-height: 0;
    overflow: hidden;
    background-color: #cfd6dc;
    transition: max-height 0.3s ease;
}

.dropdown.open {
    max-height: 400px;
}

.dropdown li {
    border-bottom: 1px solid #aab2b9;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background-color: #aab2b9;
    color: #1b262c;
}

/*------------------------------
  WELCOME LINE
-------------------------------*/
.welcome-line {
    background-color: #fafafa;
    border-bottom: 1px solid #b0b8c0;
    padding: 6px 24px;
    font-size: 0.9rem;
    color: #3a4a53;
}

.welcome-line a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 8px;
}

.welcome-line a:hover {
    text-decoration: underline;
}

/*------------------------------
  MAIN LAYOUT CONTAINER
-------------------------------*/
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-container,
.welcome-line {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    flex: 1;
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
    /* Subtract header height */
}

.footer {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    margin-top: auto;
    /* Push footer to bottom */
}

/*------------------------------
  MAIN CONTENT AREA
-------------------------------*/
.main-container {
    max-width: 1200px;
    margin: 16px 20px;
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    /* Allow main content to grow */
}

.main-header {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b262c;
}

.main-content {
    padding: 0 24px 24px;
}

/* Links in green */
.main-content .quick-links {
    margin-bottom: 16px;
}

.main-content .quick-links a {
    display: inline-block;
    color: #388e3c;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 18px;
}

.main-content .quick-links a:hover {
    text-decoration: underline;
}

/* Separator line */
.separator {
    height: 1px;
    background-color: #aab2b9;
    margin-bottom: 16px;
}

/*------------------------------
  CALENDAR (STATIC) STYLING
-------------------------------*/
.calendar-container {
    overflow-x: auto;
}

.calendar-header {
    background-color: #dfe7ef;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #1b262c;
    border: 1px solid #aab2b9;
    border-bottom: none;
}

.calendar-nav {
    text-align: right;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #3a4a53;
    border: 1px solid #aab2b9;
    border-top: none;
    background-color: #f8f9fa;
}

.calendar-nav span {
    margin-left: 12px;
    cursor: pointer;
    color: #1a73e8;
}

.calendar-nav span:hover {
    text-decoration: underline;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aab2b9;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #aab2b9;
    width: 14.285%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    background-color: #f7fafe;
}

.calendar-table th {
    background-color: #d0d9e2;
    text-align: center;
    font-size: 0.95rem;
    color: #1b262c;
}

.calendar-table td span.date-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2e7d32;
}

/*------------------------------
  FOOTER
-------------------------------*/
.footer {
    background-color: #e2e6eb;
    border-top: 1px solid #b0b8c0;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #3a4a53;
    text-align: center;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .line {
    margin: 4px 0;
}

/*------------------------------
  RESPONSIVE DESIGN
-------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        margin: 16px 15px;
    }

    .sidebar {
        width: 260px;
        left: 15px;
    }

    .layout-container,
    .welcome-line {
        margin-left: 295px;
        /* 260px + 15px margins */
    }

    .footer {
        margin-left: 295px;
        /* 260px + 15px margins */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        top: 100px;
        left: 20px;
        right: 20px;
        bottom: 100px;
        width: auto;
        transform: translateX(-100%);
        border-radius: 12px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .layout-container,
    .welcome-line,
    .footer {
        margin-left: 0;
    }

    .main-container {
        margin: 16px 10px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .header-left .title {
        font-size: 1.3rem;
    }

    .header-left .subtitle {
        font-size: 0.8rem;
    }

    .welcome-line {
        padding: 6px 16px;
    }

    .main-content {
        padding: 0 16px 16px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 60px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-left img {
        height: 40px;
        margin-right: 8px;
    }

    .header-right img {
        height: 50px;
    }

    .header-left .title {
        font-size: 1.1rem;
    }

    .header-left .subtitle {
        font-size: 0.75rem;
    }

    .main-container {
        margin: 12px 8px;
    }

    .main-content .quick-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .calendar-table th,
    .calendar-table td {
        height: 50px;
        padding: 2px;
    }

    .calendar-table td span.date-number {
        font-size: 0.8rem;
    }
}

/* When sidebar is collapsed on desktop */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: 70px;
        left: 20px;
    }

    .sidebar.collapsed .nav-menu>li>a {
        padding: 16px 20px;
        justify-content: center;
    }

    .sidebar.collapsed .nav-menu>li>a span:not(.dropdown-arrow) {
        display: none;
    }

    .sidebar.collapsed .dropdown {
        display: none !important;
    }

    .layout-container.sidebar-collapsed,
    .welcome-line.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }

    .footer.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }
}

/*------------------------------
  RESET & BASE STYLES
-------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f4f7;
    color: #2f3e46;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*------------------------------
  HEADER (Logo + Title)
-------------------------------*/
.header-container {
    width: 100%;
    background: linear-gradient(to bottom, #d8dde2, #f2f4f7);
    border-bottom: 1px solid #b0b8c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    height: 48px;
    margin-right: 12px;
}

.header-left .title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1b262c;
    line-height: 1.1;
}

.header-left .subtitle {
    font-size: 0.85rem;
    color: #3a4a53;
    margin-top: 2px;
}

.header-right img {
    height: 64px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1b262c;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-right: 16px;
}

/*------------------------------
  SIDEBAR NAVIGATION
-------------------------------*/
.sidebar {
    position: fixed;
    top: 140px;
    /* Start below header with more margin */
    left: 20px;
    /* Simple left margin */
    bottom: 20px;
    /* Smaller bottom margin to show logout */
    width: 280px;
    background-color: #e2e6eb;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
    border: 1px solid #b0b8c0;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu>li {
    border-bottom: 1px solid #b0b8c0;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu>li>a:hover {
    background-color: #cfd6dc;
    color: #1b262c;
}

.nav-menu>li>a.active {
    background-color: #3b5a81;
    color: #fff;
    font-weight: 600;
}

.nav-menu>li>a .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-menu>li.open>a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown/Submenu Styles */
.dropdown {
    max-height: 0;
    overflow: hidden;
    background-color: #cfd6dc;
    transition: max-height 0.3s ease;
}

.dropdown.open {
    max-height: 400px;
}

.dropdown li {
    border-bottom: 1px solid #aab2b9;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #1b262c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background-color: #aab2b9;
    color: #1b262c;
}

/*------------------------------
  WELCOME LINE
-------------------------------*/
.welcome-line {
    background-color: #fafafa;
    border-bottom: 1px solid #b0b8c0;
    padding: 6px 24px;
    font-size: 0.9rem;
    color: #3a4a53;
}

.welcome-line a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 8px;
}

.welcome-line a:hover {
    text-decoration: underline;
}

/*------------------------------
  MAIN LAYOUT CONTAINER
-------------------------------*/
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-container,
.welcome-line {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    flex: 1;
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
    /* Subtract header height */
}

.footer {
    margin-left: 320px;
    /* Account for sidebar width + margins */
    transition: margin-left 0.3s ease;
    margin-top: auto;
    /* Push footer to bottom */
}

/*------------------------------
  MAIN CONTENT AREA
-------------------------------*/
.main-container {
    max-width: 1200px;
    margin: 16px 20px;
    background-color: #fff;
    border: 1px solid #c0c8cf;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    /* Allow main content to grow */
}

.main-header {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b262c;
}

.main-content {
    padding: 0 24px 24px;
}

/* Links in green */
.main-content .quick-links {
    margin-bottom: 16px;
}

.main-content .quick-links a {
    display: inline-block;
    color: #388e3c;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 18px;
}

.main-content .quick-links a:hover {
    text-decoration: underline;
}

/* Separator line */
.separator {
    height: 1px;
    background-color: #aab2b9;
    margin-bottom: 16px;
}

/* Search container */
.search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.search-container input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    flex: 1;
    max-width: 300px;
}

.search-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-container button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.search-container button:hover {
    background-color: #0056b3;
}

/*------------------------------
  CALENDAR (STATIC) STYLING
-------------------------------*/
.calendar-container {
    overflow-x: auto;
}

.calendar-header {
    background-color: #dfe7ef;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #1b262c;
    border: 1px solid #aab2b9;
    border-bottom: none;
}

.calendar-nav {
    text-align: right;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #3a4a53;
    border: 1px solid #aab2b9;
    border-top: none;
    background-color: #f8f9fa;
}

.calendar-nav span {
    margin-left: 12px;
    cursor: pointer;
    color: #1a73e8;
}

.calendar-nav span:hover {
    text-decoration: underline;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aab2b9;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #aab2b9;
    width: 14.285%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    background-color: #f7fafe;
}

.calendar-table th {
    background-color: #d0d9e2;
    text-align: center;
    font-size: 0.95rem;
    color: #1b262c;
}

.calendar-table td span.date-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2e7d32;
}

/*------------------------------
  FOOTER
-------------------------------*/
.footer {
    background-color: #e2e6eb;
    border-top: 1px solid #b0b8c0;
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #3a4a53;
    text-align: center;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .line {
    margin: 4px 0;
}

/*------------------------------
  RESPONSIVE DESIGN
-------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        margin: 16px 15px;
    }

    .sidebar {
        width: 260px;
        left: 15px;
    }

    .layout-container,
    .welcome-line {
        margin-left: 295px;
        /* 260px + 15px margins */
    }

    .footer {
        margin-left: 295px;
        /* 260px + 15px margins */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        top: 100px;
        left: 20px;
        right: 20px;
        bottom: 100px;
        width: auto;
        transform: translateX(-100%);
        border-radius: 12px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .layout-container,
    .welcome-line,
    .footer {
        margin-left: 0;
    }

    .main-container {
        margin: 16px 10px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .header-left .title {
        font-size: 1.3rem;
    }

    .header-left .subtitle {
        font-size: 0.8rem;
    }

    .welcome-line {
        padding: 6px 16px;
    }

    .main-content {
        padding: 0 16px 16px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 60px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-left img {
        height: 40px;
        margin-right: 8px;
    }

    .header-right img {
        height: 50px;
    }

    .header-left .title {
        font-size: 1.1rem;
    }

    .header-left .subtitle {
        font-size: 0.75rem;
    }

    .main-container {
        margin: 12px 8px;
    }

    .main-content .quick-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .calendar-table th,
    .calendar-table td {
        height: 50px;
        padding: 2px;
    }

    .calendar-table td span.date-number {
        font-size: 0.8rem;
    }
}

/* When sidebar is collapsed on desktop */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: 70px;
        left: 20px;
    }

    .sidebar.collapsed .nav-menu>li>a {
        padding: 16px 20px;
        justify-content: center;
    }

    .sidebar.collapsed .nav-menu>li>a span:not(.dropdown-arrow) {
        display: none;
    }

    .sidebar.collapsed .dropdown {
        display: none !important;
    }

    .layout-container.sidebar-collapsed,
    .welcome-line.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }

    .footer.sidebar-collapsed {
        margin-left: 110px;
        /* 70px + 20px margins */
    }
}