/* iDyn Soft — Base CSS */

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Offset anchor scroll for fixed navbar */
[id] {
    scroll-margin-top: 4rem;
}

/* Blazor validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #22c55e; }
.invalid { outline: 1px solid #ef4444; }
.validation-message { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Country selector modal animation */
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in { animation: fade-in 0.2s ease-out forwards; }

/* Blazor loading indicator */
#blazor-error-ui {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    display: none;
    left: 50%;
    transform: translateX(-50%);
    max-width: 42rem;
    padding: 1rem 1.5rem;
    position: fixed;
    width: calc(100% - 2rem);
    z-index: 1000;
    color: #dc2626;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-size: 1.25rem;
    color: #94a3b8;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error.";
}
