.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.chat-messages {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 10px;
}

.ai-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 5px 0;
    background-color: var(--border-color);
    position: relative;
}

.ai-message-content::after {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-right: 10px solid var(--border-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.user-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 5px 0;
    background-color: var(--border-color);
    position: relative;
}

.user-message-content::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--border-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}