/* ===================================================
   assets/css/style.css — Sistema de Inscrição em Cursos
   =================================================== */

/* ── Google Fonts ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Variáveis de Design ──────────────────────────── */
:root {
  --color-primary:       #1d4a82;
  --color-primary-dark:  #0f2f55;
  --color-primary-light: #e8edf3;
  --color-accent:        #3a7bd5;
  --color-accent-hover:  #2c63b8;
  --color-success:       #16a34a;
  --color-success-bg:    #dcfce7;
  --color-danger:        #dc2626;
  --color-danger-bg:     #fee2e2;
  --color-warning:       #d97706;
  --color-warning-bg:    #fef3c7;
  --color-info:          #0284c7;
  --color-info-bg:       #e0f2fe;

  --bg-page:    #f0f4f8;
  --bg-card:    #ffffff;
  --bg-sidebar: #0f2f55;

  --text-primary:   #1a2332;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-white:     #ffffff;

  --border-color:   #e2e8f0;
  --border-radius:  10px;
  --border-radius-lg: 16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);
  --shadow-glow: 0 0 0 3px rgba(58,123,213,.25);

  --font-main:  'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }
img, svg { max-width: 100%; display: block; }

/* ── Layout Base ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════
   PAINEL ADMINISTRATIVO
═══════════════════════════════════════════════════ */

/* ── Layout Admin ─────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-sidebar);
  color: var(--text-white);
  grid-row: 1 / -1;
  padding: 32px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.admin-logo h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.admin-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.admin-nav { flex: 1; padding: 0 12px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--border-radius);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.admin-nav a .nav-icon { font-size: 1.15rem; flex-shrink: 0; }
.admin-nav .nav-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 12px 0;
}

/* ── Main Content ─────────────────────────────────── */
.admin-main {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-content {
  padding: 32px;
  flex: 1;
}

/* ── Stat Cards ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-icon.green  { background: var(--color-success-bg); color: var(--color-success); }
.stat-icon.amber  { background: var(--color-warning-bg); color: var(--color-warning); }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-info .stat-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-info .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Card Panel ───────────────────────────────────── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.panel-body { padding: 24px; }

/* ── Tabela ───────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  background: var(--bg-page);
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
tbody tr { transition: var(--transition); border-bottom: 1px solid var(--border-color); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--color-primary-light); }
tbody td { padding: 14px 16px; vertical-align: middle; }

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  gap: 5px;
}
.badge-ativo   { background: var(--color-success-bg); color: var(--color-success); }
.badge-inativo { background: #f3f4f6; color: var(--text-muted); }
.badge-count   { background: var(--color-primary-light); color: var(--color-primary); }

/* ── Botões ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(58,123,213,.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}
.btn-danger {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}
.btn-success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.btn-sm { padding: 5px 12px; font-size: .82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Formulário Admin ─────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .col-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
label.form-label .req {
  color: var(--color-danger);
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
  appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}
.form-control.is-invalid { border-color: var(--color-danger); }
.form-hint { font-size: .78rem; color: var(--text-muted); }
.form-error { font-size: .78rem; color: var(--color-danger); display: none; }
.form-control.is-invalid + .form-error { display: block; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── Link Copy Box ────────────────────────────────── */
.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-size: .82rem;
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  overflow: hidden;
}
.link-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-box .btn-copy {
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
}
.link-box .btn-copy:hover { background: var(--color-primary-dark); }
.link-box .btn-copy.copied { background: var(--color-success); }

/* ── Alert ────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--border-radius);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 4px solid;
}
.alert-success { background: var(--color-success-bg); color: #166534; border-color: var(--color-success); }
.alert-danger   { background: var(--color-danger-bg); color: #991b1b; border-color: var(--color-danger); }
.alert-info     { background: var(--color-info-bg); color: #075985; border-color: var(--color-info); }
.alert-warning  { background: var(--color-warning-bg); color: #92400e; border-color: var(--color-warning); }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.4rem; line-height: 1;
  padding: 2px 6px; border-radius: 6px; transition: var(--transition);
}
.modal-close:hover { background: var(--bg-page); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ══════════════════════════════════════════════════
   FORMULÁRIO DO ALUNO (inscrever.php / obrigado.php)
═══════════════════════════════════════════════════ */

