/* Modern Chatbox Container */
/* Einbinden der Montserrat-Schriftart */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* Modern Chatbox Container */
.chat-container {
    max-width: 700px;
    margin: 20px auto;
    background-color: #f3f4f6;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

/* Chat Header */
.chat-header {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
}

/* Nachrichten-Container */
.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    max-height: 400px;  /* Höchstgrenze für das Chat-Fenster */
}

/* Benutzer-Nachrichten (user) */
.message.user {
    background-color: #0073aa;
    color: white;
    text-align: right;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    margin-left: 30%;
    max-width: 70%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.3s ease-out;
}

/* KI-Nachrichten (assistant) */
.message.assistant {
    background-color: #f1f1f1;
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    margin-right: 30%;
    max-width: 70%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.3s ease-out;
}

/* Formular für Benutzerfragen */
.chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    background-color: #f3f4f6;
    padding: 10px;
}

.chat-form input[type="text"] {
    width: 85%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-form input[type="submit"] {
    width: 12%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-form input[type="submit"]:hover {
    background-color: #005a87;
}

/* Button zum Chat-Reset */
.reset-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff4b5c;
    color: white;
    border: none;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.reset-btn:hover {
    background-color: #d63c4a;
}

/* Scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

/* Animation for new messages */
@keyframes slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}