/* style.css - Dark Mode Theme */

/* Grundlegende Stile & Dark Mode Hintergrund */
body {
    background-color: #212529; /* Dunkler Hintergrund */
    color: #dee2e6; /* Hellerer Text für besseren Kontrast */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container-Anpassungen */
.container-fluid {
    max-width: 800px; /* Begrenzt die Breite für bessere Lesbarkeit */
}

/* Login-Bereich anpassen */
#login-section h1 {
    font-weight: 700;
    color: #fff;
}

/* Chat-Nachrichten Styling */
.user-message, .bot-message {
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 15px; /* Erhöhter Abstand zwischen Nachrichten */
    max-width: 90%;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end; /* Eigene Nachrichten rechtsbündig */
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #343a40; /* Etwas helleres Grau für Bot-Nachrichten */
    color: #f8f9fa;
    align-self: flex-start; /* Bot-Nachrichten linksbündig */
    border-bottom-left-radius: 4px;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

/* Animation für das Einblenden der Nachrichten */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* "Denk"-Animation (pulsierende Punkte) */
.thinking-animation span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    margin: 0 2px;
    animation: pulse 1.4s infinite ease-in-out both;
}

.thinking-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}


/* Input-Bereich */
.input-container {
    background-color: #212529;
    padding: 1rem 0;
}

#url-input {
    background-color: #e1e5ea;
    border: 1px solid #495057;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
}

#url-input:focus {
    background-color: #343a40;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#send-btn {
    border-radius: 12px;
}

/* Spezifische Stile für Bot-Nachrichten-Inhalte */
.bot-message h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.bot-message a {
    color: #58a6ff;
    text-decoration: none;
}
.bot-message a:hover {
    text-decoration: underline;
}

.bot-message ul {
    padding-left: 20px;
}

.bot-message li {
    margin-bottom: 8px;
}

.entity-list .badge {
    margin: 3px;
    padding: 8px 12px;
    font-size: 0.9rem;
}