/* GoEmbra — global overrides on top of Tailwind CDN */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

/* Blazor error boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 0.5rem;
}
.blazor-error-boundary::after {
    content: "Si è verificato un errore."
}

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

/* Line clamp utility (Tailwind CDN may not include it) */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Select arrow reset for custom styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23747474' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    padding-right: 2.5rem;
}
