/* Globale Einstellungen */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fb;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* Hauptcontainer für Chat und Profil */
#main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 80vw;
    max-width: 1200px;
    margin-top: 20px;
}

/* Chatcontainer */
#chat-container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 65%;
    max-width: 700px;
    overflow: hidden;
}

#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f1f4f8;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    color: #4a4a4a;
    font-size: 14px;
}

#chat-box .assistant-message {
    background-color: #e0e7ff;
    border-radius: 15px;
    padding: 12px 18px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

#chat-box .user-message {
    background-color: #c8dafc;
    border-radius: 15px;
    padding: 12px 18px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 15px;
    color: #333;
    text-align: right;
    align-self: flex-end;
    margin-bottom: 10px;
}

/* Nachrichteneingabefeld */
#message-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background-color: #eef2f7;
    color: #333;
    outline: none;
    transition: background-color 0.3s;
    font-size: 14px;
}

#chat-input::placeholder {
    color: #aaa;
}

#chat-input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#send-btn {
    width: 80px;
    padding: 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#send-btn:hover {
    background-color: #4cae4c;
}

/* Benutzerprofil-Bereich */
#profile-container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 30%;
    max-width: 350px;
    margin-left: 20px;
}

#profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#profile-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    margin: 0;
}

#info-btn {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#info-btn:hover {
    color: #007bff;
}

#big-five-chart {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#profile-description {
    font-size: 15px;
    color: #333;
}

#reset-session-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset-session-btn:hover {
    background-color: #c82333;
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

#close-info-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#close-info-btn:hover,
#close-info-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Media Queries für mobile Geräte */
@media screen and (max-width: 768px) {
    #main-container {
        flex-direction: column;
        width: 100vw;
    }

    #chat-container {
        width: 100%;
        max-width: 100%;
    }

    #profile-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}
