/* ==========================================================================
   Guia de Capacitação - Módulo de Positivação LSLOG
   Estilos Globais, Componentes e Design System
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #0b0f19;
  --bg-sidebar: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1c2940;
  --bg-surface: #1e293b;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  /* Accent Colors */
  --brand-cyan: #38bdf8;
  --brand-blue: #2563eb;
  --brand-indigo: #6366f1;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  
  /* Dimensions & Spacing */
  --header-height: 64px;
  --sidebar-width: 320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Tela de Bloqueio / Erro de Autenticação (Gatekeeper)
   ========================================================================== */

.auth-error-screen {
  position: fixed;
  inset: 0;
  background-color: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}

.auth-error-card {
  background-color: #111827;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-error-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.auth-error-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-error-hint {
  margin-top: 8px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout Principal
   ========================================================================== */

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   Header Superior
   ========================================================================== */

.app-header {
  height: var(--header-height);
  background-color: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Progress Bar */
.header-center {
  flex: 1;
  max-width: 440px;
  margin: 0 24px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.progress-label strong {
  color: var(--brand-cyan);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--success));
  border-radius: 999px;
  transition: width var(--transition-normal);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botões */
.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.btn-link:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Estrutura Central (Sidebar + Main Content)
   ========================================================================== */

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition-normal), transform var(--transition-normal);
  z-index: 50;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search svg {
  position: absolute;
  left: 28px;
  color: var(--text-muted);
  pointer-events: none;
}

.sidebar-search input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 36px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.sidebar-search input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 4px 10px 10px 10px;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  border: 1px solid transparent;
  user-select: none;
}

.topic-nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.topic-nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.06));
  color: var(--brand-cyan);
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 500;
}

.topic-nav-num {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 26px;
  text-align: center;
}

.topic-nav-item.active .topic-nav-num {
  background-color: var(--brand-cyan);
  color: var(--text-inverse);
}

.topic-nav-info {
  flex: 1;
  min-width: 0;
}

.topic-nav-title {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.topic-nav-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.topic-nav-status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.topic-nav-item.completed .topic-nav-status {
  background-color: var(--success);
  border-color: var(--success);
  color: #fff;
}

.topic-nav-status svg {
  display: none;
}

.topic-nav-item.completed .topic-nav-status svg {
  display: block;
}

/* Subitens na Sidebar (Indentados, estilo numeração de documento) */
.topic-nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 32px;
  margin-left: 10px;
  margin-top: 2px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  border: 1px solid transparent;
  user-select: none;
  position: relative;
}

.topic-nav-subitem::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 50%;
  width: 10px;
  border-left: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.topic-nav-subitem:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.topic-nav-subitem.active {
  background: rgba(56, 189, 248, 0.08);
  color: var(--brand-cyan);
  border-color: rgba(56, 189, 248, 0.25);
  font-weight: 500;
}

.topic-nav-sub-num {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
  font-family: monospace;
}

.topic-nav-subitem.active .topic-nav-sub-num {
  background-color: var(--brand-cyan);
  color: var(--text-inverse);
}

.topic-nav-sub-title {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Área Principal (Main Content)
   ========================================================================== */

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
  position: relative;
  scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
  width: 8px;
}
.main-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* Seções de Tópico */
.topic-section {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.topic-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Header da Seção */
.section-header {
  margin-bottom: 24px;
}

.section-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-step {
  background-color: var(--bg-surface);
  color: var(--brand-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-tag {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-status {
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.badge-status.completed {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Player de Vídeo (YouTube e Preparação)
   ========================================================================== */

.video-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: rgba(17, 24, 39, 0.7);
  border-bottom: 1px solid var(--border-color);
}

.video-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.video-title svg {
  color: var(--brand-cyan);
}

.video-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--brand-cyan);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-youtube {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
  transition: all 0.2s ease;
}

.btn-open-youtube:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.video-badge.ready {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.video-badge.preparing {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Card: Vídeo em Preparação */
.video-preparing-box {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #172338 0%, #090e18 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 14px;
}

.preparing-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  animation: pulsePreparing 3s infinite ease-in-out;
}

@keyframes pulsePreparing {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.video-preparing-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.video-preparing-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}

.video-preparing-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   Grids e Cards de Conteúdo
   ========================================================================== */

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.info-card:hover {
  border-color: var(--border-light);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-items li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}

.checklist-items li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-cyan);
  font-weight: 800;
  font-size: 1.05rem;
}

.checklist-items li strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Footer da Seção & Botões de Navegação
   ========================================================================== */

.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  margin-bottom: 40px;
}

.btn-check-topic {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-check-topic:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-check-topic.checked {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-prev {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-prev:hover:not(:disabled) {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-next {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-next:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-finish {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.btn-finish:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   Modal de Atalhos
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  border: none;
  font-size: 1rem;
}

.modal-body {
  padding: 24px;
}

.shortcut-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shortcut-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

kbd {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--brand-cyan);
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Modo Fullscreen
   ========================================================================== */

:fullscreen .app-header {
  background-color: rgba(11, 15, 25, 0.98);
}

:fullscreen .main-content {
  padding: 40px 60px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (max-width: 900px) {
  .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    padding: 20px 16px;
  }

  .header-center {
    display: none;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Subtópicos do Módulo 07 (Tabs 7.1, 7.2, 7.3)
   ========================================================================== */

.subtopics-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.subtopic-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subtopic-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.subtopic-tab.active {
  background: var(--bg-surface);
  color: var(--brand-cyan);
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.subtopic-tab-num {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-main);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  border: 1px solid var(--border-color);
}

.subtopic-tab.active .subtopic-tab-num {
  background: var(--brand-cyan);
  color: var(--text-inverse);
  border-color: var(--brand-cyan);
}

.subtopic-pane {
  display: none;
}

.subtopic-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.variation-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--brand-cyan);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.variation-box strong {
  color: var(--brand-cyan);
}

