.calendar {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background-color: #f8f9fa;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-day:hover:not(.disabled):not(.reserved) {
    background-color: #e2f0ff;
}

.disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.reserved {
    background-color: #d4edda;
    color: #155724;
}

.today {
    border: 2px solid #007bff;
    font-weight: bold;
}

.other-month {
    color: #aaa;
}

/* Styles pour les fonctionnalités modérateur et admin */

/* Mise en forme des infos de réservation */
.reservation-info {
    font-size: 0.8rem;
    margin-top: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px;
    border-radius: 3px;
}

/* Styles pour le panneau d'administration */
.admin-panel {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

/* Style pour la liste des utilisateurs */
.user-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Réorganisation des cases du calendrier pour inclure les infos */
.calendar-day {
    min-height: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.day-number {
    position: absolute;
    top: 5px;
    left: 5px;
}

/* Ajoutez ces classes au début du fichier */
.date-picker-mobile {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 300px;
}

.date-picker-mobile select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Modifiez la media query existante et ajoutez la nouvelle logique */
@media screen and (max-width: 991px) {
    .calendar {
        display: none;
    }

    .date-picker-mobile {
        display: block;
    }
}