/**
 * Simulado Online – Estilos Reformulados
 * Blue Concursos
 *
 * Localização: /assets/css/pages/simulados/single.css
 */

/* ============================================================
   TOKENS E VARIÁVEIS
   ============================================================ */

:root {
    --bc-sim-azul:       #2563eb;
    --bc-sim-azul-hover: #1d4ed8;
    --bc-sim-azul-light: #eff6ff;
    --bc-sim-verde:      #16a34a;
    --bc-sim-verde-bg:   #dcfce7;
    --bc-sim-vermelho:   #dc2626;
    --bc-sim-vermelho-bg:#fee2e2;
    --bc-sim-amarelo:    #d97706;
    --bc-sim-amarelo-bg: #fef3c7;

    --bc-bg:             #f1f5f9;
    --bc-surface:        #ffffff;
    --bc-border:         #e2e8f0;
    --bc-border-hover:   #cbd5e1;

    --bc-txt-main:       #0f172a;
    --bc-txt-muted:      #64748b;
    --bc-txt-light:      #94a3b8;

    --bc-radius-sm:      6px;
    --bc-radius-md:      10px;
    --bc-radius-lg:      16px;

    --bc-shadow-sm:      0 1px 3px rgba(0,0,0,.08);
    --bc-shadow-md:      0 4px 16px rgba(0,0,0,.1);
    --bc-shadow-lg:      0 8px 32px rgba(0,0,0,.12);

    --bc-header-h:       64px;
    --bc-nav-w:          260px;
    --bc-transition:     .2s ease;
}

/* ============================================================
   CONTAINER RAIZ
   ============================================================ */

.bc-sim-container {
    min-height: 100vh;
    background: var(--bc-bg);
}

/* ============================================================
   TELAS (animação entre elas)
   ============================================================ */

.bc-tela {
    display: none;
    animation: bcFadeUp .25s ease forwards;
}

.bc-tela.ativa {
    display: block;
}

@keyframes bcFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TELA 1: INÍCIO  (substitui instrucoes-wrapper)
   ============================================================ */

.bc-inicio-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Cabeçalho */
.bc-voltar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bc-txt-muted);
    text-decoration: none;
    transition: color var(--bc-transition);
}

.bc-voltar-link:hover { color: var(--bc-sim-azul); }

.bc-inicio-titulo {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--bc-txt-main);
    line-height: 1.3;
    margin: 8px 0 0;
}

.bc-inicio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

