/* MODO CLARO: Matte Ice Soft (Anti-Flashbang) */
:root {
    --qa-bg: #e2e8f0; /* Slate 200 - Menos luminoso */
    --qa-bg-gradient: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);
    --grid-line: rgba(15, 23, 42, 0.15);             
    --qa-sidebar-bg: #f8fafc;     
    --qa-card-bg: #f8fafc; /* Branco reduzido para evitar flashbang */
    --qa-surface-subtle: #cbd5e1; 
    --qa-border: rgba(15, 23, 42, 0.12); 
    --qa-dark: #0f172a;           
    --qa-gray: #475569;           
    --qa-primary: #10B981; 
    --qa-primary-hover: #059669;
    --qa-primary-light: rgba(16, 185, 129, 0.15);
    --qa-neural-opacity: 0.6; /* Forte como na LandingView */
    color-scheme: light;
}

[data-bs-theme="dark"] {
    /* MODO ESCURO: Landing View Theme */
    --qa-bg: #020617; /* Slate escuro do LandingView */
    --qa-bg-gradient: linear-gradient(to bottom, #020617 0%, #000000 100%);
    --grid-line: rgba(255, 255, 255, 0.06);             
    --qa-sidebar-bg: #0f172a;     
    --qa-card-bg: #0f172a;        
    --qa-surface-subtle: rgba(255, 255, 255, 0.03); 
    --qa-border: rgba(255, 255, 255, 0.08);         
    --qa-dark: #f8fafc;           
    --qa-gray: #94a3b8;           
    --qa-primary: #10B981;
    --qa-primary-hover: #34d399;
    --qa-primary-light: rgba(16, 185, 129, 0.12);
    --qa-neural-opacity: 1.0; /* Forte como na LandingView */
    color-scheme: dark;
}

/* ðŸ›¡ï¸  PROTEÃ‡ÃƒO ANTI-FLASHBANG & RESET BASE */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--qa-bg-gradient) !important;
    background-color: var(--qa-bg) !important;
    color: var(--qa-dark);
    background-attachment: fixed !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus { outline: none; }

/* ðŸ–±ï¸  SCROLLBAR PREMIUM SAAS */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--qa-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--qa-gray); }

/* ðŸŽ¨ UTILITÃ RIOS BOOTSTRAP SEQUESTRADOS (ForÃ§a o modo Matte em todo o site) */
.bg-white { background: var(--qa-card-bg) !important; }
.bg-light { background-color: var(--qa-surface-subtle) !important; }
.text-dark { color: var(--qa-dark) !important; }
.text-muted, .text-secondary { color: var(--qa-gray) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--qa-border) !important; }

/* Sombras minimalistas para compensar o fundo fosco */
:root[data-bs-theme="light"] .shadow-sm { box-shadow: 0 1px 3px rgba(28, 43, 61, 0.04), 0 1px 2px rgba(28, 43, 61, 0.02) !important; }
[data-bs-theme="dark"] .shadow-sm { box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important; }
/* ðŸ”— LINKS & BOTÃ•ES PRIMÃ RIOS */
a, .btn-link { color: var(--qa-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover, .btn-link:hover { color: var(--qa-primary-hover); }

.btn-primary {
    color: #ffffff !important;
    background-color: var(--qa-primary);
    border-color: var(--qa-primary);
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:active {
    background-color: var(--qa-primary-hover) !important;
    border-color: var(--qa-primary-hover) !important;
}

/* ðŸ“  FORMULÃ RIOS & ACESSIBILIDADE DE FOCO */
.form-control, .form-select, .form-check-input {
    background: var(--qa-card-bg);
    color: var(--qa-dark);
    border: 1px solid var(--qa-border);
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus, .btn:active:focus {
    background: var(--qa-card-bg);
    color: var(--qa-dark);
    border-color: var(--qa-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
    outline: none;
}

/* ðŸ’» DESTAQUES & CÃ“DIGO INLINE */
code {
    color: var(--qa-primary);
    background-color: var(--qa-primary-light);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85em;
}

/* âš™ï¸ UTILITÃRIOS NATIVOS DO BLAZOR */
.content { padding-top: 1.1rem; }
.valid.modified:not([type=checkbox]) { border-color: var(--qa-primary); }
.invalid { border-color: #ef4444; }
.validation-message { color: #ef4444; font-size: 0.85rem; margin-top: 0.25rem; }

/* ðŸš¨ BLINDAGEM DE ERROS DO BLAZOR */
#blazor-error-ui {
    background-color: #fef2f2;
    color: #991b1b;
    border-top: 4px solid #ef4444;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    font-weight: 500;
}
[data-bs-theme="dark"] #blazor-error-ui {
    background-color: #450a0a;
    color: #fca5a5;
    border-color: #dc2626;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1.5rem; top: 1rem; font-size: 1.2rem; }
.qa-spinner { width: 48px; height: 48px; border: 4px solid rgba(16, 185, 129, 0.15); border-left-color: #10b981; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.loading-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.2rem; color: #10b981; margin-bottom: 0.2rem; }
.loading-subtitle { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: #64748b; }
html[data-bs-theme="dark"] .loading-subtitle { color: #94a3b8; }


html, body { overflow-x: hidden; }
.page { overflow-x: hidden; width: 100vw; }











