html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    font-family: "Montserrat", Arial, Tahoma, sans-serif;
}
.alert 
{
    text-align:left !important;
}
body {
    background: #004080;
}

/*


*/

/* ==========================
   SIDEBAR
========================== */
.sidebar {
    background: linear-gradient(45deg, #002b4f, #004080);
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s;
}

.sidebar .logo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: justify-content 0.3s ease;
}

.sidebar .logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.sidebar .toggle-btn {
    display: inline-flex;
    align-items: center;
}

.toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    color: white;
}

.sidebar .toggle-btn button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 0;
    min-width: 20px;
}

.sidebar #sidebarToggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}

.nav-list {
    list-style: none;
    padding: 15px 0 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-list li {
    margin-bottom: 10px;
}

.nav-list a {
    display: flex;
    align-items: center;
    color: #f0f0f0;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.nav-list a:hover {
    border: 1px solid #ffffff;
    /* transform: scale(1.05); */
}

.nav-list a i {
    margin-right: 12px;
    font-size: 18px;
}

.nav-list span {
    font-size: 16px;
}

.nav-section .nav-header {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #aaa;
    padding: 15px 0 10px 14px;
}

.custom-icon-size {
    font-size: 1.5rem; 
}

/* Collapsed Sidebar */
.sidebar-collapsed .sidebar {
    width: 80px;
    overflow: hidden; 
}

.sidebar-collapsed .sidebar .logo-content {
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

.sidebar-collapsed .sidebar .sidebar-logo {
    display: block;
    transform: scale(0.8); 
    max-width: 50px; 
    margin: 0 auto; 
}

.sidebar-collapsed .sidebar .toggle-btn {
    margin: 10px 0 0 0; 
}

.sidebar-collapsed .sidebar .nav-header,
.sidebar-collapsed .sidebar .nav-list span {
    display: none;
}

.sidebar-collapsed .sidebar .nav-list li {
    margin-bottom: 15px;
}

.sidebar-collapsed .sidebar .nav-list a {
    justify-content: center;
}

.sidebar-collapsed .sidebar .nav-list a i {
    margin-right: 0;
    font-size: 20px;
}

.sidebar-collapsed .sidebar .nav-list a[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #004080;
    color: #fff;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 999;
}

.sidebar-collapsed .profile {
    flex-direction: column;
    align-items: center;
}

.sidebar-collapsed .profile .profile-details .name-job {
    display: none;
}

.sidebar-collapsed .profile-content form {
    width: 100%;
    text-align: center;
}

.sidebar-collapsed .profile-content form button {
    margin-top: 10px;
}

.sidebar-collapsed .sidebar .profile-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

.sidebar-collapsed .sidebar .profile-content .profile-link {
    margin-bottom: 10px;
    justify-content: center;
}

.sidebar-collapsed .sidebar .profile-content img {
    margin: 0;
}

.sidebar-collapsed .sidebar .profile-content .name-job {
    display: none;
}

.sidebar-collapsed .sidebar .profile-content form {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar-collapsed .sidebar .profile-content form button {
    margin-top: 0;
}

/* Chapter Selection */
.chapter-select-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 250px;
}

.chapter-select-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.form-group .chapter-select {
    width: 25%;
}

.chapter-select:focus {
    border-color: #004080;
    box-shadow: 0 0 0 0.2rem rgba(0, 64, 128, 0.15);
    outline: none;
}

/* Empty Chapter Message */
.empty-chapter-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.empty-chapter-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.empty-chapter-content i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 20px;
}

.empty-chapter-content h3 {
    color: #004080;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-chapter-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #004080;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-support-btn:hover {
    background-color: #003366;
    color: white;
    transform: translateY(-1px);
}

/*Selected Chapter Addition*/
.selected-multi-container {
    margin-bottom: 10px;
}

.selected-tag {
    background-color: #004080;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    margin: 3px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
}

.selected-tag button {
    background-color: transparent;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 5px;
    cursor: pointer;
    padding: 0 3px;
}

.selected-tag button:hover {
    color: #ff0000;
}

.remove-tag {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
    padding: 0 4px;
    font-weight: bold;
}
    .remove-tag:hover {
        color: #f8f9fa;
    }

#directorIDs option:checked {
    background-color: #007bff !important;
    color: white !important;
}

#directorIDs option:checked {
    box-shadow: 0 0 10px 100px #007bff inset;
}

#directorIDs {
    border: 1px solid #ced4da;
    padding: 5px;
}

    #directorIDs:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* ==========================
   PROFILE SECTION
========================== */

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 15px;
}

.profile .profile-details {
    display: flex;
    align-items: center;
}

.profile .profile-details img {
    border-radius: 12px;
    height: 30px;
    width: 30px;
    object-fit: fill;
}

.profile .profile-details .name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
    margin-left: 10px;
    width: 100%;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    font-size: 18px;
    padding: 5px;
    margin-left: 40px;
    transition: 0.3s ease;
}

#log-out {
    font-size: 16px;
    color: #f0f0f0;
    cursor: pointer;
}

/* PAGINATION STYLING */
.pagination-container button:hover {
    background-color: #0056b3;
    color: #fff;
}

.pagination-container button:disabled,
.pagination-container button:disabled:hover {
    background-color: #ddd !important;
    color: #999 !important; 
    cursor: not-allowed !important; 
}

.pagination-container {
    display: flex;
    gap: 0.25rem; 
    align-items: center;
    justify-content: center;
    margin: 1em 0;
    flex-wrap: wrap; 
}
.pagination-container button {
   min-width: 40px;
   padding: 0.5rem 0.75rem;
   border: 1px solid #ccc;
   border-radius: 4px;
   background-color: #f2f2f2;
   color: #333;
   cursor: pointer;
   font-size: 14px;
   transition: background-color 0.2s ease;

}

