* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.chat-wrapper {
    width: 700px;
    height: 700px;
    background-color: #1c1c1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.profile-pic {
    width: 197.5px;
    height: 76.83px;
    border-radius: 50%;
    margin-right: 15px;
}

.header-info h1 {
    font-size: 1.2em;
    font-weight: 600;
}

.status {
    font-size: 0.9em;
    color: #aaa;
}

.author {
    font-size: 0.8em;
    color: #666;
}

#chat-container {
    padding: 20px;
    height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: inline-block;
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    position: relative;
}

.message.user {
    align-self: flex-end;
    background-color: #333;
    color: #fff;
    border-radius: 15px 15px 0 15px;
}

.message.ai {
    align-self: flex-start;
    background-color: #555;
    color: #fff;
    border-radius: 15px 15px 15px 0;
}

.message p {
    font-size: 0.9em;
}

.input-area {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #333;
    background-color: #1c1c1e;
    position: absolute;
    bottom: 50px;
}

#user-input {
    flex: 1;
    background-color: #333;
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin-right: 10px;
    resize: none;
    height: 40px;
    transition: all ease-in-out 0.2s;
    width: 550px;
}

#user-input::placeholder {
    color: #888;
}

#send-button {
    background-color: #4a4a4a;
    color: #f0f0f0;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #666;
}

pre {
    background-color: #f0f0f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 1.1em;
    line-height: 1.5;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #2d2d2d;
}

#chat-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 10px;
}

.message.user {
    text-align: left;
}

.message.assistant {
    text-align: left;
}
