/* ════════════════════════════════════════════════════════════
   ROBORES · IFES Campus Linhares
   Folha de estilos única do projeto.
   Organização:
     1. Reset & Tokens
     2. Tipografia
     3. Botões
     4. Navegação
     5. Estrutura de página / Cards / Badges
     6. Home (hero + carrossel)
     7. Páginas institucionais (Robores, Equipe, Eventos, AR26)
     8. Rodapé
     9. Autenticação & Formulários (login, cadastro, perfil)
    10. Dashboard
    11. Tabelas de dados
    12. Painel Administrativo
    13. Utilitários
    14. Responsividade / acessibilidade
════════════════════════════════════════════════════════════ */

/* ─── 1. RESET & TOKENS ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta enxuta: 1 fundo, 2 superfícies, 1 acento + cores semânticas de status */
  --c-bg:        #0b0e0b;
  --c-surface:   #12160f;
  --c-surface2:  #171d15;
  --c-border:    #212b1e;
  --c-border2:   rgba(110,202,36,.18);

  --c-green:     #6eca24;
  --c-green-d:   #4e9a18;
  --c-green-lo:  rgba(110,202,36,.08);
  --c-green-md:  rgba(110,202,36,.20);
  --c-green-text: var(--c-green); /* usada em textos/links; fica mais escura no tema claro para manter contraste */

  --c-red:       #e5484d;
  --c-red-lo:    rgba(229,72,77,.14);
  --c-red-ink:   #ff8b8f;  /* texto sobre fundo avermelhado — muda no tema claro */
  --c-gold:      #e8a020;
  --c-gold-lo:   rgba(232,160,32,.14);
  --c-gold-ink:  #e8a020; /* texto sobre fundo amarelado — muda no tema claro */
  --c-blue:      #4c93f0;
  --c-blue-lo:   rgba(76,147,240,.14);
  --c-blue-ink:  #8bb8f5;  /* texto sobre fundo azulado — muda no tema claro */

  --c-divider:   rgba(255,255,255,.05); /* linha sutil entre linhas de tabela — muda no tema claro */

  --c-text:      #dfeadf;
  --c-muted:     #8ba28b;
  --c-white:     #ffffff;

  --r:           8px;
  --r-lg:        14px;
  --max:         1180px;
  --nav-h:       88px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);

  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TEMA CLARO (VERSÃO COMPLETA) ──────────────────────────
   Nesta versão, TODAS as páginas do site usam fundo claro para
   o conteúdo (identidade preto + verde preservada no acento).
   A navbar e o rodapé continuam sempre escuros — suas cores são
   fixas no CSS (ver seções 4 e 8) e não dependem desta classe,
   de propósito, para manter esse contraste em qualquer página. */
body.site-app {
  --c-bg:        #f2f5ef;
  --c-surface:   #ffffff;
  --c-surface2:  #eef2ea;
  --c-border:    #dfe6da;
  --c-border2:   rgba(63,125,19,.22);

  --c-green-text: #3f7d13; /* verde mais escuro só para texto/links, mantendo contraste no fundo branco */

  --c-red-ink:   #b3261e;
  --c-blue-ink:  #1a56c4;
  --c-gold-ink:  #a3690a;
  --c-divider:   rgba(0,0,0,.08);

  --c-text:      #16211a;
  --c-muted:     #5b6b57;
  --c-white:     #12190f; /* nome herdado do tema escuro: aqui representa o texto de maior contraste (título), que no tema claro é escuro, não branco */

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin: 0 auto;
}

/* ─── 2. TIPOGRAFIA ─────────────────────────────────────────
   Títulos (.t-heading / .t-display) sempre usam a fonte "robótica"
   Orbitron, em qualquer página, para manter um padrão único de
   identidade visual em todo o site. */

.t-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-green-text);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.t-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-green);
  border-radius: 1px;
  flex-shrink: 0;
}