.form-page {
  background: linear-gradient(135deg, #0f2f55 0%, #1d4a82 40%, #3a7bd5 100%);
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-page-header {
  width: 100%;
  max-width: 680px;
  margin-bottom: 0;
}
.form-banner {
  background: linear-gradient(135deg, #1d4a82, #3a7bd5);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 36px 40px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-left: 6px solid #f0c040;
}
.form-banner::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.form-banner .badge-curso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.form-banner h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.form-banner p  { font-size: .9rem; opacity: .9; line-height: 1.6; max-width: 520px; }
.form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.form-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  opacity: .9;
}

.form-card {
  background: var(--bg-card);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  padding: 36px 40px 40px;
}

.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-top: 28px;
}
.form-section-title:first-child { margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .col-full { grid-column: 1 / -1; }

/* Campo especial para nome certificado */
.field-certificado {
  background: linear-gradient(to right, #fff7ed, #fff);
  border: 1.5px solid #fbbf24;
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-top: 4px;
}
.field-certificado .fc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 10px;
}
.field-certificado .form-control { border-color: #fbbf24; }
.field-certificado .form-control:focus { box-shadow: 0 0 0 3px rgba(251,191,36,.25); }

/* Checkbox customizado */
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-group input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-label { font-size: .88rem; color: var(--text-secondary); line-height: 1.5; }
.checkbox-label strong { color: var(--text-primary); }

/* Ciência box */
.ciencia-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 16px 18px;
  font-size: .88rem;
  color: var(--color-primary-dark);
  line-height: 1.6;
}

/* Submit */
.form-submit-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.btn-submit {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  border: none;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  letter-spacing: .01em;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(29,74,130,.4);
}
.btn-submit:active { transform: none; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Obrigado ──────────────────────────────────────── */
.obrigado-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  padding: 48px 40px;
  text-align: center;
}
.obrigado-icon {
  width: 80px; height: 80px;
  background: var(--color-success-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.obrigado-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.obrigado-card p  { font-size: .95rem; color: var(--text-secondary); line-height: 1.7; }
.resumo-box {
  background: var(--bg-page);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 28px 0;
  text-align: left;
}
.resumo-box .resumo-item {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.resumo-box .resumo-item:last-child { border-bottom: none; }
.resumo-item .ri-label { color: var(--text-muted); font-weight: 600; }
.resumo-item .ri-value { color: var(--text-primary); font-weight: 500; max-width: 60%; text-align: right; }

/* ── Página de erro / vazio ───────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; }

/* ── Responsivo ───────────────────────────────────── */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    grid-row: 1;
  }
  .admin-logo { padding: 0 12px 0 0; border-bottom: none; border-right: 1px solid rgba(255,255,255,.1); margin: 0 12px 0 0; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
  .admin-nav a { padding: 7px 12px; font-size: .82rem; }
  .admin-content { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-card, .form-banner { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .obrigado-card { padding: 32px 20px; }
  .admin-topbar { padding: 14px 20px; }
  .panel-body { padding: 16px; }
}

/* ── Utilidades ───────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-danger { color: var(--color-danger); }
.text-success{ color: var(--color-success); }
.fw-bold   { font-weight: 700; }
.fw-medium { font-weight: 500; }
.mt-1 { margin-top: 4px;  }
.mt-2 { margin-top: 8px;  }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.justify-between { justify-content: space-between; }

/* ── Pesquisa de Satisfação e Certificados (Novos Estilos) ───────────── */

/* Cabeçalho Laranja da Organização (Mockup) */
.survey-section-header {
  background: #f97316; /* Laranja conforme mockup */
  color: #ffffff;
  padding: 18px 24px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.survey-section-subheader {
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border: 1px solid var(--border-color);
  border-top: none;
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Card de Pergunta da Pesquisa */
.survey-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.survey-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.survey-card .question-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: block;
}
.survey-card .question-title .req {
  color: var(--color-danger);
  margin-left: 3px;
}

/* Escala Radio Grid (1 a 5) */
.radio-scale-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.scale-label-left, .scale-label-right {
  font-size: .9rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 90px;
}
.scale-label-left { text-align: right; }
.scale-label-right { text-align: left; }

.scale-options {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.scale-option span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.scale-option input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: #f97316; /* Laranja ativo */
  cursor: pointer;
}

/* Escala de Recomendação (0 a 10) */
.recommend-scale-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.recommend-scale-options {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  flex-wrap: wrap;
  gap: 8px;
}
.recommend-scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
  min-width: 32px;
}
.recommend-scale-option span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.recommend-scale-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #f97316;
  cursor: pointer;
}
.recommend-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0 4px;
}

/* Campo de Resposta Textual (Sua resposta) */
.survey-textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--border-color);
  padding: 8px 4px;
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--text-primary);
  background: transparent;
  transition: var(--transition);
  resize: vertical;
  min-height: 48px;
}
.survey-textarea:focus {
  outline: none;
  border-bottom-color: #f97316;
}

/* Agradecimento estilizado no card */
.survey-agradecimento-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.survey-agradecimento-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  text-align: left;
}
.survey-agradecimento-text p {
  margin-bottom: 20px;
}
.survey-agradecimento-text p:last-child {
  margin-bottom: 0;
}

