@font-face {
  font-family: 'FSPixelSans';
  src: url('fonts/FSPixelSansUnicode-Regular.ttf') format('truetype');
}

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

body {
  background: #0d1527;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* TOP HUD BAR */
.top-hud {
  height: 62px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 3px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

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

.pixel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #a5f3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 2px 2px 0px #0284c7;
}

.lighting-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #475569;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
}

.lighting-selector select {
  background: #1e293b;
  color: #fde047;
  border: 1px solid #64748b;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
}

.hud-stats {
  display: flex;
  gap: 10px;
}

.stat-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #334155;
  border-radius: 6px;
  padding: 3px 10px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 8.5px;
  color: #94a3b8;
  font-weight: 700;
}

.stat-value {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #f8fafc;
}

.stat-value.online { color: #4ade80; }
.stat-value.paused { color: #fbbf24; }
.stat-value.cost { color: #38bdf8; }

.hud-actions {
  display: flex;
  gap: 8px;
}

.pixel-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.7);
  transition: transform 0.1s;
}

.pixel-btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 3px 0 #064e3b;
}

.btn-agents {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 3px 0 #4c1d95;
}

.btn-meeting {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 3px 0 #92400e;
}

.btn-toggle-panel {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 3px 0 #1e3a8a;
}

/* MAIN STAGE */
.main-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0d1527;
}

#isoCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#isoCanvas:active {
  cursor: grabbing;
}

/* FLOATING TERMINAL OVERLAY */
.floating-terminal {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 390px;
  background: rgba(10, 15, 28, 0.90);
  border: 2px solid #475569;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  z-index: 10;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.floating-terminal.minimized .terminal-body {
  display: none;
}

.terminal-header {
  background: #1e293b;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.term-dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.term-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #cbd5e1;
}

.term-min-btn {
  background: transparent;
  border: 1px solid #64748b;
  color: #e2e8f0;
  padding: 0 6px;
  border-radius: 3px;
  cursor: pointer;
}

