/**
 * PHM Tech — Laboratório de Montagem de PC (PHM Labs)
 * Arquitetura Geométrica de Precisão Milimétrica (Unified SVG Coordinate Grid 1000x800)
 * Prof. Paulo Henrique Maciel · PHM Tech
 */

/* ==========================================================================
   1. ESTRUTURA GERAL & TRILHA DE ETAPAS DIDÁTICAS
   ========================================================================== */

.pc-lab-wrapper {
  background: var(--bg);
  padding-bottom: 4rem;
}

/* Container da Trilha de Etapas */
.pc-stepper-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.pc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-width: 960px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-step-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.pc-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pc-step-item.active {
  background: rgba(8, 145, 178, 0.12);
  border-color: #0891b2;
  color: #0891b2;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
}
.pc-step-item.active .pc-step-num {
  background: #0891b2;
  color: #ffffff;
}

.pc-step-item.completed {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #16a34a;
}
.pc-step-item.completed .pc-step-num {
  background: #16a34a;
  color: #ffffff;
}

.pc-step-arrow {
  color: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-step-arrow svg {
  width: 12px;
  height: 12px;
  color: var(--text-soft);
  opacity: 0.6;
}

/* ==========================================================================
   2. SEÇÃO 1: ÁREA DE MONTAGEM (GABINETE 760px + BANCADA COM ALTURA IGUALADA)
   ========================================================================== */

.pc-assembly-top-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

@media (max-width: 1100px) {
  .pc-assembly-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Gabinete com Altura Aumentada (760px) */
.pc-chassis-stage {
  background: #080c14;
  border: 2px solid #1e293b;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 760px;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estado Quando o PC Está Ligado */
.pc-chassis-stage.is-powered-on {
  border-color: #0284c7;
  box-shadow: 0 0 30px rgba(2, 132, 199, 0.3), 0 12px 32px rgba(0, 0, 0, 0.6);
}

.pc-chassis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.82rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pc-chassis-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grupo de Botões do Gabinete */
.pc-chassis-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #131b2e;
  border: 1px solid #334155;
  color: #cbd5e1;
  text-decoration: none;
}

.pc-btn-action:hover {
  background: #1e293b;
  border-color: #0891b2;
  color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.pc-btn-action.btn-airflow-locked {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #334155;
  color: #64748b;
}

.pc-btn-action.btn-airflow-locked:hover {
  background: #131b2e;
  border-color: #eab308;
  color: #facc15;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
  transform: none;
}

.pc-btn-action.btn-airflow-unlocked {
  opacity: 1;
  cursor: pointer;
  border-color: #0284c7;
  color: #38bdf8;
}

.pc-btn-action.btn-airflow-active {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
}

.pc-btn-action.btn-reset-workbench:hover {
  border-color: #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.pc-btn-action.pc-btn-power {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
}

.pc-btn-action.pc-btn-power:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: #7dd3fc;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

.pc-btn-action.pc-btn-power.is-running {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #f87171;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.pc-btn-action.pc-btn-power.is-running:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

/* Vista Interna do Gabinete (Altura 760px) */
.pc-chassis-view {
  width: 100%;
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #0d1527 0%, #05080e 100%);
  border: 1.5px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.pc-chassis-svg-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1000 / 800;
  height: auto;
  max-height: 100%;
  position: relative;
  margin: auto;
  box-sizing: border-box;
}

.pc-chassis-base-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* ==========================================================================
   3. ANIMAÇÃO DE ROTAÇÃO DAS VENTOINHAS (RIGIDAMENTE CENTRALIZADAS)
   ========================================================================== */

@keyframes pcFanSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pc-fan-rotator {
  transform-box: fill-box;
  transform-origin: center center;
}

.pc-chassis-stage.is-powered-on .pc-fan-rotator {
  animation: pcFanSpin 0.55s linear infinite;
}

/* ==========================================================================
   4. ZONAS DE ENCAIXE NO GABINETE COM PRECISÃO MILIMÉTRICA (1000x800)
   ========================================================================== */

.pc-dropzone {
  position: absolute;
  display: none;
  border: 2px dashed #475569;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  box-sizing: border-box;
}

.pc-installed-graphic {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-installed-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pc-dropzone.installed,
.pc-dropzone.is-focused,
.pc-dropzone.is-active-slot,
.pc-dropzone.drag-over {
  display: flex;
}

.pc-dropzone.is-focused {
  border: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: scale(1.015);
  z-index: 35;
  animation: pulseFocusZone 1.5s infinite alternate;
}

@keyframes pulseFocusZone {
  from { border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.35); }
  to { border-color: #22c55e; box-shadow: 0 0 22px rgba(34, 197, 94, 0.6); }
}

.pc-dropzone.drag-over {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

/* Quando instalado: sem borda redundante para preservar o SVG limpo */
.pc-dropzone.installed {
  border: none !important;
  background: transparent !important;
  color: #10b981;
  padding: 0;
  overflow: visible;
}

.pc-btn-uninstall-slot {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.2rem;
  z-index: 60;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.pc-dropzone.installed:hover .pc-btn-uninstall-slot {
  display: flex;
}

/* ==========================================================================
   MAPEAMENTO RIGOROSO DE COORDENADAS (GRADE 1000x800)
   ========================================================================== */

/* Coluna Esquerda: Exaustão Traseira e Fonte ATX Vertical */
#zone-fan-exhaust { top: 4.375%; left: 3.0%; width: 13.5%; height: 16.875%; z-index: 15; }
#zone-psu { top: 23.125%; left: 3.0%; width: 13.5%; height: 72.5%; z-index: 12; }

/* Área Central: Bandeja de Espaçadores (Borda Verde Unificada e Contínua) */
#zone-standoffs { top: 3.5%; left: 17.5%; width: 61.5%; height: 93.0%; z-index: 5; }

/* Área Central: Placa-Mãe ATX (Borda Azul Reduzida e 100% Contida na Verde) */
#zone-motherboard { top: 4.8%; left: 18.5%; width: 59.5%; height: 90.4%; z-index: 8; }

/* Componentes Integrados na Placa-Mãe */
#zone-cpu { top: 13.75%; left: 32.0%; width: 13.5%; height: 16.875%; z-index: 15; }
#zone-thermal-paste { top: 18.125%; left: 35.5%; width: 6.5%; height: 8.125%; z-index: 18; }
#zone-cooler { top: 8.125%; left: 28.5%; width: 20.5%; height: 28.125%; z-index: 22; }
#zone-ram { top: 10.0%; left: 51.0%; width: 7.5%; height: 35.0%; z-index: 16; } /* DIMM Slots */
#zone-storage { top: 10.0%; left: 60.5%; width: 7.0%; height: 35.0%; z-index: 17; } /* Slot M.2 NVMe */
#zone-gpu { top: 48.75%; left: 19.5%; width: 55.0%; height: 15.625%; z-index: 25; }
#zone-sound-card { top: 66.25%; left: 19.5%; width: 29.0%; height: 11.875%; z-index: 24; }
#zone-net-card { top: 80.0%; left: 19.5%; width: 29.0%; height: 11.875%; z-index: 24; }

/* Chicote de Cabos: Cobre a placa-mãe para conexões modulares limpas nas bordas */
#zone-cables { top: 4.8%; left: 18.5%; width: 59.5%; height: 90.4%; z-index: 20; }

/* Coluna Direita: Ventoinhas Frontais */
#zone-fans-intake { top: 4.375%; left: 80.0%; width: 16.5%; height: 91.25%; z-index: 15; }

/* ==========================================================================
   5. BANCADA DE PEÇAS & MONITOR DE POST (SUBSTITUIÇÃO IN-PLACE)
   ========================================================================== */

.pc-parts-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-height: 760px;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* View 1: Bancada de Peças Padrão */
.pc-sidebar-workbench-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.pc-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.pc-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Modos Aprendizagem vs Desafio */
.pc-mode-toggle-compact {
  display: flex;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.pc-mode-btn-compact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pc-mode-btn-compact.active {
  background: #0891b2;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
}

/* Legenda Compacta */
.pc-sidebar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.pc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pc-status-dot.dot-green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.pc-status-dot.dot-red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.pc-legend-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0891b2;
}

/* Lista de Peças com Rolagem Interna Suave */
.pc-compact-parts-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.pc-compact-parts-list::-webkit-scrollbar { width: 6px; }
.pc-compact-parts-list::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 4px; }
.pc-compact-parts-list::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 4px; }

/* Linha Compacta Padronizada */
.pc-compact-part-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pc-compact-part-item:hover {
  border-color: #0891b2;
  background: rgba(8, 145, 178, 0.06);
}

.pc-compact-part-item.selected {
  border-color: #0891b2;
  background: rgba(8, 145, 178, 0.14);
  color: #0891b2;
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.25);
}

.pc-compact-part-item.installed {
  opacity: 0.6;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.pc-compact-part-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.pc-compact-part-thumb {
  width: 32px;
  height: 32px;
  background: #0b111e;
  border: 1px solid #1e293b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px;
  overflow: hidden;
}

.pc-compact-part-thumb svg { max-width: 100%; max-height: 100%; }

.pc-compact-part-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-compact-part-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pc-btn-insert-arrow {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.pc-btn-insert-arrow.enabled {
  background: #0891b2;
  border-color: #0891b2;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.35);
}

.pc-btn-insert-arrow.enabled:hover {
  background: #0e7490;
  transform: translateY(-1px);
}

.pc-btn-insert-arrow.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--surface-soft);
}

.pc-compact-part-item.installed .pc-btn-insert-arrow {
  opacity: 0.4;
  cursor: default;
  background: var(--surface-soft);
  border-color: var(--line);
  color: #16a34a;
  box-shadow: none;
}

/* ==========================================================================
   6. VIEW 2: TELA DE POST / DIAGNÓSTICO INTEGRADA NA SIDEBAR
   ========================================================================== */

.pc-sidebar-post-view {
  display: none;
  flex-direction: column;
  height: 100%;
  flex: 1;
  background: #05080e;
  border-radius: 12px;
  border: 1.5px solid #1e293b;
  overflow: hidden;
  box-sizing: border-box;
}

.pc-sidebar-post-view.active {
  display: flex;
}

.pc-post-top-bar {
  background: #0d1424;
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.pc-post-top-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pc-btn-return-workbench {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pc-btn-return-workbench:hover {
  background: #0891b2;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.pc-post-terminal-body {
  flex: 1;
  padding: 0.85rem;
  overflow-y: auto;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pc-post-line {
  opacity: 0;
  transform: translateY(4px);
  animation: pcPostLineFade 0.25s forwards ease;
}

@keyframes pcPostLineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pc-post-line.ok { color: #4ade80; }
.pc-post-line.warn { color: #facc15; }
.pc-post-line.err { color: #f87171; }
.pc-post-line.dim { color: #64748b; }

.pc-post-bottom-bar {
  background: #0a0f1d;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ==========================================================================
   7. SEÇÃO 2: TERMINAL DIDÁTICO DE DIAGNÓSTICO & SEGURANÇA
   ========================================================================== */

.pc-feedback-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.pc-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pc-feedback-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-feedback-banner {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.5;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.pc-feedback-banner.msg-green { background: rgba(34, 197, 94, 0.12); border: 1.5px solid #22c55e; color: #15803d; }
[data-theme="dark"] .pc-feedback-banner.msg-green { color: #4ade80; background: rgba(34, 197, 94, 0.16); }

.pc-feedback-banner.msg-yellow { background: rgba(234, 179, 8, 0.12); border: 1.5px solid #eab308; color: #a16207; }
[data-theme="dark"] .pc-feedback-banner.msg-yellow { color: #facc15; background: rgba(234, 179, 8, 0.16); }

.pc-feedback-banner.msg-red { background: rgba(239, 68, 68, 0.12); border: 1.5px solid #ef4444; color: #b91c1c; }
[data-theme="dark"] .pc-feedback-banner.msg-red { color: #f87171; background: rgba(239, 68, 68, 0.16); }

.pc-feedback-banner.msg-blue { background: rgba(14, 165, 233, 0.12); border: 1.5px solid #0284c7; color: #0369a1; }
[data-theme="dark"] .pc-feedback-banner.msg-blue { color: #38bdf8; background: rgba(14, 165, 233, 0.16); }

.pc-log-toggle-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pc-log-history {
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.78rem;
  color: var(--text-soft);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}

.pc-log-history.is-open { display: flex; }
.pc-log-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pc-log-dot.green { background: #22c55e; }
.pc-log-dot.yellow { background: #eab308; }
.pc-log-dot.red { background: #ef4444; }
.pc-log-dot.blue { background: #0284c7; }

/* ==========================================================================
   8. SEÇÃO 3: INVENTÁRIO DE HARDWARE — 15 COMPONENTES (ACORDEÕES)
   ========================================================================== */

.pc-inventory-accordion-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pc-accordion-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.pc-accordion-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pc-accordion-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.pc-accordion-item:hover { border-color: #0891b2; }

.pc-accordion-summary {
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  user-select: none;
}

.pc-accordion-summary-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pc-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  transform: rotate(0deg);
}

.pc-accordion-item.is-open .pc-accordion-chevron {
  transform: rotate(180deg);
  color: #0891b2;
}

.pc-accordion-body {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  display: none;
  background: var(--surface);
}

.pc-accordion-item.is-open .pc-accordion-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .pc-accordion-item.is-open .pc-accordion-body {
    grid-template-columns: 1fr;
  }
}

.pc-accordion-illustration {
  background: #0b111e;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 180px;
}

.pc-accordion-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .pc-accordion-details-grid {
    grid-template-columns: 1fr;
  }
}

.pc-detail-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.pc-detail-card h5 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.35rem 0;
  color: #0891b2;
}

.pc-detail-card p {
  font-size: 0.8rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   9. FLUXO DE AR (AIRFLOW) COM SETAS ANIMADAS
   ========================================================================== */

.pc-airflow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  display: none;
}

.pc-airflow-overlay.active { display: block; }

@keyframes airflowDash {
  to { stroke-dashoffset: -36; }
}

.pc-airflow-line-intake {
  stroke: #38bdf8;
  stroke-width: 5;
  stroke-dasharray: 10 6;
  animation: airflowDash 1.2s linear infinite;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.pc-airflow-line-exhaust {
  stroke: #ef4444;
  stroke-width: 3.5;
  stroke-dasharray: 8 5;
  animation: airflowDash 1.2s linear infinite;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.65));
}

.pc-airflow-master-arrow {
  stroke-width: 5.5;
  stroke-dasharray: 10 6;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.95));
}

/* Zonas Térmicas de Calor Acumulado (Círculos Laranja Pulsantes) */
@keyframes thermalZoneGlow {
  0%, 100% {
    opacity: 0.65;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.95));
  }
}

.pc-thermal-zone {
  animation: thermalZoneGlow 2.2s ease-in-out infinite alternate;
}
