body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;

}

.calendar-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.month-column {
    width: 100%;
}

.event-card {
    background-color: #4e8abe;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
}

.event-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.organizer-icon-container {
    flex: 0 0 auto;
}

.date-container {
    flex: 0 0 auto;
    text-align: center;
    font-size: larger;
}

.event-day {
    font-size: 2em;
    font-weight: bold;
}

.event-month {
    font-size: 1em;
}

.event-title-container {
    flex: 1;
    margin-left: 20px;
}

.time-location-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.other-events-button, .learn-more-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.other-events-button:hover, .learn-more-button:hover {
    background-color: #0056b3;
}

.event-section {
    background-color: white;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.calendar-icon, .googlecal-icon, .directions-icon {
    margin-right: 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.month-header {
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    background-color: #0079c2;
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    background-color: #f5f5f5;
    padding: 10px 0;
    font-weight: bold;
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #ddd;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-cell {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 10px;
    font-size: 1.1em;
    box-sizing: border-box;
}

.calendar-cell.available {
    background-color: #f8f9fa;
}

.calendar-cell.available:hover {
    background-color: #f8f9fa;
}

.calendar-cell.unavailable {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.calendar-cell.reserved {
    background-color: #ffebee;
    color: #d32f2f;
    font-weight: bold;
}

.calendar-cell.past {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.calendar-cell.pending {
    background-color: #fff3e0;
    color: #f57c00;
    font-weight: bold;
}

.weekday-header div {
    padding: 10px;
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
}

/* Reservation Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

#reservationForm button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #0079c2;
}

#reservationForm button:hover {
    background-color: #0056b3;
}

#selectedDate {
    font-weight: bold;
    color: var(--primary-color);
}

.calendar-cell.selected {
    background-color: #4e8abe;
    color: white;
}

.calendar-cell.selected:hover {
    background-color: #3a6d9e;
}

.calendar-cell.in-range {
    background-color: #e3f2fd;
    border: 1px solid #4e8abe;
}

.calendar-cell.in-range:hover {
    background-color: #bbdefb;
}

.date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.reserved-text {
    font-size: 0.7em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-icon {
    height: 45px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: white;
    white-space: nowrap;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-icon {
        height: 45px;
    }

    header h1 {
        font-size: 1.2em;
    }

    .calendar-cell {
        font-size: 0.9em;
        padding: 5px;
    }

    .calendar-container {
        padding: 0 10px;
    }

    .date-content {
        gap: 2px;
    }

    .reserved-text {
        font-size: 0.6em;
    }

    .footer-content {
        padding: 10px;
    }

    .footer-tree-logo {
        height: 40px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-icon {
        height: 35px;
    }

    header h1 {
        font-size: 1em;
    }

    .calendar-cell {
        font-size: 0.8em;
        padding: 3px;
    }

    .reserved-text {
        font-size: 0.5em;
    }
}

.calendar-instructions {
    background-color: #e3f2fd;
    border-left: 4px solid #0079c2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.calendar-instructions p {
    margin: 5px 0;
    color: #333;
    font-size: 0.9em;
}

.selection-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.selection-feedback.valid {
    background-color: #e3f2fd;
    color: #0079c2;
}

.selection-feedback.invalid {
    background-color: #ffebee;
    color: #d32f2f;
}

.time-picker-flyout {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
}

.time-picker-content {
    min-width: 200px;
}

.time-picker-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.time-slots select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.time-picker-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.time-picker-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#confirmTime {
    background-color: #0079c2;
    color: white;
}

#cancelTime {
    background-color: #f5f5f5;
    color: #333;
}

.reservation-controls {
    margin-bottom: 20px;
    text-align: right;
}

.primary-button {
    background-color: #0079c2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.primary-button:hover {
    background-color: #005c94;
}

.date-time-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-time-selection select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
