/* Modern gradient styles */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dark body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Sidebar gradient */
#sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dark #sidebar {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header gradient */
header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark header {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat container gradient */
#chat-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
}

.dark #chat-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Input area gradient */
.bg-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .bg-white {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Message bubbles with gradients */
.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.assistant-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    color: #333;
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark .assistant-message {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    color: #e5e7eb;
}

/* Button gradients */
.gradient-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Input field gradient */
#message-input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.dark #message-input {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

#message-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Send button gradient */
#send-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#send-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#send-button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Welcome message gradient */
.welcome-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .welcome-card {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Suggestion cards gradient */
.suggestion-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.dark .suggestion-card {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .suggestion-card:hover {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.7) 100%);
}

/* Custom scrollbar with gradient */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a67d8 0%, #6b46c1 100%);
}

/* Animation improvements */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.message-animation {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Typing indicator with gradient */
.typing-indicator {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 15px 20px;
}

.dark .typing-indicator {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
}

/* Theme toggle gradient */
#theme-toggle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    transform: scale(1.1);
}

.dark #theme-toggle {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark #theme-toggle:hover {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.7) 100%);
}

/* Dark mode text and card adaptations */
.dark .text-gray-800 {
    color: #e5e7eb;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .text-gray-500 {
    color: #9ca3af;
}

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

.dark .text-gray-300 {
    color: #d1d5db;
}

.dark .text-gray-200 {
    color: #e5e7eb;
}

.dark .text-gray-100 {
    color: #f3f4f6;
}

/* Dark mode card backgrounds */
.dark .bg-gray-50 {
    background-color: rgba(31, 41, 55, 0.8);
}

.dark .bg-gray-100 {
    background-color: rgba(55, 65, 81, 0.8);
}

.dark .bg-gray-200 {
    background-color: rgba(75, 85, 99, 0.8);
}

.dark .hover\:bg-gray-50:hover {
    background-color: rgba(31, 41, 55, 0.9);
}

.dark .hover\:bg-gray-100:hover {
    background-color: rgba(55, 65, 81, 0.9);
}

.dark .hover\:bg-gray-800:hover {
    background-color: rgba(31, 41, 55, 0.9);
}

/* Dark mode borders */
.dark .border-gray-200 {
    border-color: rgba(75, 85, 99, 0.5);
}

.dark .border-gray-300 {
    border-color: rgba(107, 114, 128, 0.5);
}

.dark .border-gray-700 {
    border-color: rgba(55, 65, 81, 0.8);
}

.dark .border-gray-800 {
    border-color: rgba(31, 41, 55, 0.8);
}

/* Dark mode input field */
.dark #message-input {
    color: #e5e7eb;
}

.dark #message-input::placeholder {
    color: #9ca3af;
}

/* Dark mode suggestion cards */
.dark .suggestion-card {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark .suggestion-card:hover {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.7) 100%);
    border: 1px solid rgba(107, 114, 128, 0.4);
}

/* Dark mode welcome card */
.dark .welcome-card {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Dark mode sidebar items */
.dark .sidebar-item {
    color: #d1d5db;
}

.dark .sidebar-item:hover {
    background-color: rgba(55, 65, 81, 0.8);
    color: #e5e7eb;
}

/* Dark mode button text */
.dark .btn-text {
    color: #d1d5db;
}

.dark .btn-text:hover {
    color: #e5e7eb;
}

/* Dark mode header text */
.dark header h1 {
    color: #e5e7eb;
}

/* Dark mode sidebar text */
.dark #sidebar h1 {
    color: #e5e7eb;
}

.dark #sidebar span {
    color: #d1d5db;
}

/* Dark mode user account section */
.dark .user-account {
    color: #d1d5db;
}

/* Dark mode settings button */
.dark .settings-btn {
    color: #d1d5db;
}

.dark .settings-btn:hover {
    background-color: rgba(55, 65, 81, 0.8);
    color: #e5e7eb;
} 