/* Essential custom styles - most styling now handled by Tailwind */
html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Accordion Animation Styles */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}

.accordion-content.closed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0s ease-in, opacity 0s ease-in;
}

.accordion-content.open {
    /* max-height: 200px; Adjust based on content */
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Smooth height transition for accordion */
.accordion-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

/* Rotate animation for chevron */
.chevron-rotate {
    transition: transform 0.3s ease-out;
}

.chevron-rotate.rotated {
    transform: rotate(180deg);
    transition: transform 0.3s ease-out;
}

.chevron-rotate:not(.rotated) {
    transition: transform 0s ease-in;
}

/* Blazor-specific validation styles */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.invalid {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor error boundary - keep minimal styling */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Hide scrollbar arrows/buttons - Force hide in all WebKit browsers */
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:start:decrement,
*::-webkit-scrollbar-button:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
}

*::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

.scrollbar-hidden {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

/* Prevent border blink on button click release - hide focus outline for mouse clicks, keep for keyboard */
button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}
