/* ─── Thomas Bible Bot - Custom Styles ─── */

/* Importer Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Masquer totalement le watermark Chainlit (Image + Texte) */
#watermark,
.cl-watermark,
.watermark,
a img[alt="watermark"],
a[href*="chainlit.io"],
a[href*="github.com/Chainlit/chainlit"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Animation subtile sur les messages entrants */
.cl-message {
    animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style des blocs de citation (sources bibliques) */
blockquote {
    border-left: 3px solid hsl(32, 75%, 38%);
    padding-left: 12px;
    margin: 8px 0;
    font-style: italic;
    opacity: 0.9;
}

/* Amélioration de la zone de texte */
textarea {
    font-family: 'Inter', sans-serif !important;
}

/* Masquer l'icône d'upload */
#upload-button,
.cl-upload-button {
    display: none !important;
}
/* Pas de flash blanc à l'arrivée : la page est sombre (thème par défaut) avant
   même que Chainlit applique son thème, environ 2 s après le chargement. */
html:not(.light),
html:not(.light) body {
    background-color: hsl(30, 20%, 8%);
    color-scheme: dark;
}

/* Le bouton « Conversations » n'apparaît qu'une fois l'interface prête */
html:not(.dark):not(.light) #thomas-conv-toggle {
    visibility: hidden;
}
