/* Enhanced styles for the AI Chatbot */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* Light gray background */
}

/* Custom scrollbar styling */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.chat-history::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Message animations */
.message-animation {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator animation */
.typing-dot {
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button hover effects */
.suggested-question-btn {
    transition: all 0.2s ease-in-out;
}

.suggested-question-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.category-btn {
    transition: all 0.2s ease-in-out;
}

.category-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateX(4px);
}

/* Input field enhancements */
#user-input {
    max-height: 120px;
    min-height: 50px;
}

#user-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Send button enhancements */
#send-button {
    transition: all 0.2s ease-in-out;
}

#send-button:hover {
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

#send-button:active {
    transform: scale(0.95);
}

/* Status indicator */
.status-online {
    position: relative;
}

.status-online::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Category sections */
.category-section {
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
    margin-bottom: 20px;
}

.category-title {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Message bubbles enhancement */
.user-message {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.bot-message {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .w-80 {
        display: none;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
    
    #user-input {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.focus\:ring-blue-300:focus {
    --tw-ring-color: rgb(147 197 253);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme as requested */
}