/* BrontoFarm Custom Styles */

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

/* Custom selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: white;
}

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

/* Dropdown animation enhancement */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* Form input autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1E293B inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* HTMX loading indicator */
.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-request button[type="submit"] {
    cursor: wait;
}

/* Prose styles for legal pages */
.prose h2 {
    margin-top: 2rem;
}

.prose h3 {
    margin-top: 1.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
}

/* Code blocks */
code {
    background-color: rgba(30, 41, 59, 0.8);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.75rem 1rem;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
}

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

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