/* Custom styles that complement Tailwind */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll for all anchor links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ee;
}
::-webkit-scrollbar-thumb {
    background: #f3bbab;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d45232;
}

/* Selection color */
::selection {
    background: #f9dcd3;
    color: #3e100b;
}

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

/* Focus visible */
:focus-visible {
    outline: 2px solid #d45232;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #fdf8ee 25%, #faefda 50%, #fdf8ee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
img[src] {
    animation: none;
    background: none;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(340deg);
    cursor: pointer;
}
