/* Styles pour la liste déroulante de statut avec couleurs */
.statut-select {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    min-height: 3rem;
    position: relative;
}

.statut-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.statut-select:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Styles pour les options de la liste déroulante */
.statut-select option {
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

/* Couleurs des options par statut */
.statut-select option[data-code="DRAFT"] {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.statut-select option[data-code="PENDING"] {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
}

.statut-select option[data-code="CONFIRMED"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.statut-select option[data-code="IN_PROGRESS"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.statut-select option[data-code="COMPLETED"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.statut-select option[data-code="DELIVERED"] {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
}

.statut-select option[data-code="INVOICED"] {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    color: white;
}

.statut-select option[data-code="CANCELLED"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

/* Couleurs dynamiques pour la liste déroulante selon le statut sélectionné */
.statut-select.statut-draft {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #6c757d;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.statut-select.statut-pending {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
    border-color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.statut-select.statut-confirmed {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.statut-select.statut-in-progress {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.statut-select.statut-completed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.statut-select.statut-delivered {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-color: #20c997;
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
}

.statut-select.statut-invoiced {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    color: white;
    border-color: #6f42c1;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
}

.statut-select.statut-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Effets de survol pour les couleurs dynamiques */
.statut-select.statut-draft:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.6);
}

.statut-select.statut-pending:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.statut-select.statut-confirmed:hover {
    background: linear-gradient(135deg, #138496 0%, #17a2b8 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(23, 162, 184, 0.6);
}

.statut-select.statut-in-progress:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.6);
}

.statut-select.statut-completed:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
}

.statut-select.statut-delivered:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(32, 201, 151, 0.6);
}

.statut-select.statut-invoiced:hover {
    background: linear-gradient(135deg, #5a2d91 0%, #6f42c1 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(111, 66, 193, 0.6);
}

.statut-select.statut-cancelled:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.6);
}

/* Animation d'apparition */
.statut-select {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de pulsation pour l'attention */
.statut-select:focus {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

/* Icône personnalisée pour la flèche */
.statut-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .statut-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        min-height: 2.5rem;
    }
}

/* Amélioration de l'accessibilité */
.statut-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* État désactivé */
.statut-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.statut-select:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
} 