/* ------------------------------------------ */
/* GLOBAL ADMIN STYLES                       */
/* ------------------------------------------ */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f7fa;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------ */
/* HEADER                                     */
/* ------------------------------------------ */

.admin-header {
    background: #007849;
    color: white;
    padding: 18px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.admin-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
}

/* ------------------------------------------ */
/* LOGOUT BUTTON                              */
/* ------------------------------------------ */

.logout-btn {
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #d63b3b;
}

/* ------------------------------------------ */
/* CONTAINER                                  */
/* ------------------------------------------ */

.container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* ------------------------------------------ */
/* BUTTONS                                    */
/* ------------------------------------------ */

button,
.btn {
    background: #0077cc;
    color: white;
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

button:hover,
.btn:hover {
    background: #005fa3;
}

.delete-btn {
    background: #d9534f;
}

.delete-btn:hover {
    background: #c9302c;
}

.delete-btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

.export-btn {
    background: #2b8a3e;
}

.export-btn:hover {
    background: #1c6a2e;
}

/* ------------------------------------------ */
/* TABLE                                      */
/* ------------------------------------------ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

table th {
    text-align: left;
    background: #eef3f7;
    padding: 8px;
    font-weight: 600;
    border-bottom: 2px solid #ccd6e0;
    font-size: 14px;
}

table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

/* More compact table layout */
.compact-table td,
.compact-table th {
    padding: 5px 6px;
    font-size: 13px;
}

/* ------------------------------------------ */
/* TIMESLOT HEADERS                           */
/* ------------------------------------------ */

.timeslot-header {
    background: #f1f7ff;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 26px 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #004e7c;
    border-left: 5px solid #0077cc;
}

.timeslot-edit-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

/* ------------------------------------------ */
/* CONFIRMED + WAITLIST LABELS                */
/* ------------------------------------------ */

.sub-header {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
}

.confirmed-header {
    color: #1a7f37;
}

.waitlist-header {
    color: #b76e00;
}

/* ------------------------------------------ */
/* CHECKBOX + SLOT SELECT                     */
/* ------------------------------------------ */

.center {
    text-align: center;
}

.attendance-box {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.moveSlot {
    padding: 6px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ccd6e0;
    background: #ffffff;
}

/* ------------------------------------------ */
/* FORMS                                      */
/* ------------------------------------------ */

input,
select {
    width: 100%;
    padding: 10px;
    margin: 14px 0 14px 0;
    border-radius: 8px;
    border: 1px solid #ccd6e0;
    font-size: 15px;
}

.timeslot-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeslot-description {
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: start;
    gap: 35%;
    margin-bottom: -20px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 2px rgba(0,119,204,0.2);
}

/* ------------------------------------------ */
/* ACCORDION                                  */
/* ------------------------------------------ */

.accordion {
    margin-bottom: 20px;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: #e7f1fb;
    color: #004e7c;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.accordion-btn:hover {
    background: #d7e4f3;
}

.accordion-body {
    display: none;
    background: white;
    padding: 20px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-body.open {
    display: block;
    animation: drop 0.25s ease-out;
}

@keyframes drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------ */
/* MISC                                       */
/* ------------------------------------------ */

.empty-text {
    font-style: italic;
    opacity: 0.6;
    padding-left: 4px;
}

.muted {
    color: #666;
}


/* ------------------------------------------ */
/* PAGE LAYOUT IMPROVEMENTS                   */
/* ------------------------------------------ */

.container.narrow {
    max-width: 650px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 25px 0;
    color: #1e2c37;
}

/* ------------------------------------------ */
/* FORM CARDS                                 */
/* ------------------------------------------ */

.form-card {
    background: white;
    padding: 22px 26px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2b3a45;
}

/* ------------------------------------------ */
/* SLOT ROWS                                  */
/* ------------------------------------------ */

.slot-row {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
}

.slot-row input {
    flex: 1;
}

.remove-slot-btn {
    background: #d9534f;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

.remove-slot-btn:hover {
    background: #c9302c;
}

/* ------------------------------------------ */
/* BUTTONS                                     */
/* ------------------------------------------ */

.full-width {
    width: 100%;
}

.big-btn {
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    margin-top: 10px;
}

.btn-light {
    background: #eef3f8;
    color: #00528a;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #c9d6e5;
    cursor: pointer;
    font-size: 14px;
}

.btn-light:hover {
    background: #e0e9f3;
}


.input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}

.error-msg {
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
    height: 14px;
    transition: 0.15s ease;
}

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

#eventInfo {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Event Table */
.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.event-table th {
    background: #eef3f7;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #ccd6e0;
    font-size: 15px;
}

.event-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    vertical-align: middle;
}

/* Row hover */
.event-table tbody tr:hover {
    background: #f7fbff;
}

/* Action buttons */
.table-action-row {
    display: flex;
    gap: 10px;
}

.table-action-row .btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 7px;
}

.table-action-row .delete-btn {
    padding: 8px 12px !important;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Edit Modal Custom Styling */
.edit-modal {
    width: 450px;
    max-width: 90%;
}

#editEventModal input {
    margin-bottom: 14px;
}

/* Ensure correct modal stacking */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 14px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30%;
}

.signup-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}