/* Área do Aluno: Cards de Inscrição */
.aluno-curso-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.aluno-curso-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.aluno-curso-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.aluno-curso-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-secondary);
}
.aluno-curso-presence {
  background: var(--color-primary-light);
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
  min-width: 120px;
}
.aluno-curso-presence .pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.aluno-curso-presence .lbl {
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Layout de Certificado para Impressão */
.certificate-container {
  background: #ffffff;
  color: #2c3e50;
  padding: 60px;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  border: 20px double #c5a880; /* Borda dupla dourada clássica */
  position: relative;
  box-shadow: var(--shadow-lg);
  font-family: 'Times New Roman', Georgia, serif;
}
.certificate-inner {
  border: 2px solid #c5a880;
  padding: 40px;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle, rgba(247,245,240,0.4) 0%, rgba(255,255,255,1) 100%);
}
.certificate-header {
  margin-bottom: 30px;
}
.certificate-logo-placeholder {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.certificate-institution {
  font-size: .95rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1a2530;
  font-family: var(--font-main);
  line-height: 1.4;
}
.certificate-title {
  font-size: 3rem;
  font-weight: 700;
  color: #8c6d3e;
  margin: 30px 0;
  font-family: 'Georgia', serif;
  letter-spacing: .05em;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}
.certificate-body {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 30px auto;
  max-width: 800px;
  text-align: justify;
  text-align-last: center;
}
.certificate-body strong {
  color: #1a2530;
  font-weight: bold;
}
.certificate-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
  gap: 30px;
}
.signature-box {
  width: 250px;
  text-align: center;
  font-family: var(--font-main);
  font-size: .8rem;
}
.signature-line {
  border-top: 1px solid #94a3b8;
  margin-bottom: 8px;
}
.signature-title {
  font-weight: bold;
  color: var(--text-primary);
}
.signature-sub {
  color: var(--text-muted);
}
.certificate-footer {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-main);
  font-size: .75rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
}
.certificate-auth-code {
  font-family: monospace;
}

/* Estilos de Impressão */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .form-page, .admin-layout, .admin-sidebar, .admin-main, .admin-topbar, .btn, .alert, .survey-agradecimento-box button, header, footer {
    display: none !important;
  }
  .certificate-container {
    border: 15px double #c5a880 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 30px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    page-break-inside: avoid;
  }
  @page {
    size: A4 landscape;
    margin: 0;
  }
}

/* Dashboard de Pesquisas */
.nps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.nps-value {
  font-size: 3rem;
  font-weight: 800;
  margin: 10px 0;
}
.nps-value.nps-excellent { color: var(--color-success); }
.nps-value.nps-good { color: var(--color-info); }
.nps-value.nps-regular { color: var(--color-warning); }
.nps-value.nps-bad { color: var(--color-danger); }

.nps-labels {
  display: flex;
  justify-content: space-around;
  font-size: .8rem;
  color: var(--text-secondary);
}
.nps-label-item span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.report-bar-item {
  margin-bottom: 16px;
}
.report-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.report-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--bg-page);
  border-radius: 5px;
  overflow: hidden;
}
.report-bar-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 5px;
}
.report-bar-fill.fill-green { background-color: var(--color-success); }