.terminal-body {
  height: 120px;
  overflow-y: auto;
  padding: 8px 10px;
  font-family: 'VT323', monospace;
  font-size: 15.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line { line-height: 1.2; }
.log-time { color: #64748b; margin-right: 6px; }
.log-agent { font-weight: bold; color: #38bdf8; margin-right: 6px; }
.log-line.whatsapp .log-agent { color: #4ade80; }
.log-line.manager .log-agent { color: #60a5fa; }
.log-line.meeting .log-agent { color: #fbbf24; }
.log-line.warning .log-agent { color: #f43f5e; }
.log-line.success .log-agent { color: #34d399; }

/* SIDE PANEL */
.side-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 395px;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #3b82f6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  z-index: 15;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s ease;
}

.side-panel.hidden {
  transform: translateX(430px);
}

.panel-tabs {
  display: flex;
  background: #0f172a;
  border-bottom: 2px solid #1e293b;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 10px 6px;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #fff;
  background: #1e293b;
  border-bottom-color: #38bdf8;
}

.tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  gap: 9px;
}

.tab-content.active { display: flex; }

.channel-banner {
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.boss-banner { background: rgba(37, 99, 235, 0.2); border: 1px solid #3b82f6; }
.customer-banner { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; }
.projects-banner { background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; }
.channel-banner small { color: #cbd5e1; font-size: 11px; }

.project-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.project-selector-bar select {
  flex: 1;
  background: #1e293b;
  color: #fff;
  border: 1px solid #475569;
  padding: 6px 8px;
  border-radius: 5px;
  font-weight: 600;
}

.lavinia-control-box {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid #f43f5e;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
}
.lavinia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.btn-resume-ai {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.lavinia-btns { display: flex; gap: 6px; }
.lavinia-btns button {
  flex: 1;
  background: #e11d48;
  color: #fff;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.chat-box {
  flex: 1;
  background: #0b141a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.msg-bubble.incoming { background: #202c33; align-self: flex-start; }
.msg-bubble.outgoing { background: #005c4b; align-self: flex-end; }
.msg-bubble.lavinia-msg { background: #881337; align-self: flex-end; border: 1px solid #fb7185; }
.msg-sender {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.quick-prompts { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-prompts button {
  background: #1e293b;
  color: #93c5fd;
  border: 1px solid #334155;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.quick-prompts button:hover { background: #334155; color: #fff; }

.chat-input-row { display: flex; gap: 6px; }
.chat-input-row input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #475569;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.btn-send {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.btn-send.green { background: #059669; }
.btn-audio {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.projects-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card {
  background: #1e293b;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  padding: 10px;
}
.project-card h4 { font-size: 13px; color: #f8fafc; margin-bottom: 4px; }
.project-meta { font-size: 11px; color: #cbd5e1; }

.new-project-box {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.new-project-box h4 { font-size: 12px; color: #93c5fd; }
.new-project-box input {
  background: #1e293b;
  color: #fff;
  border: 1px solid #475569;
  padding: 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* MODALS (WHATSAPP QR & AGENT EDITOR) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.hidden { display: none; }

.modal-window {
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  width: 680px;
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}
.modal-window.wide { width: 820px; }

.modal-header {
  padding: 14px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}
.modal-close {
  background: #ef4444;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
}

.wa-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
}
.qr-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.qr-title { font-size: 12px; font-weight: 700; color: #f8fafc; }
.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}
.badge-live {
  display: block;
  font-size: 11px;
  color: #4ade80;
  margin-bottom: 6px;
}
.btn-refresh-qr {
  background: #334155;
  color: #fff;
  border: 1px solid #64748b;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.wa-settings-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wa-help {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #059669;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.45;
  margin-bottom: 6px;
}
.wa-settings-form label,
.agent-form-card label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 4px;
}
.wa-settings-form input,
.agent-form-card input,
.agent-form-card select {
  background: #1e293b;
  border: 1px solid #475569;
  color: #fff;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.agents-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.agents-current-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
}
.agent-edit-row {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-edit-info h5 { font-size: 13px; color: #f8fafc; }
.agent-edit-info small { font-size: 11px; color: #94a3b8; display: block; }
.agent-edit-actions { display: flex; gap: 6px; }
.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: #3b82f6;
}
.btn-sm.del { background: #ef4444; }
.agent-form-card {
  background: #162033;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* BOTTOM HUD BAR */
.bottom-hud {
  height: 74px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-top: 3px solid #38bdf8;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  z-index: 20;
}

.agent-cards-bar {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
}

.agent-mini-card {
  flex: 1;
  min-width: 170px;
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-mini-card.working {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.agent-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.agent-card-info { overflow: hidden; }
.agent-card-name { font-size: 12px; font-weight: 700; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card-bubble { font-family: 'VT323', monospace; font-size: 15px; color: #38bdf8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* AUTH GATE MODAL */
.auth-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.auth-gate-backdrop.hidden {
  display: none !important;
}
.auth-gate-box {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 34px 28px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.3);
}
.auth-gate-input {
  width: 100%;
  padding: 12px 14px;
  background: #090d16;
  border: 2px solid #334155;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
  margin-top: 14px;
}
.auth-gate-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.hud-logo {
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}


/* ==========================================================================
   CENTRAL DE MARKETING (ESTÚDIO DE IMAGEM & OTIMIZADOR DE FOTOS)
   ========================================================================== */
.modal-window.extra-wide {
  width: 980px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-window.extra-wide .modal-body {
  max-height: calc(92vh - 70px);
  overflow-y: auto;
  padding: 16px 20px;
}

.mkt-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mkt-tab-btn {
  background: #0f172a;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mkt-tab-btn:hover {
  background: #1e293b;
  color: #f8fafc;
  border-color: #f97316;
}

.mkt-tab-btn.active {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border-color: #fb923c;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
}

.mkt-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mkt-cat-card {
  background: #090e1a;
  border: 2px solid #1e293b;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mkt-cat-card:hover {
  border-color: #38bdf8;
  background: #111c33;
}

.mkt-cat-card.selected {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.3);
}

.mkt-cat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mkt-cat-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.mkt-studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 800px) {
  .mkt-studio-layout, .mkt-cat-grid {
    grid-template-columns: 1fr;
  }
}

.mkt-panel-card {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
}

.mkt-opt-group {
  margin-bottom: 12px;
}

.mkt-opt-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.mkt-tile-grid {
  display: grid;
  gap: 8px;
}

.mkt-tile-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.mkt-tile-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mkt-tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.mkt-tile-btn {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.mkt-tile-btn:hover {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
}

.mkt-tile-btn.active {
  background: #ea580c;
  color: #fff;
  border-color: #fb923c;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

.mkt-input, .mkt-select {
  width: 100%;
  padding: 9px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.mkt-input:focus, .mkt-select:focus {
  border-color: #f97316;
}

.mkt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mkt-dropzone {
  border: 2px dashed #334155;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mkt-dropzone:hover {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}

.mkt-preview-box {
  background: #000;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mkt-preview-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.mkt-opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #090e1a;
  border: 1px solid #1e293b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.mkt-opt-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mkt-opt-row-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}

.mkt-opt-row-info span {
  font-size: 11px;
  color: #94a3b8;
}

.mkt-opt-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.mkt-opt-badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.mkt-opt-badge.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.mkt-pipeline-banner {
  background: #090e1a;
  border: 1px dashed #475569;
  border-radius: 10px;
  padding: 26px;
  text-align: center;
  color: #94a3b8;
  line-height: 1.6;
}


/* ==========================================================================
   CONEXÕES UNIFICADAS (ABAS TIPO FICHA: WHATSAPP / TELEGRAM / INSTAGRAM)
   ========================================================================== */
.folder-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 3px solid #0284c7;
  margin-bottom: 20px;
  padding: 0 4px;
}

.folder-tab-item {
  background: #090e1a;
  color: #94a3b8;
  border: 2px solid #334155;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  top: 3px;
}

.folder-tab-item:hover {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
}

.folder-tab-item.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 -4px 12px rgba(2, 132, 199, 0.35);
  top: 0;
  padding-bottom: 13px;
}

.folder-content-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.folder-content-pane.active {
  display: block;
}

/* ==========================================================================
   MONITOR DE EXECUÇÃO DOS AGENTES (O QUE FAZ, O QUE FEZ, O QUE FALTA FAZER)
   ========================================================================== */
.agent-selector-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}

.agent-pill-btn {
  background: #090e1a;
  border: 1px solid #334155;
  border-radius: 20px;
  color: #94a3b8;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-pill-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}

.agent-pill-btn.active {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.agent-monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .agent-monitor-grid { grid-template-columns: 1fr; }
}

.task-card-now {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.task-card-now-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.task-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.task-status-badge.running {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  animation: pulse 2s infinite;
}

.task-list-box {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
}

.task-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  margin-bottom: 8px;
  font-size: 12px;
}

.task-item-row.done {
  border-left: 3px solid #22c55e;
}

.task-item-row.pending {
  border-left: 3px solid #f59e0b;
}

.task-item-meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 3px;
}
