.chat-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    /* height: calc(100vh - 160px); */
}

/* Sidebar Styles */
.chat-sidebar {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.suggested-topics h3,
.birth-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.topic-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: var(--background);
    border: none;
    border-radius: 5px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.topic-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 5px;
}

.update-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--highlight);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.update-btn:hover {
    background: var(--primary);
}

/* Chat Main Area */
.chat-main {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--secondary);
}

.message-content {
    background: var(--background);
    padding: 1rem;
    border-radius: 10px;
    position: relative;
}

.ai-message .message-content {
    background: var(--accent);
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--background);
}

#chatForm {
    display: flex;
    gap: 1rem;
}

#messageInput {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid var(--primary);
    border-radius: 25px;
    outline: none;
}

#chatForm button {
    width: 45px;
    height: 45px;
    background: var(--highlight);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

#chatForm button:hover {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        height: auto;
    }

    .chat-main {
        height: 70vh;
    }
}
