* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* ---------- HEADER ---------- */

.site-header {
    background-color: #1f1f1f;
    color: white;
    padding: 1rem 2rem;
    border-bottom: 5px solid #ff5a1f;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: white;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.65rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-text p {
    font-size: 0.85rem;
    color: #ddd;
}

/* ---------- NAV ---------- */

.main-nav ul {
    list-style: none;

    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.main-nav a:hover {
    background-color: #ff5a1f;
}

/* ---------- MAIN CONTENT ---------- */

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---------- HERO ---------- */

.hero {
    background: linear-gradient(135deg, #ff5a1f, #d92f12);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    max-width: 680px;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.hero-logo-wrap {
    background-color: rgba(255, 255, 255);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    width: 185px;
    height: 185px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.hero-logo {
    margin-left:-20px;
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* ---------- BUTTON ---------- */

.btn {
    display: inline-block;
    background-color: white;
    color: #c93114;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

/* ---------- CONTENT SECTIONS ---------- */

.content-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: #c93114;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

/* ---------- FEATURE CARDS ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-top: 5px solid #ff5a1f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    color: #c93114;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #333;
}

/* ---------- FOOTER ---------- */

.site-footer {
    background-color: #1f1f1f;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- LOGIN MODAL ---------- */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.65);
}

.modal-box {
    background-color: white;
    width: 90%;
    max-width: 420px;

    margin: 8rem auto;
    padding: 2rem;

    border-radius: 12px;
    position: relative;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.modal-box h2 {
    color: #c93114;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    margin-bottom: 1.5rem;
    color: #555;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;

    border: none;
    background: none;

    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

.login-form,
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#loginForm label {
    font-weight: bold;
}

#loginForm input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.error-message {
    color: #b00020;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.success-message {
    color: #1c7c32;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

/* ---------- ADMIN SCHEDULE ---------- */

.event-card {
    background-color: white;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid #ff5a1f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.event-card-header h2 {
    color: #c93114;
    margin-bottom: 0.25rem;
}

.event-cost {
    background-color: #1f1f1f;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

.event-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;

    margin-bottom: 1.5rem;
}

.event-info-grid h3,
.staff-section h3 {
    color: #c93114;
    margin-bottom: 0.5rem;
}

.event-info-grid a {
    color: #c93114;
    font-weight: bold;
}

.staff-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.staff-column {
    background-color: #f6f6f6;
    padding: 1rem;
    border-radius: 10px;
}

.staff-column h4 {
    margin-bottom: 0.75rem;
    color: #1f1f1f;
    border-bottom: 2px solid #ff5a1f;
    padding-bottom: 0.4rem;
}

.staff-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.45rem 0;
    border-bottom: 1px solid #ddd;
}

.staff-row:last-child {
    border-bottom: none;
}

/* ---------- EMPLOYEE SCHEDULE ---------- */

.employee-event-card {
    background-color: white;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid #1f1f1f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.employee-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.employee-event-header h2 {
    color: #c93114;
    margin-bottom: 0.25rem;
}

.map-btn {
    white-space: nowrap;
    background-color: #1f1f1f;
    color: white;
}

.map-btn:hover {
    background-color: #333;
    color: white;
}

/* ---------- VACATION REQUESTS ---------- */

.vacation-card {
    background-color: white;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid #ff5a1f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.vacation-card h2 {
    color: #c93114;
    margin-bottom: 1rem;
}

.vacation-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.vacation-form label {
    font-weight: bold;
}

.vacation-form input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.vacation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.vacation-table th,
.vacation-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.vacation-table th {
    background-color: #1f1f1f;
    color: white;
}

.vacation-table tr:nth-child(even) {
    background-color: #f6f6f6;
}

/* ---------- ADMIN SPREADSHEET ---------- */

.spreadsheet-main {
    max-width: 1400px;
}

.spreadsheet-wrapper {
    margin-top: 2rem;
    background-color: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.schedule-spreadsheet {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.schedule-spreadsheet th,
.schedule-spreadsheet td {
    border: 1px solid #ddd;
    padding: 0.65rem;
    text-align: center;
    font-size: 0.9rem;
}

.schedule-spreadsheet th {
    background-color: #1f1f1f;
    color: white;
    position: sticky;
    top: 0;
    z-index: 5;
}

.schedule-spreadsheet th span {
    font-size: 0.8rem;
    color: #ddd;
}

.sticky-name-col {
    position: sticky;
    left: 0;
    z-index: 4;
    background-color: white;
    text-align: left !important;
    min-width: 180px;
}

.schedule-spreadsheet th.sticky-name-col {
    z-index: 6;
    background-color: #1f1f1f;
}

.employee-name {
    font-weight: bold;
}

.role-divider td {
    background-color: #ff5a1f;
    color: white;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
}

.assignment-cell {
    background-color: #f9f9f9;
}

.assignment-cell input {
    transform: scale(1.25);
    cursor: pointer;
}

.vacation-cell {
    background-color: #b00020;
    color: white;
    font-weight: bold;
}

.vacation-cell span {
    font-size: 0.8rem;
}

.summary-row td {
    background-color: #f1f1f1;
    font-weight: bold;
}

.cost-row td {
    background-color: #fff3ec;
    color: #c93114;
}

.spreadsheet-message {
    margin-top: 1rem;
}

.spreadsheet-notes {
    margin-top: 2rem;
}

/* ---------- TOTAL EVENTS COLUMN ---------- */

.total-events-header {
    background-color: #000 !important;
    color: #ffeb3b !important;
    min-width: 100px;
}

.total-events-cell {
    background-color: #fff36a;
    font-weight: bold;
    color: #000;
}

.total-events-footer {
    background-color: #000 !important;
}

/* ---------- RESPONSIVE ---------- */

@media screen and (max-width: 900px) {

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo-wrap {
        width: 140px;
        height: 140px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 1.85rem;
    }

    .main-content {
        padding: 1rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .event-card-header,
    .event-info-grid,
    .staff-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .event-cost {
        width: fit-content;
    }

    .employee-event-header {
        flex-direction: column;
    }

    .map-btn {
        width: fit-content;
    }
}

/* ---------- MINIMIZE COST BUTTON ---------- */

.minimize-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.dark-btn {
    background-color: #1f1f1f;
    color: white;
}

.dark-btn:hover {
    background-color: #333;
    color: white;
}