/* ═══════════════════════════════════════════════════════
   pages/aluno.css — Área do Aluno
   ═══════════════════════════════════════════════════════ */

/* ─── LOGIN ──────────────────────────────────────────── */
.aluno-login-section {
  padding: var(--section-y) 0;
  background: var(--bg-light);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.aluno-login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Coluna esquerda */
.aluno-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.aluno-login-brand span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}
.aluno-login-left h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.aluno-login-left > p {
  font-size: 15.5px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 380px;
}
.aluno-login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aluno-login-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-mid);
  font-weight: 500;
}
.aluno-login-feat-icon {
  width: 38px; height: 38px;
  background: #fdecea;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Card de login */
.aluno-login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.aluno-login-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--text-dark); margin-bottom: 6px;
}
.aluno-login-sub {
  font-size: 13.5px; color: var(--text-light);
  margin-bottom: 28px; line-height: 1.5;
}

/* Input senha com botão olho */
.aluno-input-pw { position: relative; }
.aluno-input-pw .form-input { padding-right: 44px; }
.aluno-pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-light);
  display: flex; align-items: center;
  transition: color 0.2s;
}
.aluno-pw-toggle:hover { color: var(--red); }

/* Lembrar / esqueci */
.aluno-login-opts {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px; font-size: 13px;
}
.aluno-remember {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-mid); cursor: pointer;
}
.aluno-remember input { accent-color: var(--red); width: 15px; height: 15px; }
.aluno-forgot {
  color: var(--red); text-decoration: none;
  font-weight: 600; font-size: 13px;
  transition: opacity 0.2s;
}
.aluno-forgot:hover { opacity: 0.75; }

/* Erro login */
.aluno-login-error {
  font-size: 13px; color: #dc2626;
  margin-top: 10px; min-height: 18px;
  font-weight: 500;
}

/* Link cadastro */
.aluno-register-link {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  color: var(--red); font-size: 14px; font-weight: 700;
  text-decoration: none;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.aluno-register-link:hover { border-color: var(--red); background: var(--red-glow); }

/* ─── DASHBOARD — LAYOUT ─────────────────────────────── */
.aluno-header { padding: 56px 0 48px; }

.aluno-dashboard {
  padding: var(--section-y) 0;
  background: var(--bg-light);
  min-height: 70vh;
}
.aluno-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.aluno-sidebar { position: sticky; top: calc(68px + 24px); }

.aluno-profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.aluno-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.aluno-avatar-lg { width: 72px; height: 72px; font-size: 24px; margin: 0; }

.aluno-profile-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--text-dark); margin-bottom: 4px;
}
.aluno-profile-email {
  font-size: 12.5px; color: var(--text-light);
  word-break: break-all; margin-bottom: 8px;
}
.aluno-profile-since {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--red);
  background: #fdecea;
  padding: 3px 10px; border-radius: 100px;
}

/* Navegação sidebar */
.aluno-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.aluno-nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 14px 18px;
  background: none; border: none;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-mid); cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  border-left: 3px solid transparent;
  text-align: left;
}
.aluno-nav-item svg { flex-shrink: 0; }
.aluno-nav-item:hover { background: var(--bg-light); color: var(--text-dark); }
.aluno-nav-item.active {
  background: #fdecea;
  color: var(--red);
  font-weight: 700;
  border-left-color: var(--red);
}
.aluno-nav-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.aluno-nav-logout { color: #dc2626 !important; }
.aluno-nav-logout:hover { background: #fef2f2 !important; }

/* ─── CONTEÚDO — ABAS ────────────────────────────────── */
.aluno-main { min-width: 0; }

.aluno-tab { display: none; }
.aluno-tab.active { display: block; }

.aluno-section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.aluno-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--text-dark); margin-bottom: 4px;
}
.aluno-section-sub { font-size: 13px; color: var(--text-light); }

