/* Reset and base styles */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Raleway', Arial, sans-serif;
    background-color: #fff;
    color: #1b2425;
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    background-color: #f0f0f0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.header {
    background-color: #007e80;
    grid-column: 1 / span 3;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 20px;
    padding-left: 20px;
    display: flex;
    height: 55px;
    align-items: center;
    justify-content: space-between;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Abstand zwischen Text und Bild */
    margin-right: 50px;
}

    .user-area img {
        width: 47px; /* oder 55px – Hauptsache fix */
        height: 47px;
        flex-shrink: 0; /* nicht zusammenschrumpfen! */
        border-radius: 50%;
        object-fit: cover;
    }

.title {
    margin-left: 10px;
    grid-row: 1;
    display: flex;
    align-items: center;
}

    .title h1 {
        font-weight: lighter;
        font-size: 1.6rem;
        outline: none;
    }

.sessionstate {
    margin-right: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.sessionstate-username {
    display: flex;
    align-items: center;
    color: white;
    font-weight: lighter;
}

.sessionstate-links {
    display: flex;
    flex-direction: row;
}

    .sessionstate-links a {
        margin-right: 10px;
        font-weight: normal;
        color: #ff6900;
    }



.content {
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 13px;
    padding-right: 10px;
    overflow: hidden;
}

.dialog-section {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    transform: scaleX(-1);
}

.message-content {
    font-size: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: left;
    color: #1b2425;
    margin-left: 10px;
    padding: 10px;
    background-color: #e5f2f2;
    /* Hintergrundfarbe für Bot-Nachrichten */
    border-radius: 10px;
    width: fit-content;
    height: auto;
    max-width: 80%;
    white-space: pre-wrap; /* Sorgt dafür, dass der Inhalt mehrzeilig ist und Zeilenumbrüche respektiert werden */
}

.message-text {
    white-space: pre-wrap;
    grid-column: 2 / span 2;
}

.user-message {
    flex-direction: row-reverse;
    text-align: right;
}

    .user-message .message-content {
        margin-left: 0;
        margin-right: 10px;
        background-color: #fff2e6;
    }

.bot-message-improve-icon {
    grid-row: 2;
    grid-column: 2;
    height: 20px;
    align-self: end;
    justify-self: end;
    cursor: pointer;
}

    .bot-message-improve-icon:hover {
        transform: scale(1.2);
        transition: all 0.15s ease-in-out;
    }

.bot-message-improvement-area {
    grid-row: 3;
    margin-top: 10px;
    grid-column: 1 / span 2;
    width: 100%;
}

.bot-message-improvement-input {
    resize: vertical;
    width: 100%;
    white-space: normal;
    height: auto;
    overflow-wrap: break-word;
}

.bot-message-improvement-status {
    margin-top: 10px;
    grid-row: 3;
    grid-column: 1 / span 2;
    width: 100%;
}

    .bot-message-improvement-status label {
        color: #ff6900;
    }

.bot-message-improve-okcancel {
    height: 20px;
    align-self: end;
    justify-self: end;
    cursor: pointer;
    padding-left: 5px;
}

    .bot-message-improve-okcancel:hover {
        transform: scale(1.2);
        transition: all 0.15s ease-in-out;
    }

.improvement-abort-button {
    background-color: red;
    border-color: red;
    border-radius: 100px;
}

.error-details-icon {
    grid-row: 2;
    grid-column: 1 / span 2;
    height: 16px;
    margin-left: 5px;
    margin-top: 5px;
    align-self: start;
    justify-self: start;
    cursor: pointer;
}

    .error-details-icon:hover {
        transform: scale(1.2);
        transition: all 0.15s ease-in-out;
    }

.error-details-message {
    grid-row: 3;
    grid-column: 1 / span 2;
    margin-left: 5px;
    margin-top: 5px;
    width: 100%;
    color: red;
}

.bot-message-source-area {
    grid-row: 3;
    margin-top: 10px;
    grid-column: 1 / span 2;
    width: 100%;
    display: flex;
    justify-content: end;
    flex-direction: row;
}

.bot-message-source-icon {
    height: 20px;
    align-self: end;
    justify-self: end;
    cursor: pointer;
}
    .bot-message-source-icon:hover {
        transform: scale(1.2);
        transition: all 0.15s ease-in-out;
    }


.chat-image-container {
    grid-row: 1 / span 2;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .chat-image-container label {
        margin-top: 5px; /* optional, um Abstand zwischen Bild und Label zu steuern */
        font-size: 10px;
    }

.chat-image {
    display: block;
    border-radius: 5px;
    max-width: 100px;
    max-height: auto;
    margin-right: 10px;
    cursor: pointer;
}

.prediction {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.prediction-button {
    font-size: 12px;
    background-color: #007e80;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

    .prediction-button:hover {
        background-color: #005f60;
    }

.user-input {
    display: flex;
    gap: 10px;
}

    .user-input input {
        flex-grow: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 10px;
        background-color: #7c7d7d;
        color: #f0f0f0;
        outline: none;
    }

        .user-input input:disabled {
            cursor: not-allowed;
        }

        .user-input input::placeholder {
            color: #f0f0f0;
        }

    .user-input button {
        background-color: transparent;
        color: #fff;
        margin-right: 10px;
        border: none;
        padding: 0;
        border-radius: 10px;
        cursor: pointer;
    }

        .user-input button:disabled {
            background-color: transparent;
            cursor: not-allowed;
        }

        .user-input button:hover {
            background-color: #005f60;
        }

.sidebar {
    grid-column: 2 / 3;
    background-color: #f0f0f0;
    padding: 20px;
    overflow-x: hidden;
}

.sidebar-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    position: relative;
}

.sidebar-top {
    font-size: 12px;
}

    .sidebar-top a {
        color: #ff6900;
    }

.sidebar-middle {
    overflow-y: auto;
}

.sidebar-lottie-area {
    position: relative;
    height: 200px; /* Adjust height as needed */
    overflow: hidden;
}

.sidebar-content p,
.sidebar-content a {
    text-decoration: none;
}

    .sidebar-content a:hover {
        text-decoration: underline;
    }

.topics h3 {
    margin-bottom: 5px;
    color: #007e80;
}

.cost-info p {
    margin-bottom: 15px;
    color: #7c7d7d;
    font-size: 14px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.slider {
    flex-grow: 1;
}

.topics {
    margin-top: 20px;
}

.topic-list {
    list-style: none;
    padding-left: 0;
}

    .topic-list li {
        margin-bottom: 10px;
    }

.active-topic {
    color: #ff6900;
    font-weight: bold;
    font-size: 1.4em;
}

.inactive-topic {
    color: #7c7d7d;
    font-size: 1em;
}

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(27, 36, 37, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-popup-content img {
    max-width: 90vw;
    max-height: 90vh;
}

/* Scrollbar Styling */
.dialog-section::-webkit-scrollbar {
    width: 8px;
}

.dialog-section::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.context-generation {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: max-content max-content max-content max-content;
    max-width: 70%;
    gap: 5px;
    margin: 5px;
    background-color: transparent;
}

    .context-generation label {
        color: #1b2425;
        font-size: 10px;
        margin-bottom: 3px;
        margin-right: 3px;
        white-space: pre-wrap; /* Ermöglicht Zeilenumbrüche */
    }

.loading-container {
    width: 50px;
    height: 50px;
    grid-row: 1;
    grid-column: 1;
}

.context-generation-intent1 {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    justify-content: start;
    align-items: center;
}

.context-generation-intent2 {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: start;
    align-items: center;
}

.context-generation-intent3 {
    grid-row: 3;
    grid-column: 2;
    display: flex;
    justify-content: start;
    align-items: center;
}

.context-generation-status {
    grid-row: 4;
    grid-column: 1 / 3;
    display: flex;
    justify-content: end;
    margin-bottom: 10px;
}

.context-generation-intent1-queries {
    grid-row: 1;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    justify-content: center;
}

.context-generation-intent2-queries {
    grid-row: 2;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    justify-content: center;
}

.context-generation-intent3-queries {
    grid-row: 3;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    justify-content: center;
}

.context-generation-intent1-status {
    grid-row: 1;
    grid-column: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.context-generation-intent2-status {
    grid-row: 2;
    grid-column: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.context-generation-intent3-status {
    grid-row: 3;
    grid-column: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lottieContainer {
    position: absolute;
    width: 150px;
    height: 150px;
    transition: top 0.5s ease-out, left 0.5s ease-out;
}

.landing-container {
    display: flex; /* Flexbox aktivieren */
    padding-left: 5%;
    padding-top: 6%;
    flex-direction: column;
    justify-content: start; /* Horizontal zentrieren */
    align-items: start; /* Vertikal zentrieren */
    height: 100%; /* Höhe auf 100% setzen, um den gesamten Container zu füllen */
    font-size: 26px;
}

    .landing-container label {
        width: 90%;
        margin-bottom: 10px;
    }

/* Additional styles as needed */
