/* Community Dasher - Custom Styles */
/* Most styling is handled by Tailwind CSS via CDN */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles for accessibility */
*:focus {
    outline: 2px solid #4338CA;
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Keep focus visible for keyboard users */
*:focus-visible {
    outline: 2px solid #4338CA;
    outline-offset: 2px;
}

/* Form input improvements */
input[type="date"],
input[type="time"] {
    min-height: 42px;
}

/* Better select appearance on mobile */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Improve tap targets on mobile */
@media (max-width: 640px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    nav a {
        padding: 0.75rem 0;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Animation for success message */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-animate {
    animation: slideDown 0.3s ease-out;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