/* Ajustes gerais de layout */
.w-100 { width: 100%; }
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }
.card-header-orange { border-top: 5px solid #f97316; }

/* ══════════════════════════════════════════════════
   PESQUISA DE SATISFAÇÃO — Formulário (form-page)
══════════════════════════════════════════════════ */
.form-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a4a7a 60%, #2562b0 100%);
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}
.form-banner {
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
  border: 1px solid rgba(255,255,255,.15);
  padding: 32px 36px 28px;
  color: #fff;
}
.form-banner h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 10px 0 6px;
}
.form-banner p { font-size: .92rem; opacity: .85; }
.badge-curso {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.form-card {
  background: var(--bg-card);
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* Seção da pesquisa */
.survey-section-header {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.survey-section-subheader {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.survey-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fdfdfd;
  transition: border-color .2s, box-shadow .2s;
}
.survey-card:hover { border-color: var(--color-accent); box-shadow: 0 2px 12px rgba(58,123,213,.08); }
.question-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 14px;
}
.survey-textarea {
  width: 100%;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 14px;
  font-size: .9rem;
  font-family: var(--font-main, 'Inter', sans-serif);
  min-height: 90px;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
  color: var(--text-primary);
  background: var(--bg-card);
}
.survey-textarea:focus { border-color: var(--color-accent); }

/* Escala 1-5 */
.radio-scale-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.scale-label-left,
.scale-label-right {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.scale-options {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.scale-option span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.scale-option input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Escala NPS 0-10 */
.recommend-scale-container { margin-top: 10px; }
.recommend-scale-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.recommend-scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.recommend-scale-option span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.recommend-scale-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.recommend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Botão Enviar */
.form-submit-wrap {
  margin-top: 28px;
  text-align: center;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(58,123,213,.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58,123,213,.45);
}

/* Agradecimento */
.survey-agradecimento-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--border-radius-lg);
  padding: 32px 36px;
  color: #fff;
  backdrop-filter: blur(10px);
}
.survey-agradecimento-text p {
  font-size: .95rem;
  opacity: .92;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════
   CERTIFICADO IMPRIMÍVEL
══════════════════════════════════════════════════ */
.certificate-container {
  width: 100%;
  max-width: 860px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  border-radius: 8px;
  overflow: hidden;
}
.certificate-inner {
  border: 14px solid transparent;
  border-image: linear-gradient(135deg, #c8aa58 0%, #e8d5a0 40%, #c8aa58 60%, #a08030 100%) 1;
  padding: 50px 60px 40px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.certificate-header {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #c8aa58;
  padding-bottom: 18px;
}
.certificate-logo-placeholder {
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.certificate-institution {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.5;
}
.certificate-title {
  font-size: 2.6rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: .15em;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin: 10px 0;
}
.certificate-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.certificate-body p {
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}
.certificate-body strong {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  font-weight: 800;
}
.certificate-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  gap: 30px;
}
.signature-box {
  text-align: center;
  flex: 1;
}
.signature-line {
  width: 80%;
  height: 1.5px;
  background: #333;
  margin: 0 auto 8px;
}
.signature-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.signature-sub {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  font-size: .78rem;
  color: var(--text-secondary);
  border-top: 1px solid #eee;
  padding-top: 14px;
}
.certificate-auth-code {
  font-family: monospace;
  font-size: .74rem;
  color: var(--text-muted);
}
@media print {
  .no-print { display: none !important; }
  body > div { background: #fff !important; }
  .certificate-container {
    box-shadow: none;
    max-width: 100%;
    margin: 0;
  }
  .certificate-inner {
    padding: 30px 40px;
  }
}

/* ══════════════════════════════════════════════════
   ÁREA DO ALUNO — Busca CPF + Cards de Cursos
══════════════════════════════════════════════════ */
.cpf-mask { letter-spacing: .06em; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-success {
  background: var(--color-success);
  color: #fff;
  border: none;
}
.btn-success:hover { background: #15803d; }

.aluno-curso-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--bg-card);
  transition: box-shadow .2s;
  flex-wrap: wrap;
}
.aluno-curso-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.aluno-curso-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.aluno-curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-secondary);
}
.aluno-curso-presence {
  text-align: center;
  min-width: 80px;
}
.aluno-curso-presence .pct {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.aluno-curso-presence .lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   PAINEL DE PESQUISAS — NPS Card e Barras de Report
══════════════════════════════════════════════════ */
.nps-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  background: var(--bg-card);
  text-align: center;
}
.nps-value {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 12px 0;
}
.nps-excellent { color: var(--color-success); }
.nps-good      { color: #2563eb; }
.nps-regular   { color: var(--color-warning); }
.nps-bad       { color: var(--color-danger); }
.nps-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  gap: 8px;
}
.nps-label-item {
  font-size: .75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}
.nps-label-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.obrigado-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}
.req { color: var(--color-danger); }

/* ── Controle de Sidebar Colapsável ──────────────── */
.admin-layout {
  transition: grid-template-columns .25s cubic-bezier(.4,0,.2,1);
}
.admin-sidebar {
  transition: width .25s ease, padding .25s ease, opacity .2s ease;
}
.admin-layout.sidebar-collapsed {
  grid-template-columns: 0px 1fr !important;
}
.admin-layout.sidebar-collapsed .admin-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  border: none !important;
}
.btn-toggle-sidebar {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: var(--border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}
.btn-toggle-sidebar:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

