/* Custom styles for enhanced UX */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.warning-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.risk-meter {
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #dc2626 100%);
    height: 8px;
    border-radius: 4px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.scan-line {
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.5), transparent);
    animation: scan 2s ease-in-out;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Accessibility improvements */
.focus\:ring-red-500:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .flex-wrap {
        flex-direction: column;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-red-600 {
        background-color: #b91c1c;
    }
    
    .text-red-600 {
        color: #991b1b;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pulse-animation,
    .scan-line {
        animation: none;
    }
}