/* ENEM AWS — camada sobre styles.css (identidade SEC-BA / correcao-enem-v2) */

.ea-login-grid {
  max-width: 960px;
}

.ea-login-aside {
  text-align: left;
}

.ea-inst-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  scroll-margin-top: 1.5rem;
}

.ea-inst-block:target {
  animation: ea-inst-highlight 0.6s ease;
}

@keyframes ea-inst-highlight {
  0%,
  100% {
    background: transparent;
  }
  30% {
    background: rgba(0, 92, 151, 0.06);
    border-radius: 10px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.ea-demo-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ea-demo-list li {
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ea-demo-list code {
  font-size: 0.88em;
  background: #e2e8f0;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.ea-login-foot {
  font-size: 0.85rem;
  margin: 0;
}

/* ----- App shell (estudante / admin) ----- */
.ea-app-screen {
  padding-top: 100px;
  padding-bottom: 3rem;
  align-items: stretch;
}

.ea-admin-screen {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.ea-wave-muted {
  opacity: 0.55;
  height: 280px;
}

.ea-app-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.ea-hero-compact {
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.ea-hero-compact .cr-hero-title {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.ea-panel-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  text-align: left;
}

.ea-evento-head {
  border-top-color: var(--logo-laranja);
}

.ea-evento-nome {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bahia-azul);
}

.ea-tema-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  margin: 0.5rem 0 0.35rem;
}

.ea-tema-texto {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.ea-instrucoes {
  font-size: 0.9rem;
  line-height: 1.45;
}

.ea-textarea {
  min-height: 300px;
  resize: vertical;
  font-family: "Roboto", sans-serif;
  line-height: 1.55;
}

.ea-char-line {
  margin: 0.35rem 0 1rem;
  font-size: 0.85rem;
}

.ea-back {
  display: block;
  margin: 0 auto 1rem;
  max-width: 1200px;
  width: calc(100% - 2.5rem);
}

.ea-eventos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ea-evento-card {
  text-align: left;
  padding: 1rem 1.15rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ea-evento-card strong {
  font-size: 1.05rem;
  color: var(--bahia-azul);
}

.ea-evento-card:hover {
  border-color: var(--bahia-azul-claro);
  box-shadow: 0 8px 24px rgba(0, 39, 118, 0.12);
  transform: translateY(-1px);
}

.ea-aguardando {
  text-align: center;
  max-width: 560px;
}

.ea-status-icon {
  font-size: 2.75rem;
  margin-bottom: 0.35rem;
}

.ea-status-sub {
  margin-top: 0.75rem;
}

/* ----- Devolutiva: banner + split ----- */
.ea-resultado-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ea-nota-banner {
  margin-bottom: 1rem;
}

.ea-nota-banner .score-banner {
  text-align: center;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bahia-azul), #005c97);
  color: #fff;
  box-shadow: 0 10px 32px rgba(0, 39, 118, 0.2);
  flex-direction: column;
  align-items: center;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 1.1rem;
}

.ea-nota-banner .score-banner strong {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ea-nota-banner .ea-nota-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.ea-split-resultado {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .ea-split-resultado {
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
  }
}

.ea-split-col {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.ea-redacao-leitura {
  flex: 1;
  overflow-y: auto;
  max-height: min(70vh, 640px);
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: "Roboto", serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.ea-criterios-host {
  flex: 1;
  overflow-y: auto;
  max-height: min(70vh, 640px);
  padding-right: 0.25rem;
}

.ea-criterios-host .comp-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .ea-criterios-host .comp-grid {
    grid-template-columns: 1fr;
  }
}

.ea-devolutiva .compare-score {
  display: none;
}

/* ----- Admin ----- */
.ea-admin-grid {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
}

.ea-kpi-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
  max-width: 1100px;
  width: 100%;
}

.ea-kpi {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 39, 118, 0.08);
  border-top: 3px solid var(--bahia-azul);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ea-kpi span {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ea-kpi strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bahia-azul);
}

.ea-kpi--ok {
  border-top-color: var(--cor-verde);
}

.ea-kpi--ok strong {
  color: #059669;
}

.ea-kpi--erro {
  border-top-color: var(--cor-vermelho);
}

.ea-kpi--erro strong {
  color: #dc2626;
}

.ea-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.ea-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ea-table th {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ea-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ea-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ea-badge--pendente {
  background: #fef3c7;
  color: #92400e;
}

.ea-badge--corrigindo {
  background: #dbeafe;
  color: #1e40af;
}

.ea-badge--ok {
  background: #d1fae5;
  color: #065f46;
}

.ea-badge--erro {
  background: #fee2e2;
  color: #991b1b;
}

.ea-lote-msg {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.ea-custos p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #1e293b;
}

.ea-custo-projecao {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ea-custo-projecao-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.ea-custo-projecao-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bahia-azul);
}

.ea-custos-foot {
  margin-top: 0.75rem;
}

.ea-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ea-btn-export {
  flex-shrink: 0;
}

/* ----- Contraste de texto (correções globais ENEM AWS) ----- */
.ea-panel-text-left {
  text-align: left;
}

.ea-panel-text-left .login-title,
.ea-panel-text-left .login-subtitle {
  text-align: left;
}

.ea-text-secondary {
  color: #475569 !important;
}

.ea-erro-msg {
  color: #b91c1c;
  font-size: 0.85rem;
  line-height: 1.35;
  max-width: 280px;
  display: inline-block;
}

.ea-text-meta {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ea-text-info {
  color: #0c4a6e !important;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.ea-body-estudante .login-box,
.ea-admin-screen .login-box,
.ea-gestao-screen .login-box {
  color: #1e293b;
}

.ea-body-estudante .muted,
.ea-admin-screen .muted,
.ea-gestao-screen .muted {
  color: #475569;
}

.ea-traj-section .login-box {
  text-align: left;
  color: #1e293b;
}

.ea-traj-section .cr-traj-section-desc,
.ea-traj-section .cr-traj-meta,
.ea-traj-section .cr-traj-periodo {
  color: #475569;
}

.ea-criterios-host .comp-card {
  background: #fff;
  border-color: #cbd5e1;
}

.ea-criterios-host .comp-card p:not(.nota):not(.muted) {
  color: #334155;
}

.ea-criterios-host .comp-card .ea-comp-erro {
  color: #991b1b;
  font-weight: 500;
  margin: 0.35rem 0 0;
}

.ea-table td {
  color: #334155;
}

.ea-table td strong {
  color: #0f172a;
}

.ea-table tbody tr:hover {
  background: #f8fafc;
}

.ea-evento-card .muted {
  color: #475569;
}

.ea-char-line {
  color: #475569;
}

.ea-instrucoes {
  color: #475569;
}

.cr-traj-bar-label {
  color: #334155;
  font-weight: 600;
}

.cr-traj-bar-val {
  color: #0f172a;
  font-weight: 800;
}

.ea-traj-empty-banner {
  color: #78350f;
}

.ea-traj-empty-banner strong {
  color: #92400e;
}

.ea-gestao-screen {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ----- Navegação estudante ----- */
.ea-nav-tabs {
  position: relative;
  z-index: 11;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.ea-nav-tab {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 39, 118, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: var(--bahia-azul);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ea-nav-tab:hover {
  border-color: var(--bahia-azul-claro);
  background: #fff;
}

.ea-nav-tab--active {
  background: linear-gradient(135deg, var(--bahia-azul), #005c97);
  border-color: transparent;
  color: #fff;
}

.ea-body-estudante .ea-traj-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  box-sizing: border-box;
}

.ea-painel-dual {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  align-items: stretch;
}

.ea-painel-dual .cr-traj-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.ea-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.35rem;
}

.ea-section-head .cr-traj-section-title {
  margin: 0;
}

.ea-btn-nova-redacao {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

.ea-eventos-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.ea-eventos-legenda--compact {
  margin-top: 0.25rem;
}

.ea-eventos-legenda--compact .ea-legenda-item {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
}

.ea-legenda-item {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ea-legenda-item--vermelho {
  background: #fee2e2;
  color: #991b1b;
}

.ea-legenda-item--amarelo {
  background: #fef3c7;
  color: #92400e;
}

.ea-legenda-item--verde {
  background: #d1fae5;
  color: #065f46;
}

.ea-eventos-painel:not(.ea-eventos-painel--grid) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ea-eventos-painel--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.ea-evt-painel-card {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, box-shadow 0.15s, transform 0.15s;
}

.ea-evt-painel-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 39, 118, 0.12);
}

.ea-evt-painel-card--vermelho {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.ea-evt-painel-card--vermelho:hover {
  border-color: #ef4444;
}

.ea-evt-painel-card--amarelo {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.ea-evt-painel-card--amarelo:hover {
  border-color: #f59e0b;
}

.ea-evt-painel-card--verde {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%);
}

.ea-evt-painel-card--verde:hover {
  border-color: #10b981;
}

.ea-evt-badge--nao-enviada {
  background: #fee2e2;
  color: #991b1b;
}

.ea-evt-badge--encerrado {
  background: #e2e8f0;
  color: #475569;
}

.ea-badge--encerrado {
  background: #e2e8f0;
  color: #475569;
}

.ea-evt-painel-card--cinza {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  opacity: 0.92;
}

.ea-evt-painel-card--cinza:hover {
  border-color: #94a3b8;
}

.ea-legenda-item--cinza {
  background: #e2e8f0;
  color: #475569;
}

.ea-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ea-form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.ea-form-row-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.ea-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.ea-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ea-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(520px, 92vw);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.ea-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.ea-dialog-inner {
  padding: 1.25rem 1.35rem 1.1rem;
  margin: 0;
}

.ea-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ea-check-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin: 0.75rem 0 0.25rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ea-form-row-3,
  .ea-form-row-4 {
    grid-template-columns: 1fr;
  }
}

.ea-textarea-compact {
  min-height: 72px;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.ea-btn-fechar {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.ea-encerrado .login-title {
  color: #64748b;
}

@media (max-width: 600px) {
  .ea-form-row {
    grid-template-columns: 1fr;
  }
}

.ea-evt-painel-card strong {
  color: var(--bahia-azul);
  font-size: 0.95rem;
}

.ea-evt-painel-tema {
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ea-evt-painel-data {
  font-size: 0.78rem;
}

.ea-evt-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ea-evt-badge--ok {
  background: #d1fae5;
  color: #065f46;
}

.ea-evt-badge--wait {
  background: #fef3c7;
  color: #92400e;
}

.ea-evt-badge--pendente {
  background: #f1f5f9;
  color: #64748b;
}

.ea-evt-badge--erro {
  background: #fee2e2;
  color: #991b1b;
}

.ea-traj-empty-banner {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  text-align: center;
  font-size: 0.92rem;
}

.ea-traj-empty-inline {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.ea-traj-section .cr-traj-profile,
.ea-traj-section .cr-traj-chart-card,
.ea-traj-section .cr-traj-detail {
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .ea-app-screen {
    padding-top: 88px;
  }

  .ea-redacao-leitura,
  .ea-criterios-host {
    max-height: 50vh;
  }

  .ea-nav-tabs {
    padding: 0 0.75rem;
  }
}

.ea-acesso-badge-wrap {
  margin: 0.35rem 0 0;
}

.ea-acesso-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e3a8a;
}

.ea-acesso-badge--individual {
  background: #fce7f3;
  color: #9d174d;
}

.ea-planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ea-plano-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.ea-plano-card--atual {
  border-color: var(--bahia-azul, #002776);
  box-shadow: 0 0 0 1px rgba(0, 39, 118, 0.15);
}

.ea-plano-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.ea-plano-preco {
  font-weight: 700;
  color: var(--bahia-azul, #002776);
  margin: 0 0 0.35rem;
}

.ea-plano-tag-atual {
  font-size: 0.75rem;
  font-weight: 600;
  color: #065f46;
}

.ea-plano-resumo {
  margin-top: 0.5rem;
}

.ea-evt-scope {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9d174d;
}

.ea-evt-scope--inst {
  color: #1e40af;
}

.ea-btn-plano {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
}

.ea-status-icon--spin {
  animation: ea-spin-pulse 1.2s ease-in-out infinite;
}

@keyframes ea-spin-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.08);
  }
}

.ea-dlg-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.ea-hero-acao {
  margin-top: 1rem;
}

.ea-retry-correcao {
  margin-top: 1rem;
}
