
/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Message animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: slideIn 0.3s ease-out;
}

/* Typing indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Gradient background for header */
.gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Message bubble styles */
.message-bubble {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    backdrop-filter: blur(10px);
}

/* Hover effects for interactive elements */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Pulse animation for connection indicator */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Responsive adjustments */
@media (max-width: 640px) {
    #sidebar {
        width: 100%;
    }
}

/* Ensure colors are properly applied */
.bg-gray-900 {
    background-color: #111827 !important;
}

.bg-gray-800 {
    background-color: #1f2937 !important;
}

.bg-gray-700 {
    background-color: #374151 !important;
}

.bg-blue-600 {
    background-color: #2563eb !important;
}

.bg-blue-500 {
    background-color: #3b82f6 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.border-gray-700 {
    border-color: #374151 !important;
}

.border-gray-800 {
    border-color: #1f2937 !important;
}

/* Force dark theme */
body {
    background-color: #111827 !important;
    color: #ffffff !important;
}

/* Message bubbles */
.bg-gray-700.text-gray-100 {
    background-color: #374151 !important;
    color: #f3f4f6 !important;
}

/* Sidebar background */
#sidebar {
    background-color: #1f2937 !important;
}

/* Header background */
header {
    background-color: #1f2937 !important;
}

/* Input area */
.bg-gray-800.border-t {
    background-color: #1f2937 !important;
    border-top-color: #374151 !important;
}

/* Welcome message text */
.text-gray-400 {
    color: #9ca3af !important;
}
/* Custom input focus styles */
input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark mode transitions */
body {
    transition: background-color 0.3s ease;
}

/* Loading spinner for AI responses */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #4b5563;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}