.pagination-container button:hover:not(:disabled) {
   background-color: #e6e6e6;
}
.pagination-container button:disabled {
   background-color: #ddd;
   color: #999;
   cursor: not-allowed;
}

.ellipsis {
    padding: 0 0.5rem;
    color: #666;
    font-size: 16px;
}

.page-number {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0 0.5rem;
    color: #666;
    font-size: 16px;
    user-select: none;
}



/* ==========================
   MAIN CONTENT
========================== */

.home-content {
    background: #f0f0f0;
    border-radius: 25px;
    margin-left: 250px;
    overflow-y: auto;
    padding: 20px;
    height: 100vh;
    border-top: 5px solid #004080;
    border-bottom: 5px solid #004080;
    border-right: 5px solid #004080;
    transition: margin-left 0.3s;
}

.sidebar-collapsed .home-content {
    margin-left: 80px;
}

/* Attendance Navigation Bar */

.chapters-container {
    margin-top: 0;
    margin-bottom: -20px;
    padding: 0;
    border-bottom: 2px solid #ddd;
}

.chapters {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    justify-content: flex-start;
    border-radius: 10px 0;
    overflow: hidden;
}

.chapters-location {
    margin: 0;
    padding: 0;
}

.chapters-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #65666c;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-align: center;
}

    .chapters-link:hover {
        background-color: #004080;
        color: #fff;
        transform: scale(1.05);
    }

    .chapters-link.active {
        font-weight: bold;
        font-size: 20px;
        color: #fff;
        background-color: #004080;
        border-bottom: 2px solid #004080;
        transform: scale(1.1);
    }

/* Input Error Class */
.error {
    /* box-shadow: 0 0 2px red; */
    /* border: 2px solid #8B0000;  */
    /* color: #700000;  */
    border: 1px solid rgba(255, 0, 0, 0.7);
    box-shadow: 0px 0px 10px orangered;
}

/* Attendance Filter */

.filter-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
    
.filter-container.filter-open {
    display: block;
}


.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 220px;
}

    .form-group label {
        display: block;
        text-align: left;
        margin-left: 10px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #65666c;
    }

    .filter-item label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #555;
    }

    .filter-item select, .filter-container input[type="date"], .form-group select, .form-group input[type="date"], .form-group input[type="time"], .form-group textarea {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #666666;
        border-radius: 5px;
        background-color: #fff;
        color: #333;
        outline: none;
        transition: border-color 0.3s;
    }

    .filter-item input,
    .filter-item select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #fff;
        transition: border 0.3s ease-in-out;
}

    .form-group-notes textarea {
        width: 100%;
        height: 150px; 
        border-radius: 5px;
        padding: 10px;
        font-size: 14px;
        resize: vertical;
        margin: 0;
    }

    .apply-filter {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 15px;
    }
    
    .apply-filter button,
    .clear-filters-btn {
        font-size: 14px;
        font-weight: 600;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        border: none;
        transition: background 0.3s ease-in-out;
    }
    
    .apply-filter button {
        background-color: #007bff;
        color: #fff;
    }
    
    .apply-filter button:hover {
        background-color: #0056b3;
    }
    
    .clear-filters-btn {
        background-color: #495057;
        color: #fff;
    }

    .apply-filter button:focus {
        outline: none;
        box-shadow: none;
    }

    .create-a-user button, .attendance-header button, .reports-bar button, .create-a-event button, .create-event button {
        font-size: 14px;
        font-weight: 600;
        padding: 10px 20px;
        color: #fff;
        background-color: #004080;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        height: 38px;
        transition: background-color 0.3s ease;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        .apply-filter button:hover, .attendance-table button:hover, .attendance-header button:hover, .reports-bar button:hover, .create-event button:hover {
            background-color: #002b4f;
            color: #fff;
        }

    .apply-filter button, .clear-filters-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        padding: 10px 20px;
        color: #fff;
        background-color: #004080;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        height: 38px;
        transition: background-color 0.3s ease;
        min-width: 140px; 
        text-align: center;
    }

    .clear-filters-btn:hover {
        background-color: #41464b;
        color: #fff;
    }

.submit-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #004080;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    height: 38px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.submit-btn-secondary {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #495057;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    height: 38px;
    justify-content: center;
    align-items: center;
    display: flex;
}


.back-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #003059;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    height: 38px;
    justify-content: center;
    align-items: center;
    display: flex;
}


.back-btn:hover {
    background-color: #41464b;
    color: #fff;
}

.secondary-btn {
    background-color: #003059;
    color: #fff;
    border: none;
}

.secondary-btn:hover {
    background-color: #41464b;
    color: #fff;
}


.sample-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: #002b4f;
}

.sample-btn:hover {
    background-color: #a72936;
}

.action-bar h3 {
    margin: 0;
    text-align: left;
    flex: 1;
}

.attendance-header h1 {
    margin: 0;
}

.attendance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .attendance-bar h3 {
        margin: 0;
        flex: 0 1 auto;
    }

    .attendance-bar .right-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.reports-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.attendance-bar .form-group,
.attendance-bar .search-user {
    margin: 0;
}

.attendance-bar .search-bar, .action-bar .search-bar {
    margin-top: 20px;
}

.attendance-table .attendance-bar input[type="text"] {
    width: 200px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-wrapper i {
        position: absolute;
        left: 10px;
        color: #aaa;
        font-size: 16px;
    }

    .search-input-wrapper .search-bar {
        padding-left: 35px;
        width: 100%;
        height: 38px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
    }

.attendance-bar button {
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #004080;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.attendance-sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.attendance-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
    top: 7px; 
}

.checkbox-container label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.form-group-combobox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px; 
}

