/* Custom Styles for Mistura Perigosa */

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom color classes */
.bg-cyan-50 {
    background-color: #e0f7fa;
}

.bg-red-100 {
    background-color: #fef2f2;
}

.bg-green-100 {
    background-color: #bbf7d0;
}

.bg-yellow-100 {
    background-color: #fef08a;
}

.text-red-700 {
    color: #b91c1c;
}

.text-green-700 {
    color: #15803d;
}

.text-yellow-700 {
    color: #a16207;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-green-500 {
    border-color: #22c55e;
}

.border-yellow-500 {
    border-color: #eab308;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced dropdown styles */
.dropdown-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #dbeafe;
    transform: translateX(2px);
}

.dropdown-option:active {
    transform: translateX(0px);
    background-color: #bfdbfe;
}

/* Selected option styling */
.dropdown-option.bg-blue-100 {
    background-color: #dbeafe;
    border-left: 3px solid #2563eb;
}

/* Input enhancement animations */
.border-green-500 {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.bg-green-50 {
    background-color: #f0fdf4 !important;
}

.border-blue-500 {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

/* Result card animations */
.result-safe {
    background-color: #bbf7d0;
    border-left-color: #22c55e;
    animation: slideInFromBottom 0.5s ease-out;
}

.result-warning {
    background-color: #fef08a;
    border-left-color: #eab308;
    animation: slideInFromBottom 0.5s ease-out;
}

.result-danger {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Clear button specific styling */
#clearMixture {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* FAQ animations */
.faq-content {
    transition: all 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile menu animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Cookie consent animation */
.cookie-consent-show {
    transform: translateY(0) !important;
}

/* Duplicate warning animation */
#duplicateWarning {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus styles */
input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Dropdown container enhancement */
#dropdown1, #dropdown2 {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-height: 250px;
    overflow-y: auto;
}

/* Custom scrollbar for dropdowns */
#dropdown1::-webkit-scrollbar, #dropdown2::-webkit-scrollbar {
    width: 6px;
}

#dropdown1::-webkit-scrollbar-track, #dropdown2::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#dropdown1::-webkit-scrollbar-thumb, #dropdown2::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#dropdown1::-webkit-scrollbar-thumb:hover, #dropdown2::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus, input:focus, a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-morphism {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
    .dropdown-option {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    #clearMixture {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    
    .grid.md\:grid-cols-2 {
        gap: 16px;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}