/* Allgemeine Stile */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    margin: 0;
}

/* Chat-Container */
.chat-container {
    width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.6s ease-in-out;
}

/* Chatbox */
.chat-box {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Nachrichten */
.message {
    padding: 10px 15px;
    border-radius: 20px;
    margin: 8px 0;
    max-width: 75%;
    font-size: 14px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-in-out;
}

.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.bot {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Eingabebereich */
.input-area {
    display: flex;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #ddd;
}

.input-area input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    background: #f4f4f4;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.input-area input:focus {
    background: #e0e0e0;
}

.input-area button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 18px;
    margin-left: 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.input-area button:hover {
    background: #0056b3;
}

/* Vorschläge */
.suggestions {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    white-space: nowrap;
    background: #ffffff;
    border-top: 1px solid #ddd;
    scrollbar-width: auto; /* Zeige Scrollbar */
    max-height: 50px;
}

.suggestions::-webkit-scrollbar {
    height: 6px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.suggestions button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease-in-out;
    flex-shrink: 0;
}

.suggestions button:hover {
    background: #0056b3;
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
