/* Styles pour la section principale et le titre */
.section {
    padding-top: var(--spacing-l, 2rem);
    padding-bottom: var(--spacing-l, 2rem);
    background-color: var(--color-background-alt, #f8f9fa);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-m, 1.5rem);
}

.section-title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 2.5rem;
    color: var(--color-text-dark, #212529);
    text-align: center;
    margin-bottom: var(--spacing-l, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#schedule-display-title {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 1.5rem;
    color: var(--color-primary-dark, #0056b3);
    text-align: center;
    margin-top: var(--spacing-l, 2rem);
    margin-bottom: var(--spacing-m, 1.5rem);
    font-weight: 600;
}

/* Styles des filtres */
.filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-m, 1.5rem);
    margin-bottom: var(--spacing-l, 2rem);
    flex-wrap: wrap;
    background-color: var(--color-white, #ffffff);
    padding: var(--spacing-m, 1.5rem);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filters label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 1rem;
    color: var(--color-text-dark, #212529);
    margin-bottom: var(--spacing-xs, 0.5rem);
    font-weight: 500;
}

.filters select {
    padding: 10px 15px;
    border: 1px solid var(--color-border, #ced4da);
    border-radius: 5px;
    background-color: var(--color-white, #ffffff);
    color: var(--color-text, #333333);
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.filters select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.filters select:focus {
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Styles du tableau */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: var(--spacing-m, 1.5rem);
}

#schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-l, 2rem);
    background-color: var(--color-white, #ffffff);
    box-shadow: 0 2px 5px rgba(0,0,0, 0.1);
    min-width: 900px;
}

#schedule-table th,
#schedule-table td {
    border: 1px solid var(--color-border-light, #dee2e6);
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    font-family: var(--font-body, 'Poppins', sans-serif);
    color: var(--color-text, #333333);
}

#schedule-table th {
    background-color: var(--color-primary, #007bff);
    color: var(--color-white, #ffffff);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 15px 8px;
    white-space: nowrap;
}

#schedule-table td:first-child, 
#schedule-table td:nth-child(2) {
    text-align: left;
    font-weight: 500;
    color: var(--color-text-dark, #212529);
}

#schedule-table tbody tr:nth-child(even) {
    background-color: var(--color-background-light, #f8f9fa);
}

#schedule-table tbody tr:hover {
    background-color: var(--color-background-hover, #e9ecef);
    transition: background-color 0.2s ease-in-out;
}

#schedule-table td.no-data {
    text-align: center;
    font-weight: bold;
    color: var(--color-text-light, #6c757d);
    padding: 30px;
    font-size: 1.1em;
}

#schedule-table td br {
    display: block;
    margin-bottom: 5px;
}

/* Style pour le lien du professeur */
#schedule-table .prof-link {
    color: var(--color-primary-dark, #0056b3);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

#schedule-table .prof-link:hover {
    color: var(--color-primary, #007bff);
    text-decoration: underline;
}

/* Styles pour la modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white, #ffffff);
    padding: var(--spacing-l, 2rem);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* Style pour le tableau dans la modale */
.prof-schedule-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-m, 1.5rem);
}

.prof-schedule-modal-table th,
.prof-schedule-modal-table td {
    border: 1px solid var(--color-border-light, #dee2e6);
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
}

.prof-schedule-modal-table th {
    background-color: var(--color-background-alt, #f8f9fa);
    font-weight: 600;
}

.prof-schedule-modal-table tbody tr:nth-child(even) {
    background-color: var(--color-background-light, #f1f1f1);
}

/* Responsive */
@media (max-width: 767px) {
    .filters {
        flex-direction: column;
        gap: var(--spacing-s, 0.75rem);
    }
    .filters select {
        width: 100%;
    }
    #schedule-table {
        min-width: 700px;
    }
}
/* ... tous vos styles existants ... */

/* NOUVEAU : Style pour les boutons de téléchargement PDF */
.btn-download-pdf {
    display: block;
    margin: 1.5rem auto 0; /* Marge en haut pour le séparer du titre/tableau */
    padding: 10px 20px;
    background-color: #d32f2f; /* Couleur rouge, distinctive */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-download-pdf:hover {
    background-color: #b71c1c;
}

.btn-download-pdf i {
    margin-right: 8px; /* Espace entre l'icône et le texte */
}

/* Ajustement pour le bouton dans la modale */
#prof-modal-content .btn-download-pdf {
    margin-top: 1.5rem;
}