/* ===== Variáveis Globais ===== */
:root {
  --primary: #2f5dff;
  --primary-light: #e6ecff;
  --bg: #f5f7fb;
  --text: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --radius: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 45px rgba(15, 23, 42, 0.15);
}

/* ===== Reset básico ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-sisp-img {
  height: 70px; 
  width: auto;
  display: block;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main {
  flex: 1;
}

.main-inner {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

.page-header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== RODAPÉ ===== */
.footer {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
  background: #ffffff;
  margin-top: auto;
}

/* ===== ROTEIRO E BLOCO DE NOTAS ===== */
.roteiro-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.roteiro-content {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.6;
}

.roteiro-content h2 {
  margin-bottom: 20px;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
}

.roteiro-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: #374151;
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}

.roteiro-content h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #4b5563;
}

.roteiro-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.roteiro-content blockquote {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e3a8a;
}

/* ===== BLOCO DE NOTAS ===== */
.roteiro-notepad {
  position: sticky;
  top: 90px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
}

.roteiro-notepad h3 {
  margin-bottom: 12px;
  color: #374151;
  font-family: "Montserrat", sans-serif;
}

.roteiro-notepad textarea {
  flex: 1;
  width: 100%;
  resize: none;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s;
  background-color: #fcfcfc;
}

.roteiro-notepad textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-color: #ffffff;
}

/* Botão de Copiar */
.notepad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notepad-header h3 {
  margin-bottom: 0; 
}

.btn-copiar {
  padding: 6px 12px;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copiar:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

.btn-copiar.sucesso {
  background-color: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ===== BOTÕES PADRÃO (ESTILO COBOM 193) ===== */
.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

/* Estilo Base dos Botões de Ação/Filtro */
.btn-step {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Botões de Avançar / Ativos */
.btn-next {
  background-color: #0ea5e9; 
  color: white;
}

.btn-next:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
}

/* Botões de Voltar / Inativos */
.btn-back {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-back:hover {
  background-color: #e2e8f0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* ===== PERGUNTAS INTERATIVAS (SIM/NÃO E TEXTO) ===== */
.interactive-q {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.q-text {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.q-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sn, .btn-ok {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sn.sim { background: #dcfce7; color: #166534; }
.btn-sn.sim:hover { background: #bbf7d0; transform: translateY(-1px); }

.btn-sn.nao { background: #fee2e2; color: #991b1b; }
.btn-sn.nao:hover { background: #fecaca; transform: translateY(-1px); }

.q-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.q-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-ok {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
}

.btn-ok:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
}

/* ===== ANIMAÇÕES E RESPONSIVIDADE ===== */
.roteiro-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .roteiro-container {
    grid-template-columns: 1fr;
  }
  .roteiro-notepad {
    position: static;
    height: 400px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}