/* STYLES POUR LE LOADER ADMIN FEEDBACK */
.feedback-admin-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feedback-admin-loader.show {
    opacity: 1;
    pointer-events: all;
}

.feedback-admin-loader .loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-admin-loader .loader-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
}

.feedback-admin-loader .loader-spinner {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
}

.feedback-admin-loader .loader-message {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* STYLES POUR LES TOASTS PERSONNALISÉS */
.feedback-admin-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 300px;
    border-left: 4px solid #3498db;
}

.feedback-admin-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.feedback-admin-toast.toast-success {
    border-left-color: #28a745;
}

.feedback-admin-toast.toast-error {
    border-left-color: #ED7470;
}

.feedback-admin-toast.toast-warning {
    border-left-color: #ffc107;
}

.feedback-admin-toast .toast-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.feedback-admin-toast .toast-content i {
    margin-right: 10px;
    font-size: 18px;
}

.feedback-admin-toast.toast-success i {
    color: #28a745;
}

.feedback-admin-toast.toast-error i {
    color: #ED7470;
}

.feedback-admin-toast.toast-warning i {
    color: #ffc107;
}

.feedback-admin-toast.toast-info i {
    color: #3498db;
}

.feedback-admin-toast .toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Loader dans la modal admin */
#feedback-admin-panel .feedback-admin-loader .loader-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
}

#feedback-admin-panel .feedback-admin-loader .loader-content {
    background: #303D4E;
    color: white;
}

#feedback-admin-panel .feedback-admin-loader .loader-spinner {
    color: white;
}

#feedback-admin-panel .feedback-admin-loader .loader-message {
    color: white;
}

/* STYLES POUR LA SECTION VALIDATION AUTOMATIQUE */
.auto-validation-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.auto-validation-section .section-header h3 {
    color: #303D4E;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-validation-section .section-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.auto-validation-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.threshold-control {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.threshold-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.threshold-value {
    color: #007bff;
    font-weight: bold;
}

.threshold-slider {
    width: 100%;
    margin: 10px 0;
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.auto-validation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-auto-validate {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-preview {
    background: #3498db;
    color: white;
}

.btn-preview:hover {
    background: #3498db;
}

.btn-execute {
    background: #3498db;
    color: white;
}

.btn-execute:hover {
    background: #3498db;
}

/* STYLES POUR LA PRÉVISUALISATION DES CANDIDATS */
.candidates-preview {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.candidates-preview.hidden {
    display: none;
}

.candidates-preview h4 {
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.candidates-summary {
    margin-bottom: 20px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.eligible-count {
    font-weight: bold;
    color: #DC714A;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.candidate-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: white;
}

.candidate-card.eligible {
    border-left: 4px solid #DC714A;
}

.candidate-card.not-eligible {
    border-left: 4px solid #ED7470;
    opacity: 0.7;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.candidate-status {
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.candidate-status.eligible {
    color: #28a745;
}

.candidate-status.not-eligible {
    color: #ED7470;
}

.candidate-rating {
    font-size: 12px;
    color: #666;
}

.candidate-preview {
    margin-bottom: 10px;
}

.candidate-query {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.candidate-issues {
    background: #f8d7da;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.candidate-actions {
    margin-top: 10px;
}

.candidate-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.candidate-checkbox input {
    cursor: pointer;
}

.preview-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn-bulk-validate {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-bulk-validate:hover {
    background: #3498db;
    transform: translateY(-1px);
}

.no-candidates {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-candidates i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* DIALOG DE CONFIRMATION AMÉLIORÉ */
.confirmation-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-dialog {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.confirmation-dialog .dialog-header {
    background: #3498db;
    color: white;
    padding: 20px;
}

.confirmation-dialog .dialog-header h4 {
    margin: 0;
    font-size: 18px;
}

.confirmation-dialog .dialog-content {
    padding: 20px;
}

.confirmation-dialog .dialog-content p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.confirmation-dialog .dialog-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    justify-content: flex-end;
}

.confirmation-dialog .btn-cancel,
.confirmation-dialog .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.confirmation-dialog .btn-cancel {
    background: #6c757d;
    color: white;
}

.confirmation-dialog .btn-cancel:hover {
    background: #545b62;
}

.confirmation-dialog .btn-confirm {
    background: #3498db;
    color: white;
}

.confirmation-dialog .btn-confirm:hover {
    background: #3498db;
}