/* Conteneur des étoiles modifiables */
.editable-rating {
    display: inline-flex;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.editable-rating:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Étoiles modifiables */
.feedback-star.editable {
    font-size: 24px;
    transition: all 0.2s ease;
    cursor: pointer !important;
    color: #ddd;
}

.feedback-star.editable.active {
    color: #ffc107;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

.feedback-star.editable.empty {
    color: #ccc;
}

.feedback-star.editable:hover {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.8));
}

/* Animation au clic */
.feedback-star.editable:active {
    transform: scale(0.9);
}

/* Badge de statut amélioré */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.status-badge.under_review {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #009DDA;
}

/* Boutons de validation désactivés */
.btn-validate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d !important;
}

.btn-validate:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Section détails du feedback */
.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3B4757;
}

.detail-section h4 {
    color: #3B4757;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.detail-section h4 i {
    margin-right: 8px;
}

.detail-content {
    color: #333;
    line-height: 1.6;
}

/* Zone de notes de validation */
.validation-notes {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.validation-notes:focus {
    outline: none;
    border-color: #009DDA;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Actions de validation */
.validation-actions {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.validation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-validate {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-validate i {
    font-size: 16px;
}

.btn-approve {
    background: #61C276;
    color: white;
}

.btn-approve:hover:not(:disabled) {
    background: #61C276;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-reject {
    background: #ED7470;
    color: white;
}

.btn-reject:hover:not(:disabled) {
    background: #ED7470;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-review {
    background: #DC714A;
    color: white;
}

.btn-review:hover:not(:disabled) {
    background: #DC714A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 114, 23, 0.3);
}

/* Indicateur d'aide pour les étoiles */
.editable-rating::before {
    content: "Cliquez pour modifier →";
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.editable-rating:hover::before {
    opacity: 1;
}

/* Animation de pulse pour attirer l'attention sur les étoiles */
@keyframes pulse-stars {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.editable-rating.highlight {
    animation: pulse-stars 2s ease-in-out 3;
}

/* Responsive */
@media (max-width: 768px) {
    .validation-buttons {
        flex-direction: column;
    }
    
    .btn-validate {
        width: 100%;
    }
    
    .feedback-star.editable {
        font-size: 20px;
    }
}

/* Toast personnalisé pour les feedbacks */
.feedback-admin-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.feedback-admin-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.toast-success {
    border-left: 4px solid #61C276;
}

.toast-success i {
    color: #61C276;
    font-size: 18px;
}

.toast-error {
    border-left: 4px solid #ED7470;
}

.toast-error i {
    color: #ED7470;
    font-size: 18px;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning i {
    color: #ffc107;
    font-size: 18px;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info i {
    color: #17a2b8;
    font-size: 18px;
}

/* Loader */
.feedback-admin-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feedback-admin-loader .loader-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feedback-admin-loader .loader-spinner i {
    font-size: 48px;
    color: #009DDA;
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}