@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary: #006633;
    --secondary: #F0F0F0;
    --accent: #FFCC00;
    --dark: #003319;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

/* MAIN LAYOUT */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* CHAT AREA */
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f5f7fa;
}

/* INPUT STICKY BOTTOM */
.chat-input {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    border-top: 1px solid #e5e7eb; /* Tailwind gray-200 */
    padding: 1rem;
}

/* CHAT BUBBLES */
.chat-bubble {
    border-radius: 1.5rem;
    position: relative;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-bubble {
    background-color: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.bot-bubble {
    background-color: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

/* ANIMATIONS */
.bounce-in {
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    margin-left: 3px;
    animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* BUTTON EFFECTS */
.quick-btn {
    transition: all 0.2s ease;
}

.quick-btn:hover {
    transform: translateY(-2px);
}

/* INFO CARD RIGHT BORDER ACCENT */
.info-card {
    border-right: 4px solid var(--accent);
}

/* Example Questions Hover */
.example-question {
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-question:hover {
    background-color: #f0f0f0;
    transform: translateX(-5px);
}


@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.modal-content { position: relative; background: white; padding: 2rem; border-radius: 1rem; animation: popIn 0.3s ease; z-index: 51; }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hidden { display: none; }