/**
 * STYLES POUR LES JOURS D'ARRIVÉE BLOQUÉS
 * Version: 1.0
 */

/* Styles pour le calendrier personnalisé CDV */
.cdv-day-blocked-arrival {
    background: #fee2e2 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
    position: relative;
}

.cdv-day-blocked-arrival::after {
    content: '🚫';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.cdv-day-blocked-arrival:hover {
    background: #fecaca !important;
    opacity: 0.8 !important;
}

/* Empêcher la sélection */
.cdv-day-blocked-arrival.cdv-day-selectable {
    pointer-events: none;
}

/* Style pour les dates bloquées dans jQuery UI Datepicker */
.ui-datepicker td .blocked-arrival-day {
    background: #fee2e2 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

.ui-datepicker td .blocked-arrival-day:hover {
    background: #fecaca !important;
}

/* Style pour les dates bloquées dans DateRangePicker */
.daterangepicker td.disabled {
    background: #fee2e2 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* Animation pour attirer l'attention */
@keyframes pulse-blocked {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.cdv-day-blocked-arrival:hover {
    animation: pulse-blocked 1s ease-in-out infinite;
}

/* Message de tooltip amélioré */
.cdv-day-blocked-arrival[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .cdv-day-blocked-arrival::after {
        font-size: 8px;
    }
}