/* Badges */
.bc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.bc-badge--banca    { background: #dbeafe; color: #1e40af; }
.bc-badge--concurso { background: #dcfce7; color: #14532d; }
.bc-badge--cargo    { background: #fef3c7; color: #78350f; }
.bc-badge--ano      { background: #f3e8ff; color: #581c87; }

/* Cards de stats */
.bc-inicio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bc-stat-card {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-stat-card--destaque {
    background: var(--bc-sim-azul);
    border-color: transparent;
}

.bc-stat-card--destaque .bc-stat-label,
.bc-stat-card--destaque .bc-stat-valor { color: #fff; }

.bc-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--bc-txt-muted);
}

.bc-stat-valor {
    font-size: 22px;
    font-weight: 700;
    color: var(--bc-txt-main);
    line-height: 1.1;
}

.bc-stat-valor small {
    font-size: 13px;
    font-weight: 500;
    opacity: .6;
}

/* Avisos */
.bc-aviso {
    padding: 14px 18px;
    border-radius: var(--bc-radius-md);
    font-size: 14px;
    line-height: 1.55;
}

.bc-aviso--info   { background: var(--bc-sim-azul-light); color: #1e40af; border-left: 3px solid var(--bc-sim-azul); }
.bc-aviso--alerta { background: var(--bc-sim-amarelo-bg); color: #78350f; border-left: 3px solid var(--bc-sim-amarelo); }

/* Botão Iniciar */
.bc-btn-iniciar {
    align-self: flex-start;
    background: var(--bc-sim-azul);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: var(--bc-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--bc-transition), transform var(--bc-transition), box-shadow var(--bc-transition);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    text-decoration: none;
    display: inline-block;
}

.bc-btn-iniciar:hover {
    background: var(--bc-sim-azul-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,99,235,.4);
}

/* ============================================================
   TELA 2: PROVA
   ============================================================ */

.bc-tela--prova {
    display: none; /* sobrescrito por .ativa */
    min-height: 100vh;
}

.bc-tela--prova.ativa {
    display: flex;
    flex-direction: column;
}

/* --- Cabeçalho fixo --- */
.bc-prova-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--bc-header-h);
    background: var(--bc-surface);
    border-bottom: 1px solid var(--bc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
    box-shadow: var(--bc-shadow-sm);
}

.bc-prova-header__info {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.bc-prova-titulo {
    font-size: 14px;
    font-weight: 700;
    color: var(--bc-txt-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.bc-prova-contador {
    font-size: 13px;
    color: var(--bc-txt-muted);
    white-space: nowrap;
}

.bc-prova-contador strong {
    color: var(--bc-sim-azul);
}

.bc-prova-header__controles {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Cronômetro */
.bc-cronometro {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bc-txt-main);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--bc-radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* --- Layout prova (questão + sidebar) --- */
.bc-prova-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr var(--bc-nav-w);
    gap: 0;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 40px;
    align-items: start;
    gap: 24px;
    box-sizing: border-box;
}

/* --- Área da questão --- */
.bc-questao-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bc-questao-card {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-lg);
    padding: 36px 40px;
    box-shadow: var(--bc-shadow-sm);
}

/* Enunciado */
.bc-enunciado {
    margin-bottom: 28px;
}

.numero-questao {
    display: inline-block;
    background: var(--bc-sim-azul);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 18px;
}

.texto-enunciado {
    font-size: 16px;
    line-height: 1.75;
    color: var(--bc-txt-main);
}

/* Alternativas */
.bc-alternativas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alternativa {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    background: #fafafa;
    cursor: pointer;
    transition: border-color var(--bc-transition), background var(--bc-transition), transform var(--bc-transition);
}

.alternativa:hover {
    border-color: var(--bc-sim-azul);
    background: var(--bc-sim-azul-light);
    transform: translateX(3px);
}

.alternativa.selecionada {
    border-color: var(--bc-sim-azul);
    background: var(--bc-sim-azul-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.alternativa-letra {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--bc-border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bc-txt-muted);
    transition: all var(--bc-transition);
    background: #fff;
}

.alternativa.selecionada .alternativa-letra {
    background: var(--bc-sim-azul);
    border-color: var(--bc-sim-azul);
    color: #fff;
}

.alternativa-texto {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    padding-top: 4px;
}

/* Correção */
.alternativa.correta               { border-color: var(--bc-sim-verde)   !important; background: var(--bc-sim-verde-bg)   !important; }
.alternativa.correta .alternativa-letra   { background: var(--bc-sim-verde)   !important; border-color: var(--bc-sim-verde)   !important; color: #fff !important; }
.alternativa.incorreta             { border-color: var(--bc-sim-vermelho) !important; background: var(--bc-sim-vermelho-bg) !important; }
.alternativa.incorreta .alternativa-letra { background: var(--bc-sim-vermelho) !important; border-color: var(--bc-sim-vermelho) !important; color: #fff !important; }

/* Controles de navegação da questão */
.bc-questao-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    padding: 14px 20px;
}

.bc-questao-nav__paginacao {
    display: flex;
    gap: 10px;
}

/* --- Sidebar de navegação rápida --- */
.bc-nav-lateral {
    position: sticky;
    /* abaixo do header fixo */
    top: calc(var(--bc-header-h) + 28px);
    max-height: calc(100vh - var(--bc-header-h) - 56px);
    overflow-y: auto;
}

.bc-nav-lateral__inner {
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-lg);
    padding: 20px;
}

.bc-nav-lateral__titulo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--bc-txt-muted);
    margin: 0 0 14px;
}

/* Grid de botões numéricos */
.bc-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.nav-questao {
    aspect-ratio: 1;
    border: 1.5px solid var(--bc-border);
    background: #fafafa;
    border-radius: var(--bc-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--bc-txt-muted);
    cursor: pointer;
    transition: all var(--bc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-questao:hover         { border-color: var(--bc-sim-azul); color: var(--bc-sim-azul); }
.nav-questao.atual         { background: var(--bc-sim-azul)  !important; border-color: var(--bc-sim-azul)  !important; color: #fff !important; }
.nav-questao.respondida    { background: var(--bc-sim-verde-bg); border-color: var(--bc-sim-verde); color: var(--bc-sim-verde); }
.nav-questao.marcada       { background: var(--bc-sim-amarelo-bg); border-color: var(--bc-sim-amarelo); color: var(--bc-sim-amarelo); }
.nav-questao.vazia         { background: #fafafa; color: var(--bc-txt-light); }

/* Legenda */
.bc-nav-legenda {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid var(--bc-border);
    padding-top: 14px;
}

.bc-legenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--bc-txt-muted);
}

.bc-legenda-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bc-legenda-dot--atual     { background: var(--bc-sim-azul); }
.bc-legenda-dot--respondida{ background: var(--bc-sim-verde); }
.bc-legenda-dot--marcada   { background: var(--bc-sim-amarelo); }
.bc-legenda-dot--vazia     { background: var(--bc-border-hover); }

/* Selector mobile */
.bc-selector-mobile {
    display: none;
}

/* ============================================================
   BOTÕES GLOBAIS
   ============================================================ */

.bc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--bc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--bc-transition);
    white-space: nowrap;
}

.bc-btn--sm  { padding: 8px 14px; font-size: 13px; }

.bc-btn--primary {
    background: var(--bc-sim-azul);
    color: #fff;
}
.bc-btn--primary:hover:not(:disabled) {
    background: var(--bc-sim-azul-hover);
    transform: translateY(-1px);
}

.bc-btn--secondary {
    background: var(--bc-border);
    color: #475569;
}
.bc-btn--secondary:hover:not(:disabled) { background: var(--bc-border-hover); }

.bc-btn--outline {
    background: transparent;
    color: var(--bc-sim-azul);
    border: 1.5px solid var(--bc-sim-azul);
}
.bc-btn--outline:hover { background: var(--bc-sim-azul-light); }

.bc-btn--outline.marcada {
    background: var(--bc-sim-amarelo-bg);
    color: var(--bc-sim-amarelo);
    border-color: var(--bc-sim-amarelo);
}

.bc-btn--ghost {
    background: transparent;
    color: var(--bc-txt-muted);
    border: 1.5px solid var(--bc-border);
}
.bc-btn--ghost:hover { background: var(--bc-border); }

.bc-btn--finalizar {
    background: #dc2626;
    color: #fff;
}
.bc-btn--finalizar:hover { background: #b91c1c; }

.bc-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Reutilizar btn genérico para compatibilidade com JS existente */
.btn          { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--bc-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all var(--bc-transition); }
.btn-primary  { background: var(--bc-sim-azul); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--bc-sim-azul-hover); }
.btn-secondary{ background: var(--bc-border); color: #475569; }
.btn-secondary:hover:not(:disabled) { background: var(--bc-border-hover); }
.btn-outline  { background: transparent; color: var(--bc-sim-azul); border: 1.5px solid var(--bc-sim-azul); }
.btn-outline:hover { background: var(--bc-sim-azul-light); }
.btn-danger   { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-small    { padding: 7px 14px; font-size: 13px; }
.btn-block    { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   TELA 3: RESULTADO
   ============================================================ */

.resultado-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.resultado-header {
    text-align: center;
    margin-bottom: 36px;
}

.resultado-header h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--bc-txt-main);
    margin-bottom: 8px;
}

.resultado-header h2 {
    font-size: 17px;
    color: var(--bc-txt-muted);
    font-weight: 400;
}

.nota-destaque {
    background: var(--bc-surface);
    border: 3px solid var(--bc-sim-verde);
    border-radius: var(--bc-radius-lg);
    padding: 44px;
    text-align: center;
    margin-bottom: 36px;
    box-shadow: var(--bc-shadow-md);
}

.nota-valor {
    font-size: 64px;
    font-weight: 800;
    color: var(--bc-sim-verde);
    line-height: 1;
    margin-bottom: 6px;
}

.nota-max {
    font-size: 32px;
    color: var(--bc-txt-light);
}

.nota-label {
    font-size: 14px;
    color: var(--bc-txt-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.estatisticas-gerais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.stat-item {
    background: var(--bc-surface);
    padding: 28px;
    border-radius: var(--bc-radius-lg);
    text-align: center;
    box-shadow: var(--bc-shadow-sm);
    border: 1px solid var(--bc-border);
}

.stat-icone { font-size: 36px; margin-bottom: 10px; }
.stat-numero { font-size: 38px; font-weight: 700; margin-bottom: 6px; }
.stat-item.acertos .stat-numero  { color: var(--bc-sim-verde); }
.stat-item.erros .stat-numero    { color: var(--bc-sim-vermelho); }
.stat-item.vazias .stat-numero   { color: var(--bc-sim-amarelo); }
.stat-label { font-size: 12px; color: var(--bc-txt-muted); text-transform: uppercase; letter-spacing: .5px; }

.desempenho-materias, .ranking-container {
    background: var(--bc-surface);
    padding: 28px;
    border-radius: var(--bc-radius-lg);
    box-shadow: var(--bc-shadow-sm);
    border: 1px solid var(--bc-border);
    margin-bottom: 28px;
}

.desempenho-materias h3, .ranking-container h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--bc-txt-main);
    margin-bottom: 20px;
}

.materias-lista { display: flex; flex-direction: column; gap: 14px; }

.materia-item { padding: 14px; background: var(--bc-bg); border-radius: var(--bc-radius-md); }

.materia-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.materia-info strong { color: var(--bc-txt-main); }
.materia-info span   { color: var(--bc-txt-muted); font-weight: 600; }

.materia-barra { height: 8px; background: var(--bc-border); border-radius: 4px; overflow: hidden; }
.materia-progresso { height: 100%; background: var(--bc-sim-verde); transition: width .6s ease; }

.ranking-lista { display: flex; flex-direction: column; gap: 10px; }

.ranking-item {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--bc-bg);
    border-radius: var(--bc-radius-md);
    transition: background var(--bc-transition);
}

.ranking-item:hover { background: var(--bc-sim-azul-light); }
.ranking-item.destaque { background: var(--bc-sim-amarelo-bg); }
.ranking-posicao { font-size: 20px; font-weight: 700; text-align: center; }
.ranking-nome    { font-size: 15px; font-weight: 600; color: var(--bc-txt-main); }
.ranking-nota    { font-size: 18px; font-weight: 700; color: var(--bc-sim-azul); }
.ranking-acertos { font-size: 13px; color: var(--bc-txt-muted); }

.acoes-resultado {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ============================================================
   MODAIS
   ============================================================ */

.bc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.bc-modal-overlay.ativo { display: flex; }

.bc-modal-conteudo {
    background: var(--bc-surface);
    border-radius: var(--bc-radius-lg);
    padding: 36px;
    max-width: 480px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: bcModalIn .25s ease-out;
}

@keyframes bcModalIn {
    from { opacity: 0; transform: scale(.93) translateY(-12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.bc-modal-fechar {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bc-bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--bc-transition);
}

.bc-modal-fechar:hover { background: var(--bc-border); transform: rotate(90deg); }

.bc-modal-conteudo h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bc-txt-main);
    margin-bottom: 10px;
}

.bc-modal-conteudo p {
    font-size: 14px;
    color: var(--bc-txt-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.bc-tempo-pausado { font-size: 16px !important; color: var(--bc-txt-main) !important; }

.bc-modal-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Tabs de login */
.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bc-border);
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-txt-muted);
    cursor: pointer;
    transition: all var(--bc-transition);
}

.tab-btn:hover        { color: var(--bc-sim-azul); }
.tab-btn.ativa        { color: var(--bc-sim-azul); border-bottom-color: var(--bc-sim-azul); }

.tab-conteudo         { display: none; }
.tab-conteudo.ativa   { display: block; }

.tab-conteudo h2 {
    font-size: 18px;
    color: var(--bc-txt-main);
    margin-bottom: 20px;
}

/* Formulários */
.form-auth { display: flex; flex-direction: column; gap: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bc-txt-main);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    font-size: 14px;
    transition: border-color var(--bc-transition), box-shadow var(--bc-transition);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--bc-sim-azul);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group.checkbox { flex-direction: row; align-items: center; gap: 8px; }
.form-group.checkbox input { width: auto; }

.form-message { padding: 10px; border-radius: var(--bc-radius-sm); font-size: 13px; text-align: center; display: none; margin-top: 4px; }
.form-message.sucesso { background: var(--bc-sim-verde-bg); color: #14532d; display: block; }
.form-message.erro    { background: var(--bc-sim-vermelho-bg); color: #7f1d1d; display: block; }

/* Loading */
.loading, .loading-resultado {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--bc-txt-muted);
}

.bc-sim-erro {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    color: var(--bc-txt-muted);
    font-size: 16px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root { --bc-nav-w: 220px; }

    .bc-prova-titulo { max-width: 180px; }

    .bc-nav-lateral {
        position: static;
        max-height: none;
    }
}

/* Mobile landscape / tablet pequeno */
@media (max-width: 768px) {
    .bc-prova-layout {
        grid-template-columns: 1fr;
        padding: 16px 16px 80px;
    }

    /* Nav rápida vira barra horizontal embaixo do header */
    .bc-nav-lateral {
        order: -1; /* antes da questão */
    }

    .bc-nav-lateral__inner {
        border-radius: var(--bc-radius-md);
        padding: 14px;
    }

    .bc-nav-grid {
        grid-template-columns: repeat(10, 1fr);
    }

    .bc-prova-header {
        padding: 0 14px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 8px;
    }

    .bc-prova-titulo { display: none; } /* economiza espaço no mobile */

    .bc-prova-header__controles { gap: 8px; }

    .bc-questao-card { padding: 20px; }

    .bc-questao-nav { flex-direction: column; gap: 10px; }
    .bc-questao-nav__paginacao { width: 100%; }
    .bc-questao-nav__paginacao .bc-btn,
    .bc-questao-nav__paginacao .btn { flex: 1; justify-content: center; }

    .bc-selector-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border: none;
        border-top: 1px solid var(--bc-border);
        padding: 12px 16px;
        background: var(--bc-surface);
        font-size: 14px;
        font-weight: 600;
        z-index: 100;
    }

    .estatisticas-gerais { grid-template-columns: 1fr; }
    .resultado-wrapper   { padding: 28px 16px 60px; }

    .nota-valor { font-size: 52px; }

    .acoes-resultado { flex-direction: column; }
    .acoes-resultado .btn,
    .acoes-resultado .bc-btn { width: 100%; justify-content: center; }

    .bc-inicio-wrap { padding: 32px 16px 60px; }
    .bc-btn-iniciar { align-self: stretch; text-align: center; justify-content: center; }

    .bc-modal-conteudo { padding: 24px; }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .bc-nav-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .nav-questao { font-size: 11px; }

    .texto-enunciado   { font-size: 15px; }
    .alternativa-texto { font-size: 14px; }
    .alternativa       { padding: 12px 14px; }
}