* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f7f6; display: flex; justify-content: center; align-items: center; height: 100vh; }

.chat-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    max-height: 800px;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 481px) {
    .chat-container { height: 90vh; border-radius: 15px; overflow: hidden; }
}

.chat-header {
    background-color: #06b6d4;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-info h2 { font-size: 1.2rem; }
.header-info p { font-size: 0.8rem; opacity: 0.8; }
.close-chat { color: white; text-decoration: none; font-size: 1.8rem; line-height: 1; }

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9f9f9;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.bot-message {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.user-message {
    background-color: #06b6d4;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.loading { font-style: italic; color: #888; font-size: 0.9rem; align-self: flex-start; }

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
#user-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
}
#user-input:focus { border-color: #06b6d4; }
#send-btn {
    background-color: #06b6d4;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#send-btn svg { width: 20px; height: 20px; }