:root {
    --primary-color: #e45050;
    --secondary-color: #3d0000;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
}

/* Calendar Section */
.calendar {
    padding: 4rem 0;
    box-sizing: border-box;
}

.calendar h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-widget {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
    min-width: 150px;
    text-align: center;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-header .button {
    font-size: 12px;
    padding: 8px 12px;
    border-bottom: 2px solid #e45050;
}

.day-header {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.75rem 0;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

#calendarDays {
    display: contents;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:not(.empty) {
    background: var(--bg-light);
    color: var(--text-dark);
}

.calendar-day:not(.empty):hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border-color: var(--secondary-color);
}

.calendar-day.reserved {
    background: #fbbf24;
    color: #78350f;
    font-weight: bold;
    border-color: #f59e0b;
}

.calendar-day.reserved:hover {
    background: #f59e0b;
    color: white;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

#modalBody {
    color: var(--text-dark);
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

#modalDate {
    margin-top: 0;
}

.modal .button {
    width: 100%;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1024px) {
    .calendar {
        padding: 2rem 0 3rem;
    }

    .calendar .container {
        padding: 0 32px;
    } 

    .calendar-header .button-caption {
        display: none;
    }

    .calendar-header {
        margin-bottom: 1rem;
    }
}