/* Police Coolvetica pour les titres d'applications (via CDN) */
@import url('https://fonts.cdnfonts.com/css/coolvetica-2');

/* Titre d'application : Coolvetica, blanc sur fond noir ; le rectangle noir est penché (italique), le texte reste droit */
.app-title {
    font-family: 'Coolvetica', 'Coolvetica Rg', 'Helvetica Neue', Arial, sans-serif !important;
    color: #fff !important;
    padding: 0.375rem 0.75rem;
    display: inline-block;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 0;
}
.app-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #000;
    transform: skewX(-12deg);
    z-index: -1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Styles pour les champs de date personnalisés */
.date-input-wrapper {
    position: relative;
}

.date-input-custom {
    position: relative;
}

/* Masquer le placeholder natif du navigateur pour les champs date */
.date-input-custom::-webkit-datetime-edit-text,
.date-input-custom::-webkit-datetime-edit-month-field,
.date-input-custom::-webkit-datetime-edit-day-field,
.date-input-custom::-webkit-datetime-edit-year-field {
    color: transparent;
}

.date-input-custom::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Quand le champ est vide et en focus, masquer complètement le texte natif */
.date-input-custom:not([value]):focus::-webkit-datetime-edit-text,
.date-input-custom:not([value]):focus::-webkit-datetime-edit-month-field,
.date-input-custom:not([value]):focus::-webkit-datetime-edit-day-field,
.date-input-custom:not([value]):focus::-webkit-datetime-edit-year-field {
    color: transparent;
    background: transparent;
}

/* Pour Firefox */
.date-input-custom::-moz-placeholder {
    color: transparent;
}

/* Pour les autres navigateurs */
.date-input-custom::placeholder {
    color: transparent;
}

/* Transitions modernes pour Vue.js */
.slide-fade-enter-active {
    transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
    transition: all 0.2s ease-in;
}

.slide-fade-enter-from {
    transform: translateY(-10px);
    opacity: 0;
}

.slide-fade-leave-to {
    transform: translateY(-5px);
    opacity: 0;
}

.slide-down-enter-active {
    transition: all 0.3s ease-out;
}

.slide-down-leave-active {
    transition: all 0.2s ease-in;
}

.slide-down-enter-from {
    transform: translateY(-20px);
    opacity: 0;
}

.slide-down-leave-to {
    transform: translateY(-10px);
    opacity: 0;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* Transition douce pour le bloc Diffusions TV (recherche → en base) */
.tv-diffusions-fade-enter-active,
.tv-diffusions-fade-leave-active {
    transition: opacity 0.2s ease;
}

.tv-diffusions-fade-enter-from,
.tv-diffusions-fade-leave-to {
    opacity: 0;
}

/* Indicateur de drop pour le drag & drop des colonnes (Live Dates) */
.column-drop-indicator {
    position: absolute;
    left: -2px;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    z-index: 20;
    animation: column-drop-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes column-drop-pulse {
    from {
        opacity: 0.8;
        transform: scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Transition fluide pour les colonnes en cours de drag */
.column-drag-row th {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* CMO Doc batch : scroll horizontal du tableau sans rogner le menu filtre statut (overflow-y) */
.doc-batch-table-scroll {
    overflow-x: auto;
    overflow-y: visible !important;
}

/* CMO Doc — modale « sous les seuils » : fond opaque (Tailwind/global ne doit pas la rendre transparente) */
.doc-batch-below-modal {
    background-color: rgba(0, 0, 0, 0.5) !important;
}
.doc-batch-below-modal__card {
    background-color: #ffffff !important;
    opacity: 1 !important;
    isolation: isolate;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.doc-batch-below-modal__header {
    background-color: #ffffff !important;
    opacity: 1 !important;
}
.doc-batch-below-modal__body,
.doc-batch-below-modal__footer {
    background-color: #ffffff !important;
    opacity: 1 !important;
}
.doc-batch-below-modal__amber {
    background-color: #fffbeb !important; /* amber-50 */
    border: 1px solid #fcd34d !important;
}
.doc-batch-below-modal__btn-secondary {
    background-color: #ffffff !important;
}