body,
html {
    height: 100%;
    margin: 0;
    background-color: #e8e8eb;
    color: rgb(29, 28, 28);
}

.main-container {
    display: flex;
    height: 100vh;
}

.chat-header {
    background-color: #e8e8eb;
    font-size: smaller;
    color: grey;
}

.chat-header h5 {
    background-color: #e8e8eb;
    font-size: normal;
    color: grey;
}

/* Sidebar - wie ChatGPT */
.sidebar {
    width: 260px;
    background-color: #202123;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Chat-Bereich */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#chat-window {
    flex-grow: 1;
    overflow-y: auto;
    padding: 50px 10% 150px 10%;
    /* Viel Platz an den Seiten */
}

.parent-container {
    display: flex;
    justify-content: center;
    /* Horizontal zentrieren */
    align-items: center;
    /* Vertikal zentrieren */
    min-height: 50vh;
    /* Wichtig: Container muss so hoch wie der Bildschirm sein */
    font-size: x-large;
}

.message-welcome {
    margin-left: auto;
    /* Schiebt das Element von links in die Mitte */
    margin-right: auto;
    /* Schiebt das Element von rechts in die Mitte */
    font-size: larger;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message-row {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.user-row {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    background-color: #8e97a1;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.bot-row {
    /* background-color: #444654;  */
}

.message-content {
    max-width: 800px;
    margin: auto;
    display: flex;
    gap: 20px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Fixiertes Eingabefeld unten */
.input-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* background: linear-gradient(transparent, #343541 50%); */
    padding: 30px 10%;
}

.input-box {
    width: 95%;
    max-width: 800px;
    margin: auto;
    background-color: #d5d5dd;
    color: gray;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#user-input {
    background: transparent;
    border: none;
    color: gray;
    resize: none;
}

#user-input:focus {
    background: transparent;
    color: black;
    box-shadow: none;
    border: none;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border-width: 0.2em;

    display: block;
    /* Verhält sich stabiler als inline-block */
    overflow: visible;
    /* Verhindert Scrollbalken direkt am Element */
    flex-shrink: 0;
    /* Verhindert Verformung */
}