/* Área do Aluno — complementa assets/css/site.css */

.aluno-section { padding-top: 48px; }
.narrow { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.mono { font-family: var(--mono); }
.link-more { font-weight: 700; font-size: 15px; margin-left: 8px; }
.btn--xs { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn--outline.btn--xs { padding: 0 10px; border-width: 1.5px; }
.input--xs { height: 34px; width: 130px; font-size: 13px; padding: 0 10px; border-radius: 9px; }

/* barra do aluno logado */
.aluno-bar { background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.aluno-bar .container { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.aluno-bar nav { display: flex; flex-wrap: wrap; gap: 18px; }
.aluno-bar a { font-weight: 700; color: var(--ink-3); }

/* mensagens */
.alerts { padding-top: 20px; }
.alert { border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.5; margin-bottom: 16px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--ok { background: #E8F6EE; border-color: #B9E2CA; color: #17603B; }
.alert--erro { background: #FDECEC; border-color: #F3C3C3; color: #8C1D1D; }

/* cartões e formulários */
.auth-card, .aluno-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; }
.auth-card { max-width: 520px; }
.aluno-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.auth-alt { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.aluno-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.aluno-grid > .alert { grid-column: 1 / -1; }

/* apresentação */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.step { border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step h2 { margin: 0; font-size: 19px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
.step__n { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rules { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; line-height: 1.55; color: var(--ink-3); }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

/* painel */
.dash { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.dash-step { border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.dash-step--done { border-color: var(--yellow); background: var(--yellow-soft); }
.dash-step header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-step header h2 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.dash-step p { margin: 0; line-height: 1.6; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.status--ok { background: #E8F6EE; color: #17603B; border-color: #B9E2CA; }
.status--erro { background: #FDECEC; color: #8C1D1D; border-color: #F3C3C3; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.claim summary { cursor: pointer; font-weight: 700; color: var(--brand-hover); font-size: 15px; }
.claim .form { margin-top: 14px; }

/* tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table small { color: var(--muted); }
.meter { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--line); vertical-align: middle; margin-right: 8px; position: relative; overflow: hidden; }
.meter::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--brand); border-radius: 99px; }

/* prova */
.exam-bar { position: sticky; top: 0; z-index: 20; background: var(--ink-2); color: #fff; font-size: 15px; }
.exam-bar .container { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.exam-save { color: var(--on-dark-2); font-size: 13px; flex: 1; text-align: center; }
.exam-timer { font-family: var(--mono); font-weight: 700; font-size: 20px; background: var(--ink); padding: 4px 12px; border-radius: 8px; }
.exam-timer.is-low { background: var(--yellow); color: var(--ink); }
.exam { display: flex; flex-direction: column; gap: 20px; }
.q { border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 0; min-width: 0; }
.q legend { display: contents; }
.q__n { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--ink-3); font-weight: 800; font-size: 14px; align-items: center; justify-content: center; margin-right: 10px; float: left; }
.q__text { display: block; font-weight: 700; font-size: 17px; line-height: 1.5; overflow: hidden; }
.q__code { clear: both; margin: 16px 0 0; background: var(--ink-deep); color: var(--code-text); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow-x: auto; }
.q__options { clear: both; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.q__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-3); border-radius: 12px; cursor: pointer; line-height: 1.5; font-size: 15px; }
.q__opt:hover { border-color: var(--brand-light); }
.q__opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.q__opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.exam-submit { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.exam-submit .hint { margin: 0; }

/* resultado */
.result { display: flex; gap: 24px; align-items: center; border-radius: 24px; padding: 24px 28px; margin-bottom: 20px; }
.result--ok { background: #E8F6EE; }
.result--erro { background: #FDECEC; }
.result h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.result p { margin: 0; }
.result__score { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.result-title { font-size: 20px; font-weight: 800; margin: 36px 0 8px; }

/* verificação */
.verify-card { margin-top: 24px; border: 2px solid #B9E2CA; border-radius: 24px; padding: 24px 28px; }
.verify-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 18px 0; }
.verify-card dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.verify-card dd { margin: 0; font-weight: 600; }

/* administração */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stats div { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; }
.stats strong { font-size: 30px; font-weight: 900; }
.stats span { color: var(--muted); font-size: 14px; }
.admin-grant { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; font-size: 14px; font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--yellow); }
.admin-search { margin-bottom: 16px; max-width: 640px; }
.inline-form { display: inline-flex; gap: 6px; margin: 0 6px 6px 0; }

@media (max-width: 720px) {
  .auth-card, .aluno-card, .dash-step { padding: 22px 18px; }
  .result { flex-direction: column; align-items: flex-start; }
  .exam-save { display: none; }
  .verify-card dl { grid-template-columns: 1fr; gap: 2px; }
  .verify-card dd { margin-bottom: 10px; }
  .link-more { display: inline-block; margin: 10px 0 0; }
}
