/* Styles pour le composant notification-profs */
/* Composant pour sélectionner les professeurs et chargés de cours à notifier */

/* Overlay de chargement */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

/* Messages d'alerte */
.alert-message {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: bold;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

/* Container principal */
.notification-profs-container {
    font-family: Arial, sans-serif;
    font-size: 11px;
}

/* Table de sélection */
.notification-profs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #ddd;
}

.notification-profs-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.notification-profs-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.notification-profs-table th:first-child {
    width: 50px;
    text-align: center;
}

.notification-profs-table tbody tr {
    border-bottom: 1px solid #eee;
}

.notification-profs-table tbody tr:hover {
    background-color: #f9f9f9;
}

.notification-profs-table td {
    padding: 8px;
    color: #333;
}

.notification-profs-table td:first-child {
    text-align: center;
}

/* Checkbox */
.notification-profs-table input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Checkbox dans l'en-tête pour tout sélectionner */
.notification-profs-table th input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Wrapper pour le conteneur avec hauteur fixe */
.notification-profs-table-wrapper {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Message quand aucune donnée */
.no-data-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Compteur de sélection */
.selection-counter {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    font-weight: normal;
}

.selection-counter strong {
    color: #333;
}
