:root {
    --bg-color: #fff5f5;
    --primary-color: #ff6b6b;
    --text-color: #4a4a4a;
    --card-bg: #ffffff;
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background: var(--card-bg);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px;
    border-radius: var(--border-radius);
    line-height: 1.4;
    white-space: pre-wrap;
}

.message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.message.bot {
    background: #f1f3f5;
    color: var(--text-color);
    align-self: flex-start;
}

.chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ffe3e3;
    background: #fff;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ffd8d8;
    padding: 12px;
    border-radius: var(--border-radius);
    outline: none;
    font-size: 1rem;
}

.chat-input-area button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    margin-left: 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
}