/* Base Styles */
/*body {
    font-family: sans-serif;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}*/

.calendar-container {
    width: 100%;
    max-width: 600px;
}

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

.calendar-header h2 {
    font-size: 1.2rem;
    margin: 0 10px;
}

.calendar-header button {
    font-size: 1rem;
    padding: 6px 12px;
    cursor: pointer;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
}

.calendar-day.disabled {
    background-color: #f0f0f0;
    color: #999;
    pointer-events: all;
}

.calendar-day.selected {
    background-color: #ff0;
    font-weight: bold;
}

.slots-container {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
}

.slots-container h3 {
    font-size: 1.1rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.slot {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.available {
    background-color: #d4fdd4;
    border: 1px solid #3cba54;
    color: #2e7d32;
}

.unavailable {
    background-color: #fdd4d4;
    border: 1px solid #ba3c3c;
    color: #7d2e2e;
}

.slot.selected {
    background-color: #fff68f;
    color: black;
}

.message-box {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 6px;
    background-color: #ffefef;
    border: 1px solid #ff4d4d;
    color: #b30000;
    font-weight: bold;
    display: none;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* Mobile-Specific Tweaks */
@media (max-width: 480px) {
    .calendar-header h2 {
        font-size: 1rem;
    }

    .calendar-day {
        padding: 8px;
        font-size: 0.8rem;
    }

    .slot {
        font-size: 0.85rem;
        padding: 8px;
    }

    .slots-container h3 {
        font-size: 1rem;
    }

    .calendar-header button {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

.calendar-day.weekend {
    background-color: #ffeaea;
    color: #cc0000;
}

.calendar-day.holiday {
    background-color: #fff4e6;
    border: 2px solid #ff9900;
    position: relative;
}

.calendar-day .holiday-label {
    font-size: 0.6rem;
    color: #b35900;
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    text-align: center;
    font-weight: bold;
}