/* ─── CARDS DE CURSOS ────────────────────────────────── */
.aluno-cursos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.aluno-curso-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.aluno-curso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,57,43,0.18);
}
.aluno-curso-head {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 14px;
}
.aluno-curso-tag {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
  letter-spacing: 0.4px;
}
.aluno-tag-aha { background: #1e40af; color: #fff; }

.aluno-status {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  letter-spacing: 0.3px;
}
.aluno-status-concluido   { background: #dcfce7; color: #15803d; }
.aluno-status-em_andamento { background: #fef3c7; color: #b45309; }

.aluno-curso-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14.5px;
  color: var(--text-dark); line-height: 1.4;
  margin-bottom: 5px;
}
.aluno-curso-cat {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 18px;
}

/* Barra de progresso */
.aluno-progress-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.aluno-progress-bar {
  flex: 1; height: 6px;
  background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.aluno-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 1s ease;
}
.aluno-progress-pct {
  font-size: 12px; font-weight: 700;
  color: var(--text-mid); flex-shrink: 0;
}

/* Footer do card */
.aluno-curso-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.aluno-curso-data {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-light);
}
/* Botões lado a lado, mesmo tamanho */
.aluno-curso-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aluno-btn-cert {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1.5px solid var(--red);
  color: var(--red); font-size: 12px; font-weight: 700;
  padding: 8px 10px; border-radius: 7px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s; width: 100%;
}
.aluno-btn-cert:hover { background: var(--red); color: #fff; }
.aluno-btn-cert-disabled {
  font-size: 12px; color: var(--text-light);
  font-style: italic;
}

/* ─── CERTIFICADOS ───────────────────────────────────── */
.aluno-certs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aluno-cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aluno-cert-card:hover {
  border-color: rgba(192,57,43,0.22);
  box-shadow: var(--shadow-sm);
}
.aluno-cert-icon {
  width: 52px; height: 52px;
  background: #fdecea;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aluno-cert-body { flex: 1; min-width: 0; }
.aluno-cert-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--text-dark); margin-bottom: 3px;
}
.aluno-cert-cat { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.aluno-cert-data { font-size: 12px; color: var(--text-light); }
.aluno-cert-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.aluno-cert-badge-aha {
  background: #1e40af; color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
}

/* ─── ESTADO VAZIO ───────────────────────────────────── */
.aluno-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.aluno-empty p {
  font-size: 14px; color: var(--text-light);
  margin-top: 16px;
}

/* ─── PERFIL ─────────────────────────────────────────── */
.aluno-perfil-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.aluno-perfil-avatar-row {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.aluno-perfil-avatar-hint {
  font-weight: 600; font-size: 14px; color: var(--text-dark);
  margin-bottom: 4px;
}
.aluno-perfil-avatar-sub { font-size: 12.5px; color: var(--text-light); }
.aluno-perfil-divider {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin: 24px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.aluno-perfil-actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 24px;
}
.aluno-perfil-saved {
  display: none;
  align-items: center; gap: 6px;
  font-size: 13.5px; color: #16a34a; font-weight: 600;
}
.aluno-perfil-saved.visible { display: flex; }

/* ─── TABELA PAGAMENTOS ──────────────────────────────── */
.aluno-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.aluno-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.aluno-table thead {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.aluno-table th {
  padding: 13px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.7px;
  text-align: left;
}
.aluno-table td {
  padding: 16px 18px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.aluno-table tr:last-child td { border-bottom: none; }
.aluno-table tr:hover td { background: #fafafa; }
.aluno-table-curso { color: var(--text-dark); font-weight: 600; }
.aluno-table-valor { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--text-dark); }

.aluno-pag-status {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 100px;
  letter-spacing: 0.2px;
}
.aluno-pag-pago    { background: #dcfce7; color: #15803d; }
.aluno-pag-pendente { background: #fef3c7; color: #b45309; }
.aluno-pag-falhou  { background: #fee2e2; color: #b91c1c; }

/* ─── RESPONSIVIDADE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .aluno-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .aluno-cursos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .aluno-login-wrap { grid-template-columns: 1fr; gap: 32px; }
  .aluno-login-left { display: none; }
  .aluno-login-card { padding: 28px 22px; }

  .aluno-layout { grid-template-columns: 1fr; }
  .aluno-sidebar { position: static; }
  .aluno-nav {
    display: flex; flex-direction: row; flex-wrap: wrap;
    border-radius: 12px;
  }
  .aluno-nav-item {
    flex: 1 1 auto; min-width: 0;
    padding: 12px 10px; font-size: 12px;
    border-left: none; border-bottom: 3px solid transparent;
    justify-content: center; flex-direction: column;
    text-align: center; gap: 4px;
  }
  .aluno-nav-item.active { border-bottom-color: var(--red); border-left: none; }
  .aluno-nav-sep { display: none; }

  .aluno-table-wrap { overflow-x: auto; }
  .aluno-table { min-width: 560px; }

  .aluno-cert-card { flex-wrap: wrap; }
  .aluno-cert-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .aluno-login-section { padding: var(--section-y-sm) 0; align-items: flex-start; }
  .aluno-cursos-grid { grid-template-columns: 1fr; }
  .aluno-perfil-form { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Adições v1.1 */
.aluno-demo-hint { margin-top: 16px; padding: 10px 14px; background: #f9f9f9; border-radius: 8px;
  font-size: 12px; color: #666; text-align: center; border: 1px dashed #ddd; }
.aluno-loading { text-align: center; padding: 40px; color: #aaa; font-size: 15px; }
.aluno-cert-codigo { font-size: 12px; color: #888; margin-top: 4px; }
.aluno-perfil-saved { display: flex; align-items: center; gap: 6px; color: #16a34a; font-weight: 600; font-size: 14px; }
.aluno-perfil-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }

/* Botão acessar curso */
.aluno-btn-acessar {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: 7px;
  background: #C0392B; color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background .2s; width: 100%;
}
.aluno-btn-acessar:hover { background: #a93226; color: #fff; }
