** { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Arial', sans-serif;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.chat-container {
    width: 100%;
    max-width: 600px;
    height: 90vh;
    background: #16213e;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background: linear-gradient(#0f3460, #533483);
    padding: 20px;
    text-align: center;
    color: #e9e5e5;
}
.chat-header h1 {
    font-size: 1.4em;
    margin-bottom: 5px;
}
.chat-header p {
    opacity: 0.7;
    font-size: 0.85em;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message {
    display: flex;
    max-width: 80%;
}
.message.user {
    align-self: flex-end;
}
.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95em;
}
.bot .message-content {
    background: #222a4a;
    color: #e9e5e5;
    border-bottom-left-radius: 4px;
}
.user .message-content {
    background: linear-gradient(#0f3460, #533483);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-input {
    display: flex;
    padding: 15px;
    background: #0d1520;
    gap: 10px;
}
.chat-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #333;
    border-radius: 24px;
    background: #1b243a;
    color: #e9e5e5;
    font-size: 1em;
    outline: none;
}
.chat-input input:focus {
    border-color: #533483;
}
.chat-input button {
    padding: 12px 24px;
    background: linear-gradient(#0f3460, #533483);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1em;
    transition: opacity 0.2s;
}
.chat-input button:hover {
    opacity: 0.8;
}