/**
 * HANDZONE - Styles pour la modal de conflit de terrain
 * Styles additionnels pour améliorer l'UX de la sélection de créneaux alternatifs
 */

/* Modal de conflit */
#fieldConflictModal .modal-header {
    border-bottom: none;
}

#fieldConflictModal .modal-body {
    padding: 1.5rem 2rem;
}

#fieldConflictModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

/* Cartes de créneaux alternatifs */
.alternative-slot-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.alternative-slot-card .card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Effet hover sur toute la carte */
.alternative-slot-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-left: 4px solid #667eea !important;
}

.alternative-slot-card .date-display {
    padding: 1rem;
}

.alternative-slot-card .day-name {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.alternative-slot-card .date-number {
    color: #667eea;
    margin: 0.25rem 0;
}

.alternative-slot-card .month-year {
    font-size: 0.875rem;
}

.alternative-slot-card .slot-details {
    padding: 0.5rem 0;
}

.alternative-slot-card .slot-details i {
    width: 20px;
}

/* Badge de compteur */
#fieldConflictModal .badge.rounded-pill {
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Alert personnalisé */
#fieldConflictModal .alert {
    border-left: 4px solid;
}

#fieldConflictModal .alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

#fieldConflictModal .alert-info {
    border-left-color: #0dcaf0;
    background-color: #cff4fc;
}

/* Effet sur les boutons */
#fieldConflictModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

#fieldConflictModal .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Animation d'apparition des cartes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alternative-slot-card {
    animation: slideInUp 0.4s ease-out forwards;
}

.alternative-slot-card:nth-child(1) {
    animation-delay: 0.1s;
}

.alternative-slot-card:nth-child(2) {
    animation-delay: 0.2s;
}

.alternative-slot-card:nth-child(3) {
    animation-delay: 0.3s;
}

.alternative-slot-card:nth-child(4) {
    animation-delay: 0.4s;
}

.alternative-slot-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .alternative-slot-card .card-body .row {
        text-align: center;
    }

    .alternative-slot-card .card-body .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }

    #fieldConflictModal .modal-body {
        padding: 1rem;
    }
}