/* =========================================
   STYLE GLOBAL & LAYOUT
========================================= */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f8f9fa;
    overflow: hidden;
}
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.content-area {
    padding: 20px;
    overflow-y: auto;
}

/* =========================================
   BARRE LATÉRALE (SIDEBAR)
========================================= */
.sidebar {
    width: 225px;
    background-color: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
}
.sidebar-brand {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    background: #2563eb;
    padding: 5px 10px;
    border-radius: 5px;
}
.sidebar-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.nav-link {
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #94a3b8;
    transition: background-color 0.2s;
}
.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
    background-color: #2563eb;
    color: white;
}
.logout {
    margin-top: auto;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #ef4444;
    transition: background-color 0.2s;
}
.logout:hover {
    color: white;
    background-color: rgba(239, 68, 68, 0.8);
}

/* =========================================
   HEADER (HAUT DE PAGE)
========================================= */
.app-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
.user-greeting {
    font-weight: bold;
    color: #333;
}
.user-avatar {
    background: #0f172a;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: bold;
}

/* =========================================
   PLANNING & BOUTONS
========================================= */
.calendar-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.filters-group {
    display: flex;
    gap: 20px;
    align-items: center;
}
.toggle-group {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}
.toggle-btn {
    padding: 8px 15px;
    border: none;
    background: #f8f9fa;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
}
.toggle-btn.active {
    background: white;
    color: #2563eb;
    font-weight: bold;
    border-left: 1px solid #e2e8f0;
}
.select-building {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-weight: bold;
    color: #333;
}
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover {
    background: #1d4ed8;
}

/* Selecteur de mois */
.date-picker-form {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.select-month-input {
    border: 1px solid #E0E5F2;
    border-radius: 10px;
    padding: 8px 12px;
    color: #1B2559;
    font-weight: 700;
    font-size: 14px;
    background-color: #F4F7FE;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-month-input:hover {
    background-color: #fff;
    border-color: #4318FF;
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.08);
}

.toggle-group button, 
.toggle-group a {
    text-decoration: none;
    display: inline-block;
}

/* Style pour les salles qui n'appartiennent pas au gestionnaire */
.salle-grisee {
    opacity: 0.7;
    background-color: #f3f4f6 !important;
    /* pointer-events: none; Empêche de cliquer dessus sur le planning si besoin */
    font-style: italic;
}