/* Custom styles for RoadTrip Wizard */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
}

/* Enhanced card shadows */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar for better UX */
.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus states for better accessibility */
input:focus, select:focus, button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Smooth transitions */
button, input, select {
    transition: all 0.2s ease-in-out;
}

/* Map container enhancements */
.map-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
}

/* Enhanced button styles */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Card hover effects */
.bg-white:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Weather alert colors */
.weather-warning {
    background: linear-gradient(45deg, #fef3c7, #fed7aa);
    border-left: 4px solid #f59e0b;
}

.weather-danger {
    background: linear-gradient(45deg, #fee2e2, #fecaca);
    border-left: 4px solid #ef4444;
}

/* Stop type colors */
.stop-food {
    border-left: 4px solid #f97316;
}

.stop-sleep {
    border-left: 4px solid #8b5cf6;
}

.stop-nature {
    border-left: 4px solid #16a34a;
}

.stop-attraction {
    border-left: 4px solid #2563eb;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .p-6 {
        padding: 1rem;
    }
    
    .space-x-6 > * + * {
        margin-left: 1rem;
    }
    
    .gap-6 {
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .bg-white {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Dark mode support (if needed later) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button, input, select {
        border-width: 2px;
    }
    
    .bg-primary {
        background-color: #1e40af;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}