/* ==========================================================================
   WORKSPACE DO DESENVOLVEDOR — ProjetoSpec
   Design System: GitHub Dark / Obsidian Glass com Realce Neon Suave
   ========================================================================== */

.workspace-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 32px 60px;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--text-primary, #e6edf3);
}

/* ── Hero / Topo do Desenvolvedor ────────────────────────────────────────── */
.workspace-hero {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.workspace-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.workspace-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  padding-bottom: 24px;
}

.workspace-dev-profile {
  display: flex;
  align-items: center;
  gap: 22px;
}

.workspace-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.workspace-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  background: #161b22;
}

.workspace-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.workspace-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #161b22;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.workspace-dev-info h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f0f6fc;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-dev-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #8b949e;
}

.workspace-squad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.workspace-cargo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-agente-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.workspace-agente-badge.nao-definido {
  color: #8b949e;
  background: transparent;
  border-style: dashed;
  font-weight: 400;
}

.workspace-hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.workspace-dev-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 17, 23, 0.85);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #30363d;
}

.workspace-dev-selector-wrap label {
  font-size: 0.82rem;
  color: #8b949e;
  font-weight: 500;
  white-space: nowrap;
}

.workspace-dev-select {
  background: #161b22;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.workspace-dev-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ── Grid de Métricas / KPIs ─────────────────────────────────────────────── */
.workspace-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.workspace-kpi-card {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.workspace-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.workspace-kpi-card.highlight-ranking {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(202, 138, 4, 0.05) 100%);
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.workspace-kpi-card.highlight-ranking:hover {
  border-color: rgba(234, 179, 8, 0.75);
  box-shadow: 0 6px 24px rgba(234, 179, 8, 0.2);
}

.workspace-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.workspace-kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-kpi-link {
  font-size: 0.75rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s;
}
.workspace-kpi-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.workspace-kpi-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.workspace-kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f0f6fc;
  line-height: 1;
}

.workspace-kpi-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.workspace-kpi-footer {
  font-size: 0.8rem;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Seção do Meio (Abas) ────────────────────────────────────────────────── */
.workspace-tabs-container {
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.workspace-tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 23, 0.75);
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--border-default, #30363d);
  overflow-x: auto;
}

.workspace-tab-btn {
  background: transparent;
  color: #8b949e;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.workspace-tab-btn:hover {
  color: #f0f6fc;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px 6px 0 0;
}

.workspace-tab-btn.active {
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  border-radius: 6px 6px 0 0;
}

.workspace-tab-counter {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-weight: 700;
}
.workspace-tab-btn.active .workspace-tab-counter {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.workspace-tab-content {
  padding: 20px 24px;
}

.workspace-tab-pane {
  display: none;
}
.workspace-tab-pane.active {
  display: block;
}

/* ── Barra de Filtro e Busca interna das Abas ────────────────────────────── */
.workspace-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.workspace-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-filter-pill {
  background: #0d1117;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.workspace-filter-pill:hover {
  color: #f0f6fc;
  border-color: #8b949e;
}
.workspace-filter-pill.active {
  background: #1f6feb;
  color: #ffffff;
  border-color: #1f6feb;
}

.workspace-filter-search {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 380px;
}

.workspace-filter-search input {
  width: 100%;
  box-sizing: border-box;
  background: #0d1117;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 8px 14px 8px 34px;
  font-size: 0.85rem;
  outline: none;
}
.workspace-filter-search input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.workspace-filter-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b949e;
  font-size: 0.85rem;
  pointer-events: none;
}

/* ── Estilos de Itens / Tabelas / Cards por Aba ──────────────────────────── */
.workspace-table-wrap {
  overflow-x: auto;
  border: 1px solid #30363d;
  border-radius: 10px;
}

.workspace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.workspace-table th {
  background: #0d1117;
  color: #8b949e;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #30363d;
  white-space: nowrap;
}

.workspace-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  color: #e6edf3;
  vertical-align: middle;
}

