/* ============================================
   Componente: Dashboard Mockup (Painel de Controle)
   Classes .pc-* para o mockup do dashboard na home
   Extraido de: home.css
   ============================================ */

/* ── Layout: texto esquerda + painel direita ── */
.dashboard-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--dt-space-12);
  align-items: center;
}
@media (max-width: 960px) {
  .dashboard-showcase { grid-template-columns: 1fr; }
}

/* ── Cena e diagrama ── */
.pc-scene {
  width: 100%;
  overflow: hidden;
}
.pc-diagram {
  width: 100%;
  max-width: 660px;
  font-size: 14px;
}

/* ── Browser bar ── */
.pc-browser-bar {
  background: #0f1225;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,.06);
  border-bottom: none;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.pc-bd-row { display: flex; gap: 6px; flex-shrink: 0; }
.pc-bd-r { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.pc-bd-y { width: 11px; height: 11px; border-radius: 50%; background: #febc2e; }
.pc-bd-g { width: 11px; height: 11px; border-radius: 50%; background: #28c840; }
.pc-browser-url {
  flex: 1; height: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  display: flex; align-items: center;
  padding: 0 9px; gap: 5px; overflow: hidden;
}
.pc-lock-icon { width: 10px; height: 12px; flex-shrink: 0; }
.pc-url-sk { flex: 1; display: flex; align-items: center; gap: 3px; }
.pc-usk-l { height: 5px; border-radius: 999px; background: rgba(255,255,255,.16); }
.pc-usk-d { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.10); flex-shrink: 0; }
.pc-usk-sep { width: 1px; height: 10px; background: rgba(255,255,255,.07); flex-shrink: 0; margin: 0 2px; }
.pc-live-row { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.pc-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 7px rgba(34,197,94,.9);
  animation: pcBlink 1.8s ease-in-out infinite;
}
.pc-live-text { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.45); }

/* ── Dashboard body ── */
.pc-dash {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(210,225,240,.85);
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 24px 56px rgba(15,23,42,.10);
  overflow: hidden;
}

.pc-dash-header {
  background: linear-gradient(135deg, #111157 0%, #1c1c90 100%);
  padding: 14px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.pc-dash-title { font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.pc-dash-title span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); display: block; margin-top: 2px; }
.pc-dash-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; color: #22c55e;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.22);
}
.pc-dash-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 7px rgba(34,197,94,.9);
  animation: pcBlink 1.8s ease-in-out infinite;
}

/* ── KPI row ── */
.pc-kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.pc-kpi {
  padding: 12px 10px;
  border-right: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: center; gap: 8px;
}
.pc-kpi:last-child { border-right: none; }
.pc-kpi-icon { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; }
.pc-kpi-icon svg { width: 15px; height: 15px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-kpi-val { font-size: 17px; font-weight: 900; color: #0f172a; line-height: 1; }
.pc-kpi-val.pc-o { color: #ed4700; }
.pc-kpi-val.pc-g { color: #22c55e; }
.pc-kpi-desc { font-size: 8.5px; color: #64748b; margin-top: 2px; font-weight: 500; line-height: 1.3; }

/* ── Main content row ── */
.pc-main-row { display: grid; grid-template-columns: 1fr 1fr; }

/* ── NPS side ── */
.pc-nps-side {
  padding: 14px 16px;
  border-right: 1px solid rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: 10px;
}
.pc-box-label { font-size: 10px; font-weight: 700; color: #0f172a; letter-spacing: .3px; margin-bottom: 2px; }

.pc-nps-card {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid rgba(34,197,94,.30);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 0 0 4px rgba(34,197,94,.07), 0 8px 24px rgba(34,197,94,.15), inset 0 1px 0 rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 14px;
}
.pc-gauge-wrap { position: relative; flex-shrink: 0; }
.pc-nps-info { flex: 1; }
.pc-nps-score {
  font-size: 42px; font-weight: 900; line-height: 1;
  color: #22c55e; text-shadow: 0 2px 16px rgba(34,197,94,.25);
}
.pc-nps-score-label { font-size: 11px; font-weight: 700; color: #22c55e; margin-top: 1px; opacity: .75; }
.pc-nps-caption { font-size: 9.5px; color: #64748b; margin-top: 6px; line-height: 1.45; font-weight: 500; }

/* ── Sentiment bars ── */
.pc-sent-bars { margin-top: 6px; }
.pc-sent-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pc-sent-bar-lbl { font-size: 8.5px; color: #64748b; font-weight: 600; width: 42px; flex-shrink: 0; }
.pc-sent-bar-bg { flex: 1; height: 5px; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; }
.pc-sent-bar-fill { height: 100%; border-radius: 999px; }
.pc-sent-bar-pct { font-size: 8.5px; color: #64748b; width: 26px; text-align: right; flex-shrink: 0; }

/* ── Benefits side ── */
.pc-benefits-side {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.pc-benefit-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px; border-radius: 11px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(210,225,240,.6);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  transition: box-shadow .18s, transform .18s;
}
.pc-benefit-item:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateX(2px); }
.pc-benefit-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.pc-benefit-icon svg { width: 14px; height: 14px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-benefit-title { font-size: 10.5px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.pc-benefit-sub { font-size: 8.5px; color: #64748b; margin-top: 2px; line-height: 1.35; font-weight: 400; }
.pc-benefit-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: #22c55e; display: grid; place-items: center;
  flex-shrink: 0; margin-top: 5px; margin-left: auto;
}
.pc-benefit-check svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Trend row ── */
.pc-trend-row {
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.pc-trend-label { font-size: 9.5px; font-weight: 700; color: #64748b; white-space: nowrap; }
.pc-trend-chart { flex: 1; }
.pc-trend-stat { text-align: right; flex-shrink: 0; }
.pc-trend-stat-val { font-size: 13px; font-weight: 800; color: #22c55e; }
.pc-trend-stat-sub { font-size: 8px; color: #64748b; margin-top: 1px; }

@keyframes pcBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Responsive ── */
@media (max-width: 768px) {
  .pc-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pc-main-row { grid-template-columns: 1fr; }
  .pc-nps-side { border-right: none; border-bottom: 1px solid rgba(0,0,0,.05); }
}
@media (max-width: 480px) {
  .pc-kpi { padding: 8px 6px; gap: 5px; }
  .pc-kpi-icon { width: 24px; height: 24px; border-radius: 6px; }
  .pc-kpi-icon svg { width: 12px; height: 12px; }
  .pc-kpi-val { font-size: 14px; }
}

/* ── Light theme overrides ── */
[data-theme="light"] .pc-browser-bar {
  background: #1e293b;
}
[data-theme="light"] .pc-browser-url {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.15);
}
[data-theme="light"] .pc-dash {
  border-color: #e2e8f0;
  box-shadow: 0 24px 56px rgba(15,23,42,.14);
}
[data-theme="light"] .pc-benefit-item {
  background: #fff;
  border-color: #e2e8f0;
}