.t-display {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  color: var(--c-white);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.t-heading {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -.01em;
}

/* ─── 3. BOTÕES ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

body.site-app .btn {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

.btn-primary {
  background: var(--c-green);
  color: #06220a;
  border-color: var(--c-green);
}

.btn-primary:hover { background: var(--c-green-d); border-color: var(--c-green-d); }
.btn-primary:active { transform: translateY(1px); }

.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

.btn-outline {
  background: transparent;
  color: var(--c-green-text);
  border-color: var(--c-border2);
}
.btn-outline:hover { border-color: var(--c-green); background: var(--c-green-lo); }

.btn-danger {
  background: var(--c-red);
  color: #2a0808;
  border-color: var(--c-red);
}
.btn-danger:hover { filter: brightness(.92); }

.btn-menu-outline {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: var(--r);
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-menu-outline:hover { border-color: var(--c-green); color: var(--c-green-text); }

/* Botões-texto usados em ações discretas (remover membro, inativar robô etc.) */
.btn-text-danger {
  background: none;
  border: none;
  color: var(--c-red);
  cursor: pointer;
  font-size: .85rem;
  padding: .2rem .4rem;
}
.btn-text-danger:hover { text-decoration: underline; }

/* ─── 4. NAVEGAÇÃO ───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,14,11,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 100;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img { height: 56px; width: auto; transition: filter .2s; }

.nav-brand-name {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #ffffff; /* fixo: navbar é sempre escura, não segue o tema do conteúdo */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}

.nav-links a {
  color: #8ba28b; /* fixo: navbar é sempre escura, não segue o tema do conteúdo */
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  transition: color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #6eca24; /* fixo: verde vibrante do tema escuro, sempre — navbar não muda de tema */
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #dfeadf; /* fixo: navbar é sempre escura */
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(11,14,11,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.5rem 1.25rem;
    gap: .2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ─── 5. ESTRUTURA DE PÁGINA / CARDS / BADGES ───────────── */
.page { padding-top: var(--nav-h); }

.section-header { margin-bottom: 1.5rem; }
.section-header h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.section-header p { color: var(--c-muted); margin-top: .4rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--c-border2), transparent);
  margin: 0;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: var(--c-border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .24rem .7rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge-green   { background: var(--c-green); color: #06220a; }
.badge-outline { border-color: var(--c-border2); color: var(--c-green-text); background: var(--c-green-lo); }
.badge-red     { background: var(--c-red-lo); color: var(--c-red-ink); border-color: rgba(229,72,77,.3); }
.badge-gold    { background: var(--c-gold-lo); color: var(--c-gold-ink); border-color: rgba(232,160,32,.3); }
.badge-blue    { background: var(--c-blue-lo); color: var(--c-blue-ink); border-color: rgba(76,147,240,.3); }

/* ═══════════════════════════════════════════════════════════
   6. HOME (HERO + CARROSSEL)
════════════════════════════════════════════════════════════ */
.hero {
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3rem;
  align-items: center;
}

.hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 1.1rem; }
.hero-title em { font-style: normal; color: var(--c-green-text); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  text-align: center;
}
.hero-lead strong { color: var(--c-text); font-weight: 600; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: flex-end; }
.hero-visual img {
  width: 100%;
  max-width: 400px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 30px rgba(110,202,36,.15));
}

/* Em fundo claro, "lighten" lava a imagem (fica quase toda branca) — desativa nesse caso */
body.site-app .hero-visual img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.15));
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 0 2.5rem; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 240px; }
}

