:root {
    --primary: #4d76fd;
    --dark: #1a1a2e;
    --light: #f8f9fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    text-align: center;
}
.chat-header h1 {
    font-size: 22px;
}

.chat-header p {
    font-size: 16px;
}

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

.message {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #e9ecef;
    color: var(--dark);
    border-bottom-left-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
}

#send-button {
    margin-left: 10px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#send-button:hover {
    background: #3a5bd9;
}

.typing-indicator {
    display: none;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 18px;
    align-self: flex-start;
    color: #666;
    font-style: italic;
}

@media (max-width: 600px) {
    .chat-container {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .message {
        max-width: 85%;
    }
}
.message {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#clear-btn {
    margin-left: 10px;
    padding: 8px 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#clear-btn:hover {
    background: #ff5252;
}

.quick-questions button {
    margin-left: 10px;
    padding: 10px 15px;
    background: #6f7c28;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}
.quick-questions {
    margin-bottom: 20px;
}