/* General Body Styling */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    transition: margin-top 0.3s ease-in-out;
}

/* Scrollbar Styling for Chat Container */
#chat-container::-webkit-scrollbar {
    width: 6px;
}

#chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chat-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#chat-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- NEW: Textarea Styling --- */
#user-input {
    min-height: 50px; /* Minimum height of the textarea */
    max-height: 200px; /* Maximum height before scrollbar appears */
    overflow-y: auto; /* Show scrollbar when needed */
}

/* --- NEW: Scrollbar for Textarea --- */
#user-input::-webkit-scrollbar {
    width: 5px;
}
#user-input::-webkit-scrollbar-track {
    background: transparent;
}
#user-input::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}


/* Avatar Styling */
.ai-message .avatar {
    background-color: #10B981; /* Tailwind's Emerald 500 */
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-message .avatar {
    background-color: #3B82F6; /* Blue 500 */
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Typing Indicator Styling */
.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 1rem;
    background-color: #333;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: #333; }
}

/* Improved Typography */
#chat-container .text-gray-800, #chat-container .text-white {
    font-size: 1.05rem; /* A little larger than the default */
    line-height: 1.6; /* More space between lines */
}

/* Modal Styling */
#about-modal, #feedback-modal {
    display: none; /* Hidden by default */
}

#about-modal.flex, #feedback-modal.flex {
    display: flex; /* Shown when class is added */
}
