/* Custom gradient for hero section */
.hero-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Custom file upload styling */
.file-upload-area {
    transition: border-color 0.15s ease-in-out;
}

.file-upload-area:hover {
    border-color: #3b82f6;
}

/* Loading state for form submission */
.form-loading {
    position: relative;
    overflow: hidden;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Error state styling */
.error-state {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-gradient {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-gradient p {
        font-size: 1.125rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: #1d4ed8;
    }
    
    .bg-primary-600 {
        background-color: #1d4ed8 !important;
    }
    
    .text-primary-600 {
        color: #1d4ed8 !important;
    }
}

/* 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;
    }
}

/* Print styles */
@media print {
    .sticky {
        position: static;
    }
    
    .hero-gradient {
        background: #1d4ed8;
        color: white;
    }
    
    .shadow-lg,
    .shadow-sm {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
