/* Chatbot Styles - Centralized */

[v-cloak] {
    display: none !important;
}

/* Disabled button styling (reset confirmation) */
.chatbot-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
}

.chatbot-button-disabled:hover {
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
}

/* Citation lists: no bullets, the [n] prefix already numbers the entries */
.chatbot-sources ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/* Loading phrase fade animation */
.loading-phrase {
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media screen and (min-width: 768px) {
    .max-h-calculated {
        max-height: min(max(calc(100vh - 450px), 320px), 800px) !important;
    }
}

/* Privacy notice (initial bot message, see texts.privacyNotice in chatbot-app.js) */
.chatbot-privacy-notice {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: #f5f5f5;
}
.chatbot-privacy-notice{
	font-size: 0.75rem;
}

.chatbot-privacy-notice .chatbot-privacy-notice-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;

}

/* Intro messages seeded via initialMessages / privacyNotice: editorial texts, visually distinct from AI answers */
.chatbot-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.chatbot-intro p {
    margin: 0 0 0.5rem;
}

.chatbot-intro p:last-child {
    margin-bottom: 0;
}

.chatbot-intro-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Bot-Antworten buendig am oberen Rand beginnen lassen.
   Tailwind-Typography setzt margin-top:0 nur auf .prose > :first-child. Kommt die
   Antwort aus dem Backend in einem Wrapper-Element, greift diese Regel fuer den
   ersten Absatz nicht mehr: er behaelt seinen Abstand von 1,25em und die Antwort
   startet unterhalb des sichtbaren Bereichs. Bei Antworten, die mit einer
   Ueberschrift beginnen, faellt das nicht auf, weil <h2> optisch fuellt. */
#chatbot_answer_box .prose > :first-child,
#chatbot_answer_box .prose > :first-child > :first-child {
    margin-top: 0;
}
