/*
 * Neobotti Compta — overrides CSS.
 * Tailwind est chargé via CDN (cf. base.html). Ce fichier contient uniquement
 * les ajustements qui ne s'expriment pas bien en classes utilitaires :
 *   - scrollbar cohérente
 *   - transitions globales douces sur les focus
 *   - polish sur les éléments natifs
 */

:root {
    color-scheme: light;
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar discrète (WebKit + Firefox) */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Date input : rendu plus cohérent cross-browser */
input[type="date"] {
    min-height: 2.5rem;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Focus-visible : ring sobre sur éléments interactifs non déjà stylés */
:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* HTMX : fade-in des fragments nouvellement injectés */
.htmx-added { opacity: 0; }
.htmx-settling { opacity: 1; transition: opacity 0.15s ease-out; }

/* Animation pour la zone de drop PDF quand elle reçoit le focus */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}
