/* ========================================
   Senac Carreiras - Estilos Customizados
   ======================================== */

/* Fonte Boston - Família completa */
@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonThin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonThinIt.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonExtraLightIt.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonLightIt.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonRegularIt.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonSemiBoldIt.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonBoldIt.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonHeavyIt.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boston';
    src: url('/fonts/boston/BostonBlackIt.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Boston', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state - animação corrigida */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #192F6C 0%, #EE6131 50%, #192F6C 100%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    z-index: 9999;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner de carregamento */
.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe específica para ícones Phosphor com spin */
i.animate-spin,
.ph.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Validação de formulários */
.valid.modified:not([type=checkbox]) {
    border-color: #10b981;
}

.invalid {
    border-color: #ef4444;
}

.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor error UI - escondido por padrão */
#blazor-error-ui {
    display: none;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Focus states para acessibilidade */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #EE6131;
    outline-offset: 2px;
}

/* Scrollbar invisível - rola mas não exibe a barra */
.scrollbar-hidden {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