.workspace-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Progress bar do projeto */
.workspace-prog-bar-wrap {
  width: 100px;
  height: 8px;
  background: #21262d;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.workspace-prog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
  border-radius: 4px;
}

/* Badges de Status / Criticidade */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-concluido, .status-resolvido, .status-verde {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-andamento, .status-correcao, .status-amarelo {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.status-criado, .status-aberto, .status-vermelho {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-cancelado {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

/* Cards de Lembretes e Notas */
.workspace-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.workspace-card-item {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}
.workspace-card-item:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.workspace-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0;
}

.workspace-card-desc {
  font-size: 0.85rem;
  color: #8b949e;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.workspace-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #8b949e;
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  padding-top: 10px;
  flex-wrap: wrap;
}

.workspace-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Semáforo Interativo do Lembrete */
.semaforo-clickable {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease;
}
.semaforo-clickable:hover {
  transform: scale(1.08);
}

/* ── Rodapé (Somatórias) ─────────────────────────────────────────────────── */
.workspace-footer-section {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.workspace-footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-somatorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.workspace-somatoria-box {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(48, 54, 61, 0.75);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-somatoria-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  padding-bottom: 8px;
}

.workspace-somatoria-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #c9d1d9;
}

.workspace-somatoria-val {
  font-weight: 700;
  color: #f0f6fc;
}

/* Estado de Carregamento e Vazio */
.workspace-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8b949e;
}
.workspace-empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.workspace-loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Barra de Atalhos Rápidos de Produtividade ────────────────────────── */
.workspace-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(48, 54, 61, 0.7);
}

.workspace-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(13, 17, 23, 0.85);
  color: #c9d1d9;
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.workspace-quick-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}
.workspace-quick-btn.primary {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.3) 0%, rgba(56, 189, 248, 0.2) 100%);
  color: #58a6ff;
  border-color: rgba(56, 189, 248, 0.5);
}
.workspace-quick-btn.primary:hover {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.5) 0%, rgba(56, 189, 248, 0.35) 100%);
  color: #ffffff;
}

/* ── Accordion / Subtabela de Requisitos Funcionais do Projeto ──────────── */
.workspace-project-expand-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  margin-top: 4px;
}
.workspace-project-expand-btn:hover,
.workspace-project-expand-btn.expanded {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.workspace-subtable-row {
  display: none;
  background: rgba(13, 17, 23, 0.65);
}
.workspace-subtable-row.open {
  display: table-row;
}
.workspace-subtable-cell {
  padding: 12px 20px !important;
  background: rgba(13, 17, 23, 0.75);
  border-bottom: 2px solid #30363d !important;
}

.workspace-subtable-container {
  border-left: 3px solid #38bdf8;
  padding-left: 16px;
  margin: 4px 0;
}
.workspace-subtable-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-subtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.workspace-subtable th {
  background: rgba(22, 27, 34, 0.9);
  color: #8b949e;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid #30363d;
}
.workspace-subtable td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  color: #c9d1d9;
}
.workspace-subtable tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* ── Card de Eficiência e Indicadores de Desempenho no Rodapé ─────────── */
.workspace-somatoria-box.eficiencia-box {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12) 0%, rgba(13, 17, 23, 0.9) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}

.workspace-eficiencia-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 8px;
}
.workspace-eficiencia-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.workspace-mini-prog-bar {
  width: 100%;
  height: 6px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.workspace-mini-prog-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ── Impressão e Responsividade ─────────────────────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-sidebar,
  .app-header,
  .workspace-hero-controls,
  .workspace-filter-bar,
  .workspace-quick-actions,
  .workspace-tab-bar,
  .btn {
    display: none !important;
  }
  .workspace-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .workspace-hero,
  .workspace-tabs-container,
  .workspace-footer-section,
  .workspace-kpi-card,
  .workspace-somatoria-box {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .workspace-tab-pane {
    display: block !important;
    page-break-after: always;
  }
}

@media (max-width: 768px) {
  .workspace-container {
    padding: 16px;
  }
  .workspace-hero {
    padding: 20px;
  }
  .workspace-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .workspace-kpi-grid {
    grid-template-columns: 1fr;
  }
  .workspace-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Banner de Aviso e Barra de Progresso do Workspace ───────────────────── */
.workspace-loading-banner {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.15);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: wsFadeSlideDown 0.35s ease-out;
}

@keyframes wsFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-loading-banner-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.workspace-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: wsSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes wsSpin {
  to { transform: rotate(360deg); }
}

.workspace-loading-banner-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f0f6fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-loading-banner-subtitle {
  font-size: 0.86rem;
  color: #8b949e;
  line-height: 1.45;
  margin-left: 38px;
  margin-bottom: 14px;
}

.workspace-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(33, 38, 45, 0.9);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(48, 54, 61, 0.9);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.workspace-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
  animation: wsShimmer 2s linear infinite;
}