.form-group-combobox select {
    width: 100%;
    height: 300px; 
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    text-align: center;
    background-color: white;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group-combobox label {
    font-weight: bold;
    margin-bottom: 5px;
}

.combobox-select {
    width: 100%;
    height: 300px; 
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    text-align: center;
    background-color: white;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}


.move-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: row; 
    justify-content: center;
    gap: 15px;
}

.move-buttons button {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #002b4f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 120px;
    height: 38px;
}

.move-buttons button:hover {
    background-color: #004080;
    color: #fff;
}

.attendance-notes {
    max-width: 800px;
    margin: 20px auto; 
}


/* Columns */

.half-width {
    width: 50%; 
}

.two-column,
.four-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

    .two-column .form-group,
    .four-column .form-group {
        flex: 1;
    }


    .three-column {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .three-column .form-group {
        flex: 1 1 0;
        min-width: 200px;
    }    


/* User Info */
fieldset {
    border: 1px solid #666666;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f4f4f4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

legend {
    font-size: 16px;
    font-weight: bold;
    color: #004080;
    padding: 0 10px;
    border: 1px solid #666666;
    border-radius: 5px;
    background-color: #ffffff;
    margin-bottom: 15px;
}

input[type="text"] {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.create-user, create-event {
    margin-top: 15px;
    justify-content: flex-end;
    display: flex;
    gap: 10px;
}

.two-column .form-group select[name="role"] {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.forms {
    width: 60%; 
    margin: 0 auto; 
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shifts {
    width: 40%; 
    margin: 0 auto; 
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.details {
    width: 100%; 
    margin: 0 auto; 
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.volunteer-index-container {
    width: 100%; 
    margin: 0 auto; 
    padding: 30px;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-occurrences-details {
    width: 80%; 
    margin: 0 auto; 
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cal {
    width: 100%; 
    margin: 0 auto; 
    padding: 5px 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reports {
    width: 80%; 
    margin: 0 auto; 
    padding: 5px 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.total-hours-worked {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-radius: 8px;
    display: inline-block;
}

.total-hours-worked label {
    font-weight: 700;
    font-size: 1.5rem;
    color: #004080;
    margin-right: 10px;
}

.hours-value {
    font-size: 1.5rem;
    color: #333;
    display: inline;
    font-weight: 700;
}

/* ==========================
   TABLE STYLES
========================== */
.user-table {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow-x: auto;
    margin-top: 20px;
}

.attendance-table, .reports-table, .event-table/* , .general-table */ {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    font-size: 1em;
}

.attendance-table {
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    padding: 0 20px;
    font-size: 1em;
    margin-top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-table td, .event-table td, /* .general-table td, */ .attendance-table td {
    vertical-align: middle;
    text-align: left;
}

.table, .attendance-table .table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: #002b4f;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px;
}

.table thead th {
    padding: 14px;
    text-align: left;
    border-bottom: 3px solid #6E6E6E;
}

.table tbody tr, .attendance-table .table tbody tr {
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.table tbody tr:hover {
    background: rgba(51, 51, 51, 0.12);
    transition: 0.2s ease-in-out;
}

.table tbody td {
    padding: 12px;
    text-align: left;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #666666;
}

.city-content {
    margin: 0;
}

.general-table {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    overflow-x: auto;
    margin-top: 20px;
}

.general-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.general-table thead {
    background-color: #f8f9fa;
    color: #333;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.general-table th {
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
}

.general-table th:last-child {
    text-align: center; 
}

.general-table tbody tr {
    background-color: white;
    transition: background 0.2s ease-in-out;
    border-bottom: 1px solid #e0e0e0;
}

.general-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.general-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Table Cells */
.general-table td {
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
    text-align: left;
    vertical-align: middle;
}

.general-table td:last-child {
    text-align: center;
}

/* ==========================
   ACTION BUTTONS
========================== */
.action-buttons-td {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-buttons-td button {
    background-color: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
}

    .action-buttons-td button:hover {
        /* background-color: #002b4f; */
        color: #333;
    }

    .shift-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        border: 1px solid #ccc; /* Add a border */
        background-color: #f8f9fa; /* Light background */
        color: #333; /* Dark text color */
        cursor: pointer;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
        min-width: 100px;
    }
    
    .shift-action-btn i {
        font-size: 16px;
    }
    
    .shift-action-btn:hover {
        background-color: #e2e6ea; /* Slightly darker background on hover */
        color: #000; /* Darker text on hover */
        transform: scale(1.05); /* Slight scale effect on hover */
    }
    
    .shift-action-btn:focus {
        outline: none;
        box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25); /* Focus state */
    }

.attendance-table th:nth-child(5),
.attendance-table td:nth-child(5) {
    text-align: center;
    vertical-align: middle;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color:#555;
    width: 100px;
    background-color: #F8F9FA;
}

.action-btn:hover {
    color: #333;
}

/* Action Bar */

.attendance-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    margin-top: 0;
}

.action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
    margin-top: 10px;
}

.button-group {
    display: flex;
    gap: 15px;
}

.action-bar h3 {
    margin: 20px 0;
}

    .action-bar .form-group {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .action-bar .search-user button, .action-bar .create-a-user button, .action-bar .create-a-event button {
        font-size: 14px;
        font-weight: 600;
        padding: 10px 200px;
        color: #fff;
        background-color: #004080;
        border: none;
        border-radius: 5px;
        height: 38px;
        cursor: pointer;
        display: inline-block;
    }

        .action-bar .search-user button:hover, .action-bar .create-a-user button:hover, .action-bar .create-a-event button:hover {
            background-color: #003366;
            color: #fff;
        }

        .create-a-event a:hover {
            color: #fff;
        }

        .event-action-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .shift-action-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

    .event-action-buttons form {
        margin: 0;
    }

    .event-action-buttons button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shift-action-buttons button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Events */

input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.shift-info-grid {
    display: grid;
    gap: 24px;
    padding: 10px;
}

.shift-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shift-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-label i {
    color: #004080;
    font-size: 1.1rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #004080;
    padding: 4px 12px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.shift-info-item .form-control {
    width: 150px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    color: #004080;
    background-color: #fff;
    transition: all 0.2s ease;
}

.text-danger {
    color: #dc3545;
    margin-left: 2px;
}

/* Buttons */

.back {
    display: inline-block; 
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #004080;
    text-decoration: none; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

    .back:hover {
        background-color: #002b4f;
    }

.btn-group-attendance {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-group-attendance button,
.btn-group-attendance a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}


/* .btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus, */
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    min-width: 200px; 
    text-align: center;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}


.primary-btn {
    background-color: #004080;
    color: #fff;
    border: none;
}

.primary-btn:hover {
    background-color: #002b4f;
    color: #fff;
}

.secondary-btn {
    background-color: #004080;
    color: #fff;
    border: none;
}

/* Delete Button */
.btn-delete {
    background: #dc3545;
    color: #fff;
    height: 38px;
}

.btn-delete:hover {
    background: #b02a37;
    transform: scale(1.05);
}

.btn-edit:hover {
    transform: scale(1.05);
}

.create-director-btn {
    background-color: #004080;
    color: #fff;
    border: none;
    width: 100%;
    margin-top: 5px;
    display: block;
}

.create-director-btn:hover {
    background-color: #002b4f;
    color: #fff;
}

/* Icons */
.action-btn i {
    font-size: 16px;
}

.empty-event-container, .empty-chapter-container {
    width: 100%;
}

.empty-event-content, .empty-chapter-container {
    padding: 50px;
    background-color: #f4f4f4;
    color: #495057;
    font-size: 1.25rem;
    text-align: center;
}

.emoji-container i {
    font-size: 2rem;
    color: #adb5bd;
}

.emoji-container p {
    margin-top: 10px;
}

/* Program */

.program-details-header {
    background: linear-gradient(45deg, #002b4f, #004080);
    color: #fff;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .program-details-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin: 0;
        letter-spacing: 1px;
    }

    .program-details-header h4 {
        margin-top: 15px;
    }


.program-detail-content {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.program-info {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 30px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.program-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080;
    margin-bottom: 15px;
    text-align: left;
}

.program-detail {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

    .program-detail strong {
        font-weight: 600;
        color: #333;
    }


/* Centering the form in a responsive container */
.delete-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard */
.dashboard-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    /* background-color: #ffffff; */
    padding: 20px 20px;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.dashboard-welcome-header {
    flex: 2;
    min-width: 300px;
}

.user-name-placeholder {
    color: #004080;
    font-weight: 800;
}

.dashboard-welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #004080;
}

.dashboard-welcome-header h4 {
    font-size: 1.2rem;
    color: #555;
}

.quick-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.quick-actions-inline .btn {
    min-width: 200px;
    white-space: nowrap;
}

.quick-action-btn {
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.quick-action-btn:hover {
    background-color: #002b4f;
    color: #fff;
}

.quick-stats-bar {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    justify-content: space-around;
}

.quick-stats-bar .stat {
    font-size: 16px;
    color: #004080;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.dashboard-card,
.calendar-card {
    min-height: 350px;
    display: flex;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px; 
    min-width: 250px;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-card #calendar {
    width: 100%;
    height: 100%;
    padding: 0;
}


.dashboard-card h5 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.dashboard-count {
    font-size: 36px;
    color: #004080;
    font-weight: bold;
}

.dashboard-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #004080;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.dashboard-btn:hover {
    background-color: #002b4f;
    color: #fff;
}

.dashboard-insights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.calendar-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.chart-card {
    flex: 1 1 45%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-card canvas {
    width: 100% !important;
    max-height: 330px !important;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #004080;
    margin-bottom: 15px;
}

/* Form Layout */
.delete-form fieldset {
    border: 1px solid #666666;
    border-radius: 10px;
    padding: 20px;
    background: #f4f4f4;
}

.delete-form legend {
    font-size: 18px;
    font-weight: bold;
    color: #004080;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Grid Layout for Form Fields */
.delete-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.delete-form-group {
    flex: 1;
    min-width: 45%;
}

.delete-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #65666c;
    display: block;
    margin-bottom: 5px;
}

/*Toast Notifications*/
.toast-success {
    background-color: #002b4f !important;
    color: white;
    opacity: 1;
}
.toast-error {
    background-color: #dc3545 !important;
    color: white;
    opacity: 1;
}
.toast {
    opacity: 1 !important;
}

/* Filter table */
.collapsible-filter {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-toggle {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease-in-out, color 0.2s ease-in-out;
}

.filter-toggle:hover {
    background-color: #f0f0f0;
}

    .filter-toggle i {
        transition: transform 0.3s ease-in-out;
    }

    .filter-toggle.active i {
        transform: rotate(180deg);
    }

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 20px;
    width: 100%;
    min-height: 38px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    outline: none;
}

select:focus {
    outline: none;
    border-color: #258cfb;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

select option {
    background-color: #fff; 
    color: #333;
    font-size: 14px;
    padding: 8px;
}

select option:hover {
    background-color: #f0f0f0;
    color: #000;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    background-color: #5c636a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    height: 38px;
    transition: background-color 0.3s ease;
}

    .clear-filters-btn:hover {
        background-color: #41464b;
    }

.sort-header-btn {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

    .sort-header-btn:focus {
        outline: none;
    }

    .sort-header-btn:hover {
        color: #007bff;
    }

.phone-link {
    color: #004080; 
    text-decoration: none;
    display: inline-block;
    padding: 5px;
}

.phone-link:hover {
    color: #002b4f; 
    text-decoration: underline;
    transform: scale(1.05);
}    

/* CREATE EVENT */

.event-creation-container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.event-steps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}
.step {
    flex: 1;
    padding: 10px;
    background: #e6e6e6;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.step.active {
    background: #004080;
    color: #fff;
}
.event-panel {
    display: none;
}
.active-panel {
    display: block;
}
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.event-frequency {
        margin-top: 20px;
    }
    .frequency-options {
        display: flex;
        gap: 15px;
        margin-bottom: 10px;
    }
    .frequency-settings {
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 8px;
        background: #f9f9f9;
    }
    .interval-group, .end-after-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .event-summary {
        background: #e8f0fe;
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
    }
    .event-summary-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    #eventDatesList a {
        color: #007bff;
        text-decoration: none;
        margin-right: 5px;
    }
    #eventDatesList a:hover {
        text-decoration: underline;
    }

    .selected-date {
        display: inline-block;
        background: #004080;
        color: white;
        padding: 5px 10px;
        margin: 5px;
        border-radius: 5px;
    }
    .selected-date button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-left: 5px;
    }


/* VOLUNTEER EVENT INDEX */

.event-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.event-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h2 {
    color: #004080;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.event-card p {
    margin: 10px 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.event-action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto; 
    gap: 12px;
}

.event-action-buttons button {
    min-width: 120px;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 8px;
    background-color: #004080;
    color: #fff;
}

.shift-action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto; 
    gap: 12px;
}

.shift-action-buttons button {
    min-width: 120px;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 8px;
}

.event-action-buttons button:hover {
    color: #fff;
}


/* CALENDAR STUFF */
.calendar-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 15px;
}

.fc {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    border: none;
}

.fc-header-toolbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px;
}

.fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #333;
}

.fc-button {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 3px;
    margin: 0 2px;
}

    .fc-button:hover,
    .fc-button:focus {
        background: #f5f5f5;
    }

.fc-event {
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    padding: 2px 4px;
}

.fc a {
    text-decoration: none;
}

.fc-timegrid-event {
    border-radius: 3px !important;
    margin: 1px 0 !important;
    transition: all 0.2s ease;
}

    .fc-timegrid-event:hover {
        filter: brightness(85%);
        z-index: 10 !important;
    }

    .fc-timegrid-event .fc-event-main {
        padding: 2px 4px !important;
    }

    .fc-timegrid-event .fc-event-title {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.calendar-slot-lane {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Ensure overlapping events remain distinguishable */
.fc .fc-timegrid-col-events {
    margin: 0 2px !important;
}


/* NEW CALENDAR STUFF */

/*.fc {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .fc .fc-timeline-slot-lane {
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
        height: 100% !important;
    }

.fc-timeline-slot.fc-timeline-slot-minor .fc-timeline-slot-lane {
    border-right: 1px dashed rgba(0, 0, 0, 0.08) !important;
}

.fc-timeline-slot.fc-timeline-slot-major .fc-timeline-slot-lane {
    border-right: 2px solid rgba(0, 0, 0, 0.15) !important;
}

.fc-timeline-event {
    margin: 1px 0 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    background-color: #1E90FF !important;
    font-size: 0.85em !important;
    height: calc(100% - 4px) !important;
    left: 0 !important;
    right: 0 !important;
}

    .fc-timeline-event:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 10;
    }

.fc-resource-timeline td.fc-resource {
    background: #f8f9fa;
    padding: 0;*/ /* Remove padding */
    /*border-right: 1px solid #dee2e6;
}

.fc-timeline-slot-cushion {
    font-weight: 500;
    color: #495057;
    padding: 2px 4px;
}

.fc .fc-timeline-now-indicator-line {
    border-color: #dc3545;
    z-index: 4;
    border-width: 2px;
}

.fc .fc-timeline-now-indicator-arrow {
    border-color: #dc3545;
}

.fc-resource-timeline tr[role="row"] {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fc-timeline-slots td {
    border-top: 0 !important;
}

.fc-timeline-slots table {
    border-bottom: 1px solid #ddd;
}

.fc .fc-resource-timeline td.fc-divider {
    background: #f8f9fa;
    border-right: 1px solid #ddd;
}

.context-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 150px;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .menu-item:hover {
        background-color: #f8f9fa;
    }

.cancel-shift {
    color: #dc3545;
}*/

/* Empty state styles */
/*.empty-state-container {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.empty-state-icon {
    margin-bottom: 20px;
    font-size: 48px;
    color: #6c757d;
}

.empty-state-container h4 {
    color: #343a40;
    margin-bottom: 12px;
    font-weight: 500;
}

.empty-state-container p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto 20px;
}

.empty-state-actions {
    margin-top: 10px;
}

.empty-calendar-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.empty-calendar-content {
    text-align: center;
    padding: 20px;
    background: rgba(248, 249, 250, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}

    .empty-calendar-content i {
        font-size: 2rem;
        color: #6c757d;
        margin-bottom: 10px;
    }

    .empty-calendar-content p {
        margin: 0;
        color: #495057;
    }

    .empty-calendar-content small {
        color: #6c757d;
    }

.schedule-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    min-height: 500px;
}

.sched-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-container {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
}

.fc {
    height: 100% !important;
}

.sched-filter-dropdown {
    min-width: 200px;
    height: 45px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.btn-outline-secondary {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}*/

/* END OF NEW CALENDAR STUFF*/

.schedule-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.sched-left-panel {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sched-right-panel {
    flex: 1;
    margin-top: 94px;
}

.sched-filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.sched-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.sched-filter-dropdown {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border 0.3s ease-in-out;
    width: 30%;
    margin: 0;
}

.volunteer-list {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-height: 50vh;
    overflow-y: auto;
}

.volunteer-list .card-header {
    background: #004080;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px 8px 0 0;
}

.volunteer-list .card-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.list-group-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    transition: background 0.3s ease-in-out;
    cursor: grab;
}

.list-group-item i {
    margin-right: 10px;
    color: #004080;
}

.list-group-item:hover {
    background: #f0f0f0;
}

#eventDateGroup {
    display: block;
    align-items: center;
    gap: 8px;
}

#Cancelled {
    margin: 10px 10px;
    width: 18px; 
    height: 18px;
    vertical-align: middle;
}

#eventDateGroup label {
    font-size: 16px;
    vertical-align: middle;
}

/* Admin Panel */
.volunteer-list-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding: 0;
}

.volunteer-email {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.volunteer-list-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
}

.volunteer-email {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.custom-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 18px;
    height: 18px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #004080;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #004080;
    border-color: #004080;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.select-all-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 0;
    padding-right: 33px; 
}

.select-all-row input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 10px;
}

.admin-search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.admin-search-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.admin-button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #004080;
    color: white;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn:hover {
    background-color: #002b4f;
}

.volunteer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.volunteer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.volunteer-email {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.volunteer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volunteer-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #004080;
    cursor: pointer;
    margin-left: 12px;
}

.admin-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 0 20px;
}

.action-btn-group {
    display: flex;
    gap: 10px;
}

.delete-btn, .unapprove-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background-color: #fee2e2;
}

.unapprove-btn {
    color: #ffc107;
}

.unapprove-btn:hover {
    background-color: #fff3cd;
}

.approve-all-btn {
    width: auto;
    min-width: 200px;
    margin: 20px 0;
    align-self: flex-end;
}

/* Pending Approval Page */
.pending-approval-content {
    text-align: center;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    border: 2px solid #004080;
}

.pending-approval-content h1 {
    font-size: 2.2rem;
    color: #004080;
    margin-bottom: 20px;
    font-weight: 700;
}

.pending-message {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.pending-icon {
    font-size: 48px;
    color: #004080;
}

/* Forbidden Page */
.forbidden-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #f8f9fa;
    padding: 20px;
}

.forbidden-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.forbidden-content h1 {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.forbidden-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.forbidden-content .btn {
    min-width: 200px;
    text-decoration: none;
}

.multi-select-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.multi-select-box {
    flex: 1 1 0;
    min-width: 300px;
    max-width: 48%;
    box-sizing: border-box;
}

    .multi-select-box select option:checked {
        background-color: #007bff;
        color: #fff;
    }

.flatpickr-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #212529;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #004080;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.multi-select-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.multi-select-box {
    flex: 1 1 0; 
    min-width: 300px;
    max-width: 48%;
    box-sizing: border-box;
}

    .multi-select-box select option:checked {
        background-color: #007bff; 
        color: #fff;
    }

.flatpickr-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #212529;
}

/* VOLUNTEER FAQ*/
.accordion-button.shift-info-item {
    padding: 15px 45px 15px 15px;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.accordion-button.shift-info-item:not(.collapsed) {
    background-color: #e9ecef;
    color: #004080;
}

.accordion-button.shift-info-item::after {
    content: "";
    position: absolute;
    right: 15px;
    transition: transform 0.2s ease;
    width: 20px;
    height: 20px;
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
}

.accordion-button.shift-info-item:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: rotate(-180deg);
}

.accordion-button.shift-info-item:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button.shift-info-item .info-label {
    font-size: 1.1rem; 
}

.accordion-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

.accordion-body strong {
    color: #004080;
}

.password-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-group input {
    padding-right: 40px;
    border-radius: 8px;
}

.password-group .password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-group .password-toggle:hover {
    color: #004080;
}

.password-group .password-toggle:focus {
    outline: none;
}

/* MEDIA QUERIES */

@media (max-width: 320px) {
    .dashboard-header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 10px;
    }

    .dashboard-welcome-header {
        width: 100%;
        text-align: center;
    }

    .dashboard-welcome-header h1 {
        font-size: 1.2rem;
        text-align: center;
        word-wrap: break-word;
        margin-bottom: 5px;
    }

    .dashboard-welcome-header h4 {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .quick-actions-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 10px;
    }

    .quick-action-btn {
        width: 90%; 
        font-size: 0.9rem;
        padding: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .move-buttons button {
        min-width: 100px;
        font-size: 13px;
    }

    .form-group-combobox select {
        height: 150px;
    }

    .program-details-header h1 {
        font-size: 1.5rem;
    }

    fieldset {
        padding: 10px;
    }

    .selected-tag {
        font-size: 0.75em;
    }
}

@media (max-width: 576px) {
    .quick-actions-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; 
    }

    .quick-action-btn {
        width: 100%; 
        text-align: center;
    }
    
    .volunteer-index-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .event-card {
        padding: 20px;
        min-height: auto;
    }

    .event-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-welcome-header h1 {
        font-size: 1.5rem;
    }

    .dashboard-welcome-header h4 {
        font-size: 0.9rem;
    }

    .dashboard-card h5 {
        font-size: 16px;
    }

    .dashboard-count {
        font-size: 28px;
    }

    .dashboard-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .dashboard-header-actions {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .dashboard-welcome-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-welcome-header h4 {
        font-size: 1rem;
    }

    .quick-actions-inline {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .quick-action-btn {
        width: 100%;
        text-align: center;
    }

    .dashboard-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .dashboard-card {
        width: 100%;
        max-width: 400px;
    }

    .calendar-card {
        width: 100%;
        padding: 10px;
    }

    #calendar {
        height: auto;
    }

    .dashboard-insights {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .chart-card {
        width: 100%;
        max-width: 400px;
    }

    .chart-title {
        text-align: center;
    }

    .program-details-header h1 {
        font-size: 1.5rem;
    }

    .program-details-header h4 {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 8px;
    }

    .submit-btn-secondary {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .btn-group-attendance a,
    .btn-group-attendance button {
        font-size: 0.9rem;
        padding: 10px;
    }

    #emailSection,
    #passwordSection {
        flex-direction: column;
        gap: 10px;
    }

    .form-group input {
        width: 100%;
    }

    .accordion-button.shift-info-item {
        padding: 10px 35px 10px 10px;
    }

    .info-label {
        font-size: 0.85rem;
    }

    .accordion-button.shift-info-item::after {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .chapter-select-container {
        width: 100%;
        align-items: stretch;
        margin-top: 15px;
    }

    .form-group .chapter-select {
        width: 100%;
    }

    .empty-chapter-content {
        padding: 30px 20px;
    }

    .empty-chapter-content h3 {
        font-size: 1.5rem;
    }

    .empty-chapter-content p {
        font-size: 1rem;
    }

    .contact-support-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-search-section {
        flex-direction: column;
    }

    .admin-search-input {
        max-width: none;
    }

    .admin-button-group {
        flex-direction: column;
    }

    .admin-btn {
        width: 100%;
    }

    .volunteer-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Layout Containers */
    .forms, .shifts, .reports, .centered-fieldset-container, .event-creation-container,
    .event-occurrences-details {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    /* Container Adjustments */
    .centered-fieldset-container {
        width: 95%;
        padding: 15px;
    }

    /* Header Section */
    .program-details-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    .program-details-header h1 {
        font-size: 1.4rem;
        text-align: center;
        word-wrap: break-word;
    }
    .program-details-header h4 {
        font-size: 1rem;
        text-align: center;
    }

    /* Attendance */
    .attendance-header {
        flex-direction: column;
        gap: 15px;
    }
    .attendance-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }
    .attendance-notes {
        width: 100%;
        margin: 20px 0;
    }

    /* Form Layout */
    .three-column,
    .two-column {
        flex-direction: column;
        gap: 15px;
    }
    .two-column .form-group,
    .form-group,
    .delete-form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    .form-group label {
        margin-bottom: 8px;
        display: block;
    }
    .form-group input,
    .form-group textarea,
    .form-group select,
    .form-group-notes textarea,
    input[type="date"],
    input[type="time"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    .form-group-combobox {
        width: 100%;
        max-width: 100%;
    }
    .form-group-combobox select {
        height: 200px;
    }

    /* Total Hours Section */
    .total-hours-worked {
        width: 100%;
        text-align: center;
        padding: 15px 10px;
    }
    .total-hours-worked label,
    .hours-value {
        font-size: 1.2rem;
    }

    /* Create Buttons */
    .create-a-event button,
    .create-event button,
    .create-user .back-btn,
    .create-user .submit-btn,
    .create-user .sample-btn,
    .back-btn {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    .create-user {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    /* Buttons */
    .btn-group-attendance {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
        margin-top: 20px;
    }
    .move-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin: 20px 0;
        width: 100%;
    }
    .move-buttons button {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Shift Info */
    .shift-info-grid {
        gap: 16px;
    }
    .shift-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .info-value {
        width: 100%;
        text-align: center;
    }
    .accordion-button.shift-info-item {
        padding: 12px 40px 12px 12px;
    }
    .accordion-button.shift-info-item .info-label {
        width: calc(100% - 30px);
    }
    .accordion-body {
        padding: 12px;
        font-size: 0.9rem;
    }
    .info-label {
        font-size: 0.9rem;
    }
    .accordion-button.shift-info-item::after {
        right: 12px;
    }

    /* Tables */
    .general-table {
        margin: 10px 0;
        padding: 10px;
        overflow-x: hidden;
    }
    .general-table table {
        display: block;
    }
    .general-table thead {
        display: none;
    }
    .general-table tbody {
        display: block;
    }
    .general-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    .general-table td {
        display: block;
        padding: 8px 0;
        text-align: left;
        border: none;
    }
    .general-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #004080;
        display: block;
        margin-bottom: 5px;
    }

    /* Action Buttons */
    .event-action-buttons,
    .shift-action-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .action-btn {
        width: 100%;
        justify-content: center;
        margin: 2px 0;
    }
    #nowAddOccurrance {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Filter Panel */
    .collapsible-filter {
        margin: 10px 0;
    }
    .filter-panel {
        margin: 15px 0;
        padding: 15px;
    }
    .filter-row,
    .filter-form-row {
        flex-direction: column;
        gap: 15px;
    }
    .filter-item,
    .filter-form-group {
        width: 100%;
    }
    .filter-item input,
    .filter-item select {
        width: 100%;
        margin-bottom: 10px;
    }
    .input-with-buttons,
    .apply-filter,
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .apply-filter button,
    .clear-filters-btn,
    .filter-buttons button,
    .filter-buttons a {
        width: 100%;
        margin: 0;
    }
    .filter-toggle {
        padding: 12px;
        font-size: 14px;
    }

    /* Pagination */
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .pagination-container button {
        min-width: 35px;
        font-size: 13px;
    }

    /* Action Bar */
    .action-bar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
    }
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    .button-group button,
    .button-group .btn {
        width: 100%;
        margin: 5px 0;
    }

    /* Navigation */
    .chapters-container {
        overflow-x: auto;
        margin-bottom: 15px;
    }
    .chapters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .chapters-location {
        flex: 0 0 auto;
    }
    .chapters-link {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Misc UI */
    .selected-multi-container {
        flex-wrap: wrap;
        gap: 5px;
    }
    .selected-tag {
        font-size: 0.8em;
        margin: 2px;
    }
    #directorIDs {
        width: 100%;
        margin-bottom: 15px;
        height: 150px;
    }
    #selectedDirectorsContainer {
        margin-bottom: 10px;
    }
    .create-director-btn {
        width: 100%;
        margin: 10px 0;
    }
    .toggle-existing-singers {
        margin: 15px 0;
    }
    .toggle-existing-singers .btn {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
    }

    /* Quick Swap */
    .quick-swap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 15px 0;
        text-align: center;
    }
    .quick-swap input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    .quick-swap label {
        font-size: 14px;
    }

    /* Error Message */
    .error-message {
        margin: 10px 0;
        font-size: 14px;
    }

    /* Modal */
    .modal-dialog {
        margin: 10px;
        width: auto;
    }
    .modal-content {
        padding: 15px;
    }
    .modal-body {
        padding: 15px;
    }
    .modal-body .mb-3 {
        margin-bottom: 15px !important;
    }
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    .modal-footer .btn-group-attendance {
        width: 100%;
    }
    .modal-footer button {
        width: 100%;
        margin: 5px 0 !important;
    }

    /* Reports Filters */
    .row.mb-3 {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }
    .col-md-3,
    .col-md-2 {
        width: 100%;
        text-align: left;
    }

    /* Empty State */
    .empty-event-content {
        padding: 20px 10px;
    }
    .emoji-container {
        font-size: 0.9rem;
    }
    #datesList {
        padding: 10px;
    }
    #datesList li {
        margin-bottom: 10px;
    }
    .date-anchor {
        display: block;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 4px;
    }

    /* Event Steps */
    .event-steps {
        flex-direction: column;
        gap: 10px;
    }
    .step {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    .event-panel {
        padding: 15px 0;
    }
    .event-frequency {
        margin: 20px 0;
        padding: 15px;
    }
    .frequency-options,
    .frequency-settings,
    .interval-group {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    /* Schedule/Calendar Specific Styles */
    .schedule-container {
        flex-direction: column;
        gap: 15px;
    }
    .sched-left-panel,
    .sched-right-panel {
        flex: 1;
        width: 100%;
        margin: 0;
    }
    .sched-right-panel {
        margin-top: 15px;
    }
    .cal,
    .calendar-container {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        overflow-x: auto;
    }
    .sched-filter-group {
        margin-bottom: 15px;
    }
    .sched-filter-dropdown {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    .volunteer-list {
        max-height: 300px;
        margin-bottom: 15px;
    }
    .list-group-item {
        padding: 12px;
        font-size: 14px;
    }
    .search-input-wrapper {
        padding: 10px !important;
    }
    .search-input-wrapper input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
    .fc {
        font-size: 14px;
    }
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .fc .fc-toolbar-title {
        font-size: 1.2em;
        margin: 5px 0;
    }
    .fc .fc-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    .fc .fc-view {
        overflow-x: auto;
    }
    #assignmentSlots {
        margin: 10px 0;
    }
    #assignmentSlots select {
        width: 100%;
        margin-bottom: 10px;
    }
    #modalLoadingOverlay {
        padding: 20px;
    }
    #cancelledVolunteersList {
        max-height: 200px;
        overflow-y: auto;
    }

    .dashboard-header-actions {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-welcome-header {
        text-align: center;
        min-width: 100%;
    }

    .dashboard-welcome-header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .dashboard-welcome-header h4 {
        font-size: 1rem;
    }

    .quick-actions-inline {
        flex-direction: column;
        width: 100%;
    }

    .quick-actions-inline .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .dashboard-card {
        min-height: auto;
        padding: 20px;
    }

    .calendar-card {
        min-height: 300px;
    }

    .dashboard-card h5 {
        font-size: 16px;
    }

    .dashboard-count {
        font-size: 28px;
    }

    .dashboard-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dashboard-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-card {
        padding: 15px;
    }

    .chart-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .chart-card canvas {
        max-height: 250px !important;
    }
}

@media (min-width: 992px) and (max-width: 1023px) {
    .d-lg-none {
        display: flex !important;
    }
}

@media (max-width: 1023px)  {    
    .sidebar {
        display: none !important;
    }

    .home-content {
        margin-left: 0 !important;
        padding-bottom: 80px; 
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #004080;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 1050;
        border-top: 2px solid #002b4f;
    }

    .mobile-nav-item {
        background: none;
        border: none;
        color: white;
        text-align: center;
        flex: 1;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px 0;
        text-decoration: none;
    }

    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .mobile-submenu {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        background: #003366;
        color: white;
        display: none;
        flex-direction: column;
        padding: 10px 15px;
        z-index: 1049;
    }

    .mobile-submenu a,
    .mobile-submenu button {
        color: white;
        text-decoration: none;
        padding: 8px 0;
        font-size: 14px;
        border-bottom: 1px solid #fff2;
        background: none;
        border: none;
        text-align: left;
    }

    .mobile-submenu a:last-child,
    .mobile-submenu button:last-child {
        border-bottom: none;
    }

    .mobile-submenu button.mobile-logout-link {
        width: 100%;
    }

    .quick-actions-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; 
    }

    .quick-action-btn {
        width: 100%; 
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .sidebar-collapsed .sidebar .toggle-btn {
        margin-bottom: 25px;
        margin-top: 15px;
    }

    .sidebar-collapsed .sidebar .nav-list li {
        margin-bottom: 15px;
    }

    .form-group .chapter-select {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .form-group .chapter-select {
        width: 25%;
    }
}


