/* * { box-sizing: border-box; } */
/* body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    height: 100vh;
} */

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50vh;
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 0 0.1em !important;
    overflow-x: hidden;
    overflow-y: scroll;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    margin-top: 15px;
    /* margin-bottom: 15px; */
}

.chat-message {
    margin-bottom: 12px;
}
.chat-message.user {
    text-align: right;
}
.chat-message.assistant {
    text-align: left;
}
.chat-message.assistant p {
    white-space: pre-wrap;
}
.chat-message p {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px;
    background-color: #333;
    color:#b6b6b6;
    max-width: 80%;
}
.chat-message.user p {
    background-color: #007bff;
    text-align: left;
    color:white;
}

.chat-input {
    display: flex;
    gap: 10px;
}
.chat-input input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    background-color: #222;
    color: #f1f1f1;
}
    .chat-input input[type="text"]::placeholder {
        color: #ccc !important;
    }
    .chat-input input[type="text"]:focus {
        outline-width: 0 !important;
    }
.chat-input button {
    padding: 12px 20px;
    background-color: #00b894;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
.chat-input button:disabled {
    opacity: 0.5;
}