* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.chat-container {
    width: 100%;
    max-width: 550px;
    height: 600px;
    background-color: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.chat-header {
    background-color: #0f172a;
    padding: 1.2rem;
    border-bottom: 1px solid #334155;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
}

.chat-header h2 {
    font-size: 1.1rem;
    color: #f8fafc;
}

.status-indicator {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: currentColor;
    border-radius: 50%;
}

.chat-box {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.bot-message {
    background-color: #334155;
    color: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background-color: #2563eb;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #0f172a;
    border-top: 1px solid #334155;
}

#userInput {
    flex: 1;
    background-color: #1e293b;
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

#userInput:focus {
    border-color: #3b82f6;
}

#sendBtn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#sendBtn:hover {
    background-color: #1d4ed8;
}