.carousel-container { margin-bottom: 2.5rem; }
.carousel-frame {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

.carousel-slide { min-width: 100%; }
.carousel-link { display: block; width: 100%; height: 100%; }
.carousel-img { width: 100%; display: block; object-fit: cover; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11,14,11,.65);
  border: 1px solid var(--c-border2);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn:hover { background: var(--c-green); color: #06220a; }
.carousel-btn.btn-prev { left: 12px; }
.carousel-btn.btn-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.carousel-dots .dot.active { background: var(--c-green); }

@media (max-width: 700px) {
  .carousel-btn { width: 32px; height: 32px; }
}

/* ═══════════════════════════════════════════════════════════
   7. PÁGINAS INSTITUCIONAIS
════════════════════════════════════════════════════════════ */
.page-hero { padding: 3rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .8rem; }
.page-hero p { color: var(--c-muted); max-width: 640px; margin: 0 auto; }

/* Páginas com texto longo (ex: Robores) usam a largura cheia da página,
   em vez do limite estreito das taglines curtas das outras páginas institucionais. */
.page-hero-wide { text-align: left; }
.page-hero-wide p { max-width: 100%; margin: 0 0 1.1rem; }

/* Título principal ("Robores") mantém o mesmo tratamento das outras páginas
   institucionais (ex: "Equipe") — centralizado e no tamanho padrão do
   page-hero — enquanto os demais títulos da página ficam padronizados
   menores e alinhados à esquerda (cabeçalhos de seção, mascote, conquistas). */
#page-robores h1 {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

#page-robores .section-header h2,
#page-robores .mascot-feature h2,
#page-robores .conquistas h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: left;
}
#page-robores .section-header,
#page-robores .conquistas .section-header,
#page-robores .conquistas .t-eyebrow {
  text-align: left;
  justify-content: flex-start;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 860px) { .activities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .activities-grid { grid-template-columns: 1fr; } }

.act-card { padding: 1.75rem; }
.act-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.act-title { font-family: 'Orbitron', monospace; font-weight: 700; color: var(--c-white); font-size: 1.1rem; margin-bottom: .5rem; }
.act-desc { color: var(--c-muted); font-size: .92rem; line-height: 1.7; }

.mascot-feature {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}
.mascot-feature img { width: 100%; max-width: 320px; justify-self: center; }
@media (max-width: 700px) {
  .mascot-feature { grid-template-columns: 1fr; text-align: center; }
  .mascot-feature img { order: -1; max-width: 220px; }
}

.ar26-sub { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--c-muted); margin-bottom: 1.4rem; line-height: 1.7; }

.event-info-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.2rem; }
.info-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .85rem;
}
.info-chip .ico { color: var(--c-green-text); }

.modalities { padding: 0 0 4rem; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .mod-grid { grid-template-columns: 1fr; } }

.mod-card { padding: 1.75rem; display: flex; gap: 1rem; }
.mod-num { font-family: 'Orbitron', monospace; font-size: 1.6rem; color: var(--c-border2); font-weight: 900; }
.mod-name { font-family: 'Orbitron', monospace; font-weight: 700; color: var(--c-white); margin-bottom: .5rem; }
.mod-desc { color: var(--c-muted); font-size: .9rem; line-height: 1.7; }
.mod-desc a { color: var(--c-green-text); }
.mod-card .badge { margin: .3rem .3rem 0 0; display: inline-block; }

.mod-card.c-combat { border-top: 2px solid var(--c-red); }
.mod-card.c-line   { border-top: 2px solid var(--c-green); }
.mod-card.c-sumo   { border-top: 2px solid var(--c-gold); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0 3rem;
}
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem 1rem; }
.team-avatar { font-size: 2.4rem; margin-bottom: .8rem; line-height: 1; }
.team-avatar-img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .8rem;
  border: 2px solid var(--c-green);
}
.team-body { padding-top: .2rem; }
.team-name { font-weight: 700; color: var(--c-white); font-size: 1.02rem; margin-bottom: .2rem; }
.team-role { font-size: .84rem; color: var(--c-muted); }

