body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.chat-container {
    width: 900px;
    height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* Chat area */
#chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}
#chat-popup {
    align-self: center;
    background: #eef7ff;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 40px;
    color: #333;
    font-size: 15px;
}


.user {
    align-self: flex-end;
    background: #d1e7ff;
    color: #000;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 18px 18px 4px 18px;
    max-width: 75%;
    line-height: 1.4;
}

.bot {
    align-self: flex-start;
    background: #e7fbe7;
    color: #000;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 18px 18px 18px 4px;
    max-width: 75%;
    line-height: 1.4;
}
/* Input pinned at bottom */
.input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}

input {
    flex: 1;
    padding: 10px;
}

button {
    padding: 10px 15px;
    margin-left: 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}

.new-chat-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #28a745;
    color: white;
    cursor: pointer;
}

.new-chat-btn:hover {
    background: #218838;
}
.typing {
    font-style: italic;
    opacity: 0.7;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
textarea {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

