/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
}

/* Main Chat Container */
.chat-container {
    width: 400px;
    max-width: 95%;
    height: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.chat-container header {
    background: linear-gradient(135deg, #7a00ff, #c14bff);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.chat-container header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Chat Box */
.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f6fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar Styling */
.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #c14bff;
    border-radius: 10px;
}

/* Message Common Style */
.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

/* User Message */
.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #7a00ff, #c14bff);
    color: #fff;
    border-bottom-right-radius: 5px;
}

/* Bot Message */
.bot-message {
    align-self: flex-start;
    background: #e4e6eb;
    color: #333;
    border-bottom-left-radius: 5px;
}

/* Input Area */
.input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.input-area input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.input-area input:focus {
    border-color: #7a00ff;
    box-shadow: 0 0 0 2px rgba(122, 0, 255, 0.2);
}

.input-area button {
    margin-left: 10px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #7a00ff, #c14bff);
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 0, 255, 0.3);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
}