/* style.css — Bolão Neo Cup 2026 (versão Django) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:      #006633;
  --verde-esc:  #004d00;
  --verde-clar: #E8F5E9;
  --amarelo:    #FFD700;
  --azul-esc:   #1565C0;
  --azul-clar:  #E3F2FD;
  --vermelho:   #C62828;
  --radius-md:  8px;
  --radius-lg:  12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f0f4f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
  color: #1a1a1a;
}

.container { width: 100%; max-width: 480px; }

/* ── HEADER ─────────────────────────── */
.header {
  background: var(--verde);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 18px 20px 14px;
}
.header-top { display: flex; align-items: center; justify-content: space-between; }
.header h1  { color: var(--amarelo); font-size: 18px; font-weight: 500; }
.header p   { color: #CCFFCC; font-size: 12px; margin-top: 4px; }
.nv-badge {
  background: rgba(255,255,255,0.15);
  color: var(--amarelo);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255,215,0,0.4);
}

/* ── JOGO BANNER ────────────────────── */
.jogo-banner {
  background: var(--verde-esc);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.jogo-info   { color: #CCFFCC; font-size: 11px; }
.jogo-titulo { color: #fff; font-size: 14px; font-weight: 500; margin-top: 4px; }
.status-badge {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: var(--radius-md);
  background: var(--amarelo); color: var(--verde-esc);
}
.status-badge.fechado { background: var(--vermelho); color: #fff; }

/* ── BODY ───────────────────────────── */
.body {
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── USER BAR ───────────────────────── */
.user-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 0.5px solid #eee;
}
.user-email  { font-size: 12px; color: var(--verde); font-weight: 500; }
.logout-link { font-size: 11px; color: #999; text-decoration: none; }
.logout-link:hover { color: var(--vermelho); }

/* ── TABS ───────────────────────────── */
.tabs { display: flex; border-bottom: 0.5px solid #eee; }
.tab-btn {
  flex: 1; padding: 12px 4px;
  font-size: 12px; text-align: center; text-decoration: none;
  color: #888; border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab-btn:hover  { color: var(--verde); }
.tab-btn.active { color: var(--verde); border-bottom-color: var(--verde); font-weight: 500; }

/* ── SECTION ────────────────────────── */
.section { padding: 20px; }
.card-box { background: #f9f9f9; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; }

/* ── MENSAGENS ──────────────────────── */
.msg {
  border-radius: var(--radius-md); padding: 12px;
  font-size: 13px; text-align: center; margin-bottom: 12px;
}
.msg-success { background: var(--verde-clar); border: 0.5px solid #A5D6A7; color: #2E7D32; }
.msg-error   { background: #FDECEA; border: 0.5px solid #F5C6C2; color: var(--vermelho); }
.msg-info    { background: var(--azul-clar); border: 0.5px solid #90CAF9; color: var(--azul-esc); }
.msg-warning { background: #FFF8E1; border: 0.5px solid #FFE082; color: #B8860B; }

/* ── FORM ───────────────────────────── */
label { font-size: 12px; color: #666; display: block; margin-bottom: 6px; line-height: 1.5; }
input[type="text"], input[type="email"], input[type="number"], input[type="datetime-local"] {
  border: 0.5px solid #ccc; border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 14px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 2px rgba(0,102,51,0.12); }
input:disabled { background: #f5f5f5; color: #aaa; cursor: not-allowed; }

/* ── PLACAR ─────────────────────────── */
.placar-wrap { display: flex; align-items: center; gap: 12px; justify-content: center; }
.time-col { text-align: center; }
.time-flag { font-size: 26px; display: block; margin-bottom: 4px; }
.time-name { font-size: 12px; font-weight: 500; color: #333; margin-bottom: 8px; }
.placar-input { width: 60px !important; height: 60px; text-align: center; font-size: 26px; font-weight: 500; padding: 0; }
.vs-sep { font-size: 16px; color: #bbb; margin-top: 24px; }

.pill { font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.pill-green { background: var(--verde-clar); color: #2E7D32; }
.pill-blue  { background: var(--azul-clar); color: var(--azul-esc); }

/* ── BÔNUS ──────────────────────────── */
.bonus-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 0.5px solid #eee; }
.bonus-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bonus-input { width: 80px !important; text-align: center; font-size: 16px; font-weight: 500; }

/* ── BOTÕES ─────────────────────────── */
.btn-primary {
  width: 100%; padding: 12px;
  background: var(--verde); color: var(--amarelo);
  border: none; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover    { background: var(--verde-esc); }
.btn-primary:disabled { background: #ccc; color: #888; cursor: not-allowed; }

.palpite-anterior {
  background: #f5f5f5; border-radius: var(--radius-md);
  padding: 10px 14px; font-size: 12px; color: #666; margin-bottom: 12px;
}

/* ── LOGIN ──────────────────────────── */
.login-inner { padding: 12px 4px; }
.login-icon  { font-size: 36px; display: block; text-align: center; margin-bottom: 10px; }

/* ── RANKING ────────────────────────── */
.ranking-header {
  display: grid; grid-template-columns: 36px 1fr 48px 48px; gap: 8px;
  font-size: 11px; color: #999; padding: 0 8px 10px;
  border-bottom: 0.5px solid #eee; margin-bottom: 4px;
}
.ranking-row {
  display: grid; grid-template-columns: 36px 1fr 48px 48px; gap: 8px;
  align-items: center; padding: 10px 8px; border-radius: var(--radius-md); margin-bottom: 3px;
}
.ranking-row:hover { background: #f9f9f9; }
.ranking-row.meu   { background: #f0fff5; }
.pos-1 { color: #B8860B; }
.pos-2 { color: #888; }
.pos-3 { color: #CD7F32; }
.voce  { font-size: 10px; color: #888; font-weight: 400; }
.hint  { font-size: 12px; color: #888; background: #f9f9f9; border-radius: var(--radius-md); padding: 8px 12px; margin-bottom: 10px; }

/* ── HISTÓRICO ──────────────────────── */
.historico-card { background: #f9f9f9; border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.historico-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.historico-body { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: #666; }
.pts-badge { background: var(--verde-clar); color: #2E7D32; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-md); font-weight: 500; }
.aguardando { font-size: 11px; color: #888; padding: 2px 8px; border-radius: var(--radius-md); border: 0.5px solid #ddd; }

/* ── REGRAS ─────────────────────────── */
.regras-card { background: #f9f9f9; border-radius: var(--radius-lg); padding: 16px; font-size: 13px; color: #555; line-height: 2; }
.rc-title { font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }

/* ── ADMIN ──────────────────────────── */
.admin-intro { font-size: 12px; color: #666; margin-bottom: 16px; line-height: 1.6; }
.admin-jogo-card { border: 0.5px solid #e0e0e0; border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.admin-jogo-header {
  background: var(--verde-esc); color: #fff; padding: 10px 14px;
  font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.admin-jogo-body { padding: 14px; background: #fff; }
.admin-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.admin-row label { margin-bottom: 0; }
.admin-input { width: 64px !important; text-align: center; font-size: 16px; font-weight: 500; }
.admin-dt { width: auto !important; font-size: 13px; }
.vs { font-size: 13px; color: #aaa; }
.divider { border: none; border-top: 0.5px solid #eee; margin: 12px 0; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 500; margin-left: 4px; }
.badge-current { background: var(--amarelo); color: var(--verde-esc); }
.badge-result  { background: var(--verde-clar); color: #2E7D32; }
.badge-closed  { background: var(--vermelho); color: #fff; }
.badge-open    { background: rgba(255,255,255,0.2); color: #fff; border: 0.5px solid rgba(255,255,255,0.4); }

.btn-salvar  { padding: 8px 14px; background: var(--verde); color: var(--amarelo); border: none; border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; }
.btn-salvar:hover { background: var(--verde-esc); }
.btn-current { padding: 8px 14px; background: #fff; color: var(--verde); border: 0.5px solid var(--verde); border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; }
.btn-current:hover { background: var(--verde-clar); }

.admin-sec { font-size: 12px; font-weight: 500; color: #1a1a1a; margin-bottom: 10px; }
.admin-flag { width: 52px !important; text-align: center; font-size: 16px; padding: 8px 4px; }
.result-locked { background: var(--verde-clar); border-radius: var(--radius-md); padding: 10px 12px; font-size: 13px; color: #2E7D32; margin-bottom: 10px; line-height: 1.5; }

.btn-reset { padding: 8px 14px; background: #fff; color: var(--vermelho); border: 0.5px solid var(--vermelho); border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; }
.btn-reset:hover { background: #FDECEA; }
.btn-reset-all { width: 100%; padding: 10px; background: var(--vermelho); color: #fff; border: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-reset-all:hover { background: #a31f1f; }
