/* Marvin AI Improved Readability Styles */
/* This stylesheet improves contrast and readability for the Marvin AI interface */

/* Override dark theme with light, readable theme */
.marvin-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Sidebar improvements */
.marvin-sidebar {
    background: white !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    border-right: 1px solid #dee2e6 !important;
}

.marvin-avatar {
    border-bottom: 1px solid #dee2e6 !important;
}

.marvin-avatar h2 {
    color: #212529 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.marvin-status {
    color: #10B981 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* Language selector */
.language-selector {
    border-bottom: 1px solid #dee2e6 !important;
}

.language-selector select {
    background: white !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.language-selector select:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Quick action buttons */
.quick-action-btn {
    background: #f8f9fa !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.quick-action-btn:hover {
    background: #e9ecef !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

.quick-action-icon {
    font-size: 1.25rem !important;
}

/* Chat area */
.chat-area {
    background: white !important;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2) !important;
    border-bottom: none !important;
}

.chat-header h1 {
    color: white !important;
    font-size: 1.75rem !important;
    font-weight: 600 !important;
}

/* Voice toggle button */
.voice-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.voice-toggle:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.voice-toggle.active {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
}

/* Chat messages area */
.chat-messages {
    background: #f8f9fa !important;
    padding: 2rem !important;
}

/* Message bubbles */
.message-bubble {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    padding: 1.25rem 1.5rem !important;
}

/* User messages */
.message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 500 !important;
}

/* Marvin messages */
.message.marvin .message-bubble {
    background: white !important;
    color: #212529 !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    font-weight: 400 !important;
}

/* Message metadata */
.message-meta {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Typing indicator */
.typing-dot {
    background: #667eea !important;
    width: 10px !important;
    height: 10px !important;
}

/* Quick reply buttons */
.quick-reply-btn {
    padding: 0.75rem 1.25rem !important;
    background: white !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea !important;
    transform: translateY(-2px) !important;
}

/* Chat input area */
.chat-input-container {
    background: white !important;
    border-top: 2px solid #dee2e6 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
}

.chat-input {
    background: #f8f9fa !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding: 1.25rem 1.5rem !important;
}

.chat-input:focus {
    background: white !important;
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.chat-input::placeholder {
    color: #6c757d !important;
    font-weight: 400 !important;
}

/* Send button */
.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3) !important;
    width: 55px !important;
    height: 55px !important;
    font-size: 1.25rem !important;
}

.send-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Suggestion panel */
.suggestion-panel {
    background: white !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}

.suggestion-panel h3 {
    color: #212529 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.suggestion-item {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    font-size: 1rem !important;
    padding: 0.75rem !important;
}

.suggestion-item:hover {
    background: #e9ecef !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

/* Mood indicator improvements */
.mood-indicator {
    background: white !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.mood-emoji {
    font-size: 1.5rem !important;
}

.mood-label {
    color: #212529 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    .message-bubble {
        font-size: 1.2rem !important;
        line-height: 1.7 !important;
    }
    
    .chat-input {
        font-size: 1.2rem !important;
    }
    
    .quick-action-btn {
        font-size: 1.1rem !important;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .message-bubble {
        font-size: 1rem !important;
    }
    
    .chat-input {
        font-size: 1rem !important;
    }
    
    .marvin-sidebar {
        width: 280px !important;
    }
}