/* Eventos: cartões-link em destaque */
.event-card {
  display: block;
  max-width: var(--max);
  padding: 1.75rem;
  margin-bottom: 2.2rem;
  text-decoration: none;
}
.event-card .badge-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.event-card .act-title { font-size: 1.7rem; margin-bottom: .5rem; }
.event-card .event-cta {
  margin-top: 1rem;
  color: var(--c-green-text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════
   8. RODAPÉ
════════════════════════════════════════════════════════════ */
footer {
  background: #0b0e0b; /* fixo: rodapé é sempre escuro, não segue o tema do conteúdo */
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: .6rem; }

.footer-center { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer-social-row { display: flex; align-items: center; gap: .8rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 1.7rem;
  transition: filter .15s, border-color .15s, transform .15s;
}
.footer-social:hover { filter: brightness(1.15); border-color: currentColor; transform: translateY(-1px); }

/* Cores oficiais de cada rede — fixas, independentes do tema do site */
.footer-social-instagram { color: #E4405F; }
.footer-social-youtube { color: #FF0000; }

.footer-logo { height: 40px; width: auto; }
.footer-brand-name { font-family: 'Orbitron', monospace; font-weight: 700; color: #ffffff; font-size: .9rem; } /* fixo: rodapé é sempre escuro */
.footer-copy { color: #8ba28b; font-size: .82rem; } /* fixo: rodapé é sempre escuro */
.footer-inst { display: flex; align-items: center; gap: .7rem; text-align: right; line-height: 1.5; color: #8ba28b; font-size: .8rem; } /* fixo: rodapé é sempre escuro */
.footer-ifes-logo { height: 42px; width: auto; object-fit: contain; opacity: .9; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inst { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   9. AUTENTICAÇÃO & FORMULÁRIOS (telas de sistema)
════════════════════════════════════════════════════════════ */
.page-content {
  padding: calc(var(--nav-h) + 2.5rem) 1rem 4rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}

.auth-card.style-full { max-width: 100%; }

.auth-card h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  margin-bottom: .4rem;
  font-size: 1.6rem;
  color: var(--c-white);
}
.auth-subtitle { color: var(--c-muted); margin-bottom: 1.6rem; font-size: .92rem; }

.card-block {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}

.card-block h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
  margin-bottom: .7rem;
}

/* --- ALERTAS --- */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  margin-bottom: 1.4rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.alert svg { flex-shrink: 0; }
.alert-success { background: rgba(110,202,36,.1); border: 1px solid var(--c-green); color: var(--c-green-text); }
.alert-danger  { background: var(--c-red-lo); border: 1px solid var(--c-red); color: var(--c-red-ink); }
.alert-info    { background: var(--c-surface2); border: 1px solid var(--c-border); color: var(--c-text); text-align: center; justify-content: center; }

/* --- FORMULÁRIO --- */
.form-grid { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }

.col-12 { width: 100%; }
.col-6  { width: calc(50% - .55rem); }
.col-4  { width: calc(33.333% - .74rem); }

@media (max-width: 600px) {
  .col-6, .col-4 { width: 100%; }
}

.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-green-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input,
.form-group select,
.form-group textarea,
#busca_cpf {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .7rem .9rem;
  color: var(--c-white);
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px var(--c-green-lo);
}

.form-group input:disabled { opacity: .55; cursor: not-allowed; }
.form-group input.uppercase { text-transform: uppercase; }

select option { background: var(--c-surface); color: var(--c-white); }

.form-actions {
  width: 100%;
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.auth-footer-text { font-size: .88rem; color: var(--c-muted); }
.auth-footer-text a { color: var(--c-green-text); font-weight: 600; text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

/* Bloco "Minha Equipe" em editar-perfil */
.team-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.team-summary strong { font-size: 1.05rem; display: block; color: var(--c-white); }
.team-summary small { color: var(--c-muted); }

.pill-captain {
  background: var(--c-gold-lo);
  color: var(--c-gold-ink);
  border: 1px solid rgba(232,160,32,.3);
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
}

/* ═══════════════════════════════════════════════════════════
   10. DASHBOARD
════════════════════════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.dash-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .2s, transform .2s;
}
.dash-card:hover { border-color: var(--c-border2); transform: translateY(-2px); }

.dash-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.icon-blue { background: var(--c-blue-lo); border: 1px solid rgba(76,147,240,.3); }
.icon-gold { background: var(--c-gold-lo); border: 1px solid rgba(232,160,32,.3); }
.icon-red  { background: var(--c-red-lo);  border: 1px solid rgba(229,72,77,.3); }

.dash-card h3 { font-size: 1.05rem; color: var(--c-white); margin-bottom: .4rem; }
.dash-card p { color: var(--c-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.3rem; flex-grow: 1; }

.team-badge {
  background: var(--c-gold-lo);
  color: var(--c-gold-ink);
  border: 1px solid rgba(232,160,32,.3);
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: .6rem;
}

.admin-badge {
  background: var(--c-red-lo);
  color: var(--c-red-ink);
  border: 1px solid rgba(229,72,77,.3);
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: .6rem;
}

.border-capitao { border-top: 3px solid var(--c-gold); }
.border-admin   { border-top: 3px solid var(--c-red); }

.dash-history { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════════
   11. TABELAS DE DADOS
════════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table thead tr { border-bottom: 1px solid var(--c-border); text-align: left; }
.data-table th {
  padding: .7rem .6rem;
  color: var(--c-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.data-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--c-divider); color: var(--c-text); vertical-align: middle; }
.data-table tbody tr:hover td { background: var(--c-green-lo); }
.data-table td strong { color: var(--c-white); }
.data-table .col-center { text-align: center; }
.data-table .text-muted-cell { color: var(--c-muted); }
.data-table .empty-row td { text-align: center; color: var(--c-muted); padding: 1.2rem; }

.checkbox-list { display: flex; flex-direction: column; gap: .6rem; }
.checkbox-list label { display: flex; align-items: center; gap: .6rem; cursor: pointer; color: var(--c-text); font-size: .92rem; }

/* ═══════════════════════════════════════════════════════════
   12. PAINEL ADMINISTRATIVO
════════════════════════════════════════════════════════════ */
.admin-page { padding: calc(var(--nav-h) + 2rem) 0 4rem; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
  background: var(--c-surface);
  padding: 1.1rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.admin-header h1 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--c-green-lo);
  color: var(--c-green-text);
  border: 1px solid var(--c-border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-info h3 { font-size: 1.35rem; color: var(--c-white); }
.stat-info p { color: var(--c-muted); font-size: .82rem; }

.tabs-nav {
  display: flex;
  gap: .3rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.8rem;
  overflow-x: auto;
}
.tab-btn, .subtab-btn {
  background: none;
  border: none;
  color: var(--c-muted);
  padding: .7rem 1.1rem;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: .45rem;
  white-space: nowrap;
}
.tab-btn:hover, .subtab-btn:hover { color: var(--c-green-text); }
.tab-btn.active, .subtab-btn.active { color: var(--c-green-text); border-bottom-color: var(--c-green); }

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

.tabs-nav-sub { margin-bottom: 1.4rem; }
.subtab-content { display: none; }
.subtab-content.active { display: block; }

.panel-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.4rem; }
.panel-grid.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .panel-grid, .panel-grid.split-even { grid-template-columns: 1fr; }
}

.admin-panel { padding: 1.6rem; }
.admin-panel h2 { font-size: 1.05rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--c-border); padding-bottom: .5rem; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .55rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--c-bg);
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
}
.checkbox-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--c-text); cursor: pointer; }
.checkbox-item input[type="checkbox"] { accent-color: var(--c-green); }

.select-status {
  padding: .4rem .6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .78rem;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-white);
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; border-bottom: 1px solid var(--c-border); padding-bottom: .7rem; }
.modal-close { background: none; border: none; color: var(--c-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }

.detalhe-secao { margin-bottom: 1.1rem; }
.detalhe-secao h4 { color: var(--c-green-text); text-transform: uppercase; font-size: .82rem; margin-bottom: .4rem; border-bottom: 1px dashed var(--c-border); padding-bottom: .25rem; }
.detalhe-secao p { font-size: .92rem; margin-bottom: .3rem; }
.detalhe-secao ul { padding-left: 1.2rem; font-size: .88rem; }

/* ═══════════════════════════════════════════════════════════
   13. UTILITÁRIOS
════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-justify { text-align: justify; }
.text-muted  { color: var(--c-muted); }
.text-accent { color: var(--c-green-text); }
.text-danger-soft { color: var(--c-red-ink); }

.w-full { width: 100%; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-xs { gap: .4rem; }
.gap-sm { gap: .7rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }

.badge-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }

.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.opacity-locked { opacity: .4; pointer-events: none; }

.empty-state { text-align: center; padding: 5rem 1rem; color: var(--c-muted); }
.empty-state h1 { margin-bottom: 1rem; }
.empty-state .btn { margin-top: 1.5rem; }

/* ─── 14. RESPONSIVIDADE / ACESSIBILIDADE ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .carousel-track, .dash-card { transition: none; }
}

/* ─── CONQUISTAS (página Robores) ────────────────────────── */
.conquistas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.conquista-card { padding: 1.6rem 1.75rem; border-top: 3px solid var(--c-gold); }

.conquista-logo {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--c-border);
}

.conquista-titulo {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: var(--c-white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.conquista-lista { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.conquista-lista li { color: var(--c-text); font-size: .92rem; }
.conquista-lugar {
  font-weight: 700;
  color: var(--c-gold-ink);
}

/* ─── PROGRAMAÇÃO EM CARDS (página AR26) ─────────────────── */
.day-card { padding: 1.6rem; border-top: 3px solid var(--c-blue); }

.day-card-header {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--c-border);
}

.day-card-date { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.3rem; color: var(--c-white); }
.day-card-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-size: .85rem; }

.day-card-lista { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.day-card-lista li { font-size: .9rem; color: var(--c-text); }
.day-hora { display: block; font-weight: 700; color: var(--c-blue-ink); font-size: .8rem; margin-bottom: .15rem; }

/* ─── LINHAS EDITÁVEIS NO PAINEL ADMIN ───────────────────── */
.linha-editavel { cursor: pointer; }
.linha-editavel:hover td { background: var(--c-green-lo); }

/* ─── LIMITE DE VAGAS POR CLASSE (Inscrições) ────────────── */
.opcao-esgotada { opacity: .45; }
.opcao-esgotada input[type="checkbox"] { cursor: not-allowed; }

/* ─── VINCULAR CLASSES: GRID COM LIMITE DE ROBÔS ─────────── */
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.checkbox-grid-limite {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .8rem;
  max-height: 340px;
  overflow-y: auto;
  background: var(--c-bg);
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--c-border);
}

.checkbox-limite-item {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.limite-robos-wrap { display: flex; align-items: center; gap: .6rem; padding-left: 1.5rem; }
.input-limite-robos {
  width: 80px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: .35rem .5rem;
  color: var(--c-text);
  font-size: .85rem;
}
.input-limite-robos:disabled { opacity: .4; }

/* ─── VAGAS POR CLASSE (página pública AR26) ─────────────── */
.vagas-classe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.vaga-classe-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  text-align: center;
}

.vaga-classe-nome { font-size: .85rem; color: var(--c-muted); margin-bottom: .5rem; }
.vaga-classe-numero { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.6rem; margin-bottom: .5rem; }

/* ─── BOTÃO DE DESTAQUE: CHAVEAMENTO AO VIVO (página AR26) ─── */
.btn-chaveamento {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #06220a;
  background: linear-gradient(135deg, #8ee13a, #4e9a18);
  padding: .95rem 2rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(110,202,36,.35), 0 10px 30px rgba(110,202,36,.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  animation: pulso-chaveamento 2.4s ease-in-out infinite;
}

.btn-chaveamento:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(110,202,36,.5), 0 14px 36px rgba(110,202,36,.5);
}

.btn-chaveamento i:first-child { font-size: 1.1rem; }
.btn-chaveamento i:last-child { font-size: .85rem; transition: transform .15s ease; }
.btn-chaveamento:hover i:last-child { transform: translateX(4px); }

@keyframes pulso-chaveamento {
  0%, 100% { box-shadow: 0 0 0 1px rgba(110,202,36,.35), 0 10px 30px rgba(110,202,36,.35); }
  50% { box-shadow: 0 0 0 1px rgba(110,202,36,.55), 0 10px 42px rgba(110,202,36,.6); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-chaveamento { animation: none; }
}

/* ─── CARD DE EVENTO COM AÇÕES (botão do chaveamento + link da página) ─── */
.event-card .event-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.event-card .event-link {
  color: var(--c-green-text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.event-card .event-link:hover { text-decoration: underline; }

/* Variante compacta do botão do chaveamento, para caber dentro de card */
.btn-chaveamento-sm {
  font-size: .92rem;
  padding: .7rem 1.4rem;
  animation: none;
}
