.calendar-monthly {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    table-layout: fixed;
}

.calendar-header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.calendar-monthly th,
.calendar-monthly td {
    width: calc(100% / 7);
    padding: 0.75rem 0.25rem;
    font-size: 1rem;
    text-align: center;
    border: none;
    background: white;
}

.calendar-monthly td {
    height: 2.5rem;
    vertical-align: middle;
    position: relative;
}

.calendar-monthly td a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.calendar-monthly .weekend {
    color: #dc3545;
}

.calendar-monthly .today {
    padding: 0;
}

.calendar-monthly .today a {
    background-color: #0d6efd;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.calendar-monthly .today a:hover {
    background-color: #0b5ed7;
    color: white;
    text-decoration: none;
}

.calendar-monthly .other-month {
    color: #ccc;
}

.calendar-daily {
    width: 100%;
    border-collapse: collapse;
}

.calendar-daily th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    width: 80px;
}

.calendar-daily td {
    border: 1px solid #dee2e6;
    padding: 10px;
    height: 60px;
    vertical-align: top;
}

.calendar-daily .time-slot {
    font-weight: 500;
    color: #495057;
}

.reservation-slot {
    background-color: #e3f2fd;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

.room-list {
    list-style: none;
    padding: 0;
}

.room-list li {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.room-list li:last-child {
    border-bottom: none;
}

.room-list .room-name {
    font-weight: 500;
    color: #212529;
}

.room-list .room-capacity {
    font-size: 0.9em;
    color: #6c757d;
}

.calendar-controls {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.nav-btn {
    color: #0d6efd;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #f8f9fa;
    color: #0b5ed7;
}

.calendar-nav-title {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    margin: 0 1rem;
}

.calendar-nav button {
    background: none;
    border: none;
    cursor: pointer;
}

.card-body {
    padding: 0;
    overflow: visible;
}

.section-header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.rooms-list {
    padding: 1rem;
}

.room-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.room-item:last-child {
    margin-bottom: 0;
}

.room-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.room-name {
    font-weight: 500;
    color: #333;
}

.room-capacity {
    color: #666;
    font-size: 0.9rem;
}

.view-details-btn {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    text-decoration: underline;
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
    .calendar-monthly th,
    .calendar-monthly td {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }
}
