/* Base */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #333;
}

/* Header */
header {
    text-align: center;
    background: linear-gradient(135deg, #4caf50, #3a9e44);
    color: white;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header .tagline {
    font-size: 14px;
    font-style: italic;
    opacity: 0.85;
    margin-top: 4px;
    letter-spacing: 1.2px;
}

/* Chat container */
#chat {
    max-width: 700px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Messages area */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f5f5f5;
}

/* Message bubbles */
.message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user {
    margin-left: auto;
    background-color: #3b82f6;
    color: #fff;
    border-bottom-right-radius: 4px;
    width: fit-content;
}

.bot {
    margin-right: auto;
    background-color: #22c55e;
    color: #fff;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

/* Input area */
.contain {
    display: flex;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    gap: 10px;
}

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

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

button {
    padding: 14px 20px;
    font-size: 15px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2563eb;
}

/* Typing indicator */
.typing-indicator {
    font-style: italic;
    color: #888;
    padding: 4px;
    font-size: 14px;
    
}
.hidden{
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 12px;
        font-size: 14px;
    }

    .message {
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }
}