@keyframes wsShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.workspace-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.workspace-progress-step {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-progress-percent {
  color: #fde047;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Efeito de opacidade e bloqueio visual nos dados antigos durante a troca */
.workspace-content-dimmed {
  opacity: 0.45 !important;
  filter: blur(1px) !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, filter 0.3s ease !important;
}

/* Estado de loading no select */
.workspace-dev-select:disabled {
  opacity: 0.65;
  cursor: wait;
  border-color: #38bdf8;
  background-color: #21262d;
}

.workspace-dev-selector-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: pulse 1.5s infinite;
}



/* ═══════════════════════════════════════════════════════════
   ABA DASHBOARD DO WORKSPACE DEV
═══════════════════════════════════════════════════════════ */
.workspace-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.workspace-dash-row-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .workspace-dash-row-2col {
    grid-template-columns: 1fr;
  }
}

.workspace-dash-card {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.workspace-dash-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.workspace-dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-dash-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f0f6fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-dash-card-subtitle {
  font-size: 0.78rem;
  color: #8b949e;
}

.workspace-dash-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
}

.workspace-gauge-center-info {
  margin-top: -15px;
  text-align: center;
}

.workspace-gauge-valor-principal {
  font-size: 1.55rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.5px;
}

.workspace-gauge-subtexto {
  font-size: 0.82rem;
  color: #8b949e;
  margin-top: 4px;
}

.workspace-dash-empty {
  color: #8b949e;
  font-size: 0.88rem;
  text-align: center;
  padding: 30px 10px;
}

/* ── Aba "Termo de Aceite" (somente leitura) ─────────────────────────────── */
.ws-termo { display: flex; flex-direction: column; gap: 12px; }
.ws-termo-banner { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid transparent; }
.ws-termo-banner.ok { background: rgba(63, 185, 80, 0.14); border-color: rgba(63, 185, 80, 0.45); color: #7ee787; }
.ws-termo-banner.alerta { background: rgba(240, 160, 32, 0.14); border-color: rgba(240, 160, 32, 0.45); color: #f0b84a; }
.ws-termo-banner.pendente { background: rgba(139, 148, 158, 0.14); border-color: rgba(139, 148, 158, 0.4); color: #c9d1d9; }
.ws-termo-sub { margin: 6px 0 0; font-size: 0.85rem; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; }
.ws-termo-ro { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(139, 148, 158, 0.2); font-size: 0.7rem; text-transform: none; }
.ws-termo-tabela { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ws-termo-tabela th { width: 230px; text-align: left; color: #8b949e; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #30363d; vertical-align: top; }
.ws-termo-tabela td { padding: 6px 10px; border-bottom: 1px solid #30363d; overflow-wrap: anywhere; }
.ws-termo-hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; }
.ws-termo-ok { color: #7ee787; font-family: inherit; }
.ws-termo-erro { color: #f85149; font-weight: 700; }
.ws-termo-decl { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.7; list-style: none; }
.ws-termo-texto { max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 0.85rem;
  background: #0d1117; border: 1px solid #30363d; border-radius: 8px; padding: 14px 16px; user-select: text; cursor: default; }
.ws-termo-vazio { padding: 24px; text-align: center; color: #8b949e; }
@media (max-width: 640px) { .ws-termo-tabela th { width: 120px; } }
