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

body {
    width: 100%;
    height: 100vh;
    background: #0f172a;
    font-family: Pretendard, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.chat-container {
    width: 100%;
    max-width: 420px;
    height: 90vh;
    background: #111827;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.chat-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.chat-header p {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-break: keep-all;
}

.message.user {
    align-self: flex-end;
    background: #2563eb;
}

.message.bot {
    align-self: flex-start;
    background: #1e293b;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 10px;
    background: #111827;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px;
    border-radius: 14px;
    background: #1e293b;
    color: white;
    font-size: 15px;
}

.chat-input::placeholder {
    color: #94a3b8;
}

.send-button {
    border: none;
    padding: 0 20px;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.send-button:hover {
    background: #1d4ed8;
}

.typing {
    opacity: 0.7;
    font-size: 14px;
}