/* Base Design System overrides for the Skraseting Style */
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    display: inline-block;
    line-height: 1;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../images/background.png');
    background-size: cover;
    background-position: center 30%;
    height: 480px;
}

.nav-item-active {
    color: black;
    border-bottom: 3px solid #74b62d;
    padding-bottom: 2px;
}

/* Validation styles (could be mapped to error colors) */
.input-validation-error {
    border-color: theme('colors.error');
    background-color: theme('colors.error-container');
}

.validation-summary-errors {
    color: theme('colors.error');
    background-color: theme('colors.error-container');
    padding: 1rem;
    border-radius: theme('borderRadius.md');
    margin-bottom: 1rem;
}

/* Suppress native select arrow completely across all browsers */
select {
    background-image: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 2.5rem;
}

select::-ms-expand {
    display: none;
}

/* ===== Toggle Button Component ===== */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .toggle-slider {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid #b3b8c2;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #74b62d;
    border-color: #64a125;
}

.toggle-switch .toggle-slider::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    top: 0.125rem;
    left: 0.125rem;
    transition: left 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    left: 1.625rem;
}

.toggle-switch .toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* ===== Loading Spinner ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.spinner-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top-color: #74b62d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}