/* ============================================================
   RHOMMA CONSULTORIA — DESIGN SYSTEM
   Identidade visual oficial · rhommaconsultoria.com.br
   Navy #0D1B2E · Creme #F0ECE4 · Dourado #C9A84C
   ------------------------------------------------------------
   Este arquivo carrega PRIMEIRO. Depois dele vem o CSS
   específico da página (login.css / painel.css / admin.css).
   ============================================================ */

/* ── 1. TOKENS ──────────────────────────────────────────── */
:root {
  /* Navy — cor institucional (logo, navegação, textos) */
  --navy-900: #08121F;
  --navy-800: #0D1B2E;
  --navy-700: #122A4A;
  --navy-600: #1B3A5C;
  --navy-500: #2C4A6B;
  --navy-400: #3D4F66;
  --navy-300: #6B7A8C;
  --navy-200: #9AA5B2;

  /* Creme / superfícies claras */
  --cream:      #F0ECE4;   /* fundo da página (igual ao site) */
  --cream-100:  #F7F4EE;   /* superfície levemente afundada  */
  --cream-200:  #E7E1D6;   /* superfície afundada            */
  --white:      #FFFFFF;   /* cartões                        */
  --line:       #E2DCD1;   /* divisórias                     */
  --line-soft:  #EDE8DF;

  /* Dourado — acento da marca */
  --gold-solid: #C9A84C;   /* preenchimentos e botões        */
  --gold-light: #E8C97A;   /* hover / brilho                 */
  --gold:       #96762A;   /* dourado legível como TEXTO     */
  --gold-dim:   #7C6122;   /* labels em caixa alta           */
  --gold-tint:  #FAF5E7;   /* fundo de destaque suave        */
  --gold-line:  #E4D6AC;

  /* Texto */
  --text:       #0D1B2E;
  --text-mid:   #3D4F66;
  --text-dim:   #6B7A8C;
  --text-onnavy:      #EEF2F7;
  --text-onnavy-dim:  #94A6BC;

  /* Semânticos */
  --success:      #1F7A55;
  --success-bg:   #E6F3ED;
  --success-line: #B9DCCB;
  --warn:         #A96C12;
  --warn-bg:      #FBF1E1;
  --warn-line:    #EBD6AF;
  --error:        #B3261E;
  --error-bg:     #FBEAE9;
  --error-line:   #EFC7C4;
  --ssi:          #1F5C90;   /* azul LinkedIn / SSI          */
  --ssi-light:    #3E82BE;
  --ssi-bg:       #ECF3FA;
  --ssi-line:     #C4DAEE;
  --purple:       #6B4C94;   /* softskills                   */
  --purple-bg:    #F2EDF8;
  --purple-line:  #D9CBEC;

  /* Forma e profundidade */
  --r:    3px;   /* raio padrão (a marca é angular)          */
  --r-lg: 5px;
  --sh-1: 0 1px 2px rgba(13,27,46,.05);
  --sh-2: 0 2px 8px rgba(13,27,46,.06), 0 1px 2px rgba(13,27,46,.04);
  --sh-3: 0 12px 32px rgba(13,27,46,.10), 0 2px 8px rgba(13,27,46,.06);
  --sh-4: 0 24px 60px rgba(13,27,46,.18);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ── Aliases legados ──────────────────────────────────────
     Mantidos para que os estilos inline herdados do tema
     anterior continuem coerentes no tema claro.            */
  --black: #0D1B2E;    /* texto sobre dourado */
  --dark:  #FFFFFF;    /* superfície de navegação */
  --dark2: #FFFFFF;    /* superfície de cartão */
  --dark3: #F0ECE4;    /* superfície afundada */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: rgba(201,168,76,.28); color: var(--navy-800); }

:focus-visible {
  outline: 2px solid var(--gold-solid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Barras de rolagem discretas */
* { scrollbar-width: thin; scrollbar-color: var(--cream-200) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--cream-200); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--navy-200); background-clip: content-box; }

/* ── 3. TIPOGRAFIA DA MARCA ─────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

/* Micro-label em caixa alta — assinatura tipográfica Rhomma */
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ── 4. CARTÃO ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-hdr {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card-tit {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.card-tag {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── 5. BOTÕES ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-solid);
  color: var(--navy-800);
  border: 1px solid var(--gold-solid);
  border-radius: var(--r);
  padding: 11px 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 6px 18px rgba(201,168,76,.32); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-navy { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); box-shadow: 0 6px 18px rgba(13,27,46,.24); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 18px;
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--gold-solid); color: var(--gold); background: var(--gold-tint); }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  padding: 7px 13px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-sm:hover { background: var(--gold-solid); border-color: var(--gold-solid); color: var(--navy-800); }

.btn-del {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--error-line);
  border-radius: var(--r);
  padding: 7px 11px;
  color: var(--error);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-del:hover { background: var(--error-bg); border-color: var(--error); }

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 7px 13px;
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-dl:hover { border-color: var(--gold-solid); color: var(--gold); background: var(--gold-tint); }

/* ── 6. CAMPOS DE FORMULÁRIO ────────────────────────────── */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 15px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--navy-200); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy-200); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-solid);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

.field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.field input[type="file"] { padding: 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; background: var(--cream-100); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7A8C' stroke-width='2.5'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

/* ── 7. BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.b-presencial     { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.b-online         { background: var(--gold-tint);  color: var(--gold);    border-color: var(--gold-line); }
.b-mentoria       { background: var(--purple-bg);  color: var(--purple);  border-color: var(--purple-line); }
.b-todos          { background: var(--cream-100);  color: var(--text-dim);border-color: var(--line); }
.b-administrador  { background: var(--navy-800);   color: var(--gold-light); border-color: var(--navy-800); }
.b-ativo          { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.b-inativo        { background: var(--error-bg);   color: var(--error);   border-color: var(--error-line); }
.b-ssi            { background: var(--ssi-bg);     color: var(--ssi);     border-color: var(--ssi-line); }

.status-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.s-pendente     { background: var(--cream-100);  color: var(--text-dim); border-color: var(--line); }
.s-em_andamento { background: var(--warn-bg);    color: var(--warn);     border-color: var(--warn-line); }
.s-concluido,
.s-concluida    { background: var(--success-bg); color: var(--success);  border-color: var(--success-line); }

/* ── 8. INDICADORES (STAT) ──────────────────────────────── */
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold-solid);
}
.stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.stat-lbl {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── 9. BARRA DE PROGRESSO ──────────────────────────────── */
.prog-mini { display: flex; align-items: center; gap: 9px; }
.prog-bar {
  flex: 1;
  height: 5px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
  min-width: 50px;
}
.prog-fill { height: 100%; background: var(--gold-solid); border-radius: 999px; transition: width .5s ease; }

/* ── 10. ESTADO VAZIO ───────────────────────────────────── */
.empty {
  padding: 52px 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* ── 11. TABELAS ────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--cream-100);
  padding: 12px 20px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream-100); }
td { padding: 14px 20px; font-size: 13px; color: var(--text); vertical-align: middle; }

/* ── 12. ALERTAS ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--r);
  padding: 13px 18px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-ok  { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.alert-err { background: var(--error-bg);   color: var(--error);   border-color: var(--error-line); }

/* ── 13. UTILITÁRIOS ────────────────────────────────────── */
.row       { display: flex; align-items: center; gap: 10px; }
.row-end   { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.grow      { flex: 1; }
.hide      { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
