/* =====================================================================
 * DASHBOARD UI POLISH - v1
 * Mejoras quirúrgicas sobre landing.css sin modificar el original.
 * Cargar DESPUÉS de landing.css y landing-ext.css.
 * ===================================================================== */

/* ========== 1. TAPIZ VISIBLE + VIGNETTE LATERAL ==========
 * En dashboard queremos que el tapiz (div.bg) se vea especialmente en los
 * costados, para darle más onda visual. El contenido central se lee gracias
 * a un overlay radial que oscurece solo el centro y se desvanece a los lados.
 */

/* Tapiz más brillante y saturado: se ve la imagen real a los costados */
body:has(.dashboard-header-compact) .bg,
body:has(.dashboard-header-pro) .bg {
  filter: brightness(0.78) saturate(1.05) contrast(1.08);
}

/* Vignette radial: centro oscuro (~1400px ancho) → se desvanece hacia los
 * costados donde el tapiz se ve brillante y con color.
 * Ellipse angosto (55% width) + opacidad baja para que las "orejas"
 * laterales dejen ver el tapiz real con colores vivos. */
body:has(.dashboard-header-compact) .bg::after,
body:has(.dashboard-header-pro) .bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 85% at 50% 50%,
      rgba(5, 8, 18, 0.55) 0%,
      rgba(5, 8, 18, 0.35) 50%,
      rgba(5, 8, 18, 0.08) 85%,
      transparent 100%);
  z-index: 0;
}

/* ========== 2. DASHBOARD CONTAINER - SPACING MEJORADO ========== */
.dashboard-container {
  padding: 20px 28px !important;
  max-width: 1920px;
  margin: 0 auto;
}

/* ========== 3. STATS CARDS - microinteracción + accent line per-card ==========
 * IMPORTANTE: NO sobreescribimos background ni border con !important porque
 * cada card tiene su tinte inline (purple/green/blue/orange). Sólo agregamos
 * transformaciones, sombra y la línea de acento superior.
 */
.stats-grid-compact {
  gap: 14px !important;
}

.neo-stat-card {
  backdrop-filter: blur(14px) saturate(130%);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 220ms ease,
              border-color 220ms ease !important;
  position: relative !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Accent line top — cada card con su color propio via nth-child */
.neo-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 2;
}

/* OS Check — morado */
.stats-grid-compact .neo-stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}
/* WhatsApp — verde */
.stats-grid-compact .neo-stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
}
/* BCRA — azul */
.stats-grid-compact .neo-stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
/* Total (featured) — gradiente premium rainbow */
.stats-grid-compact .neo-stat-card.neo-stat-featured::before,
.stats-grid-compact .neo-stat-card:nth-child(4)::before {
  background: linear-gradient(90deg,
    rgba(168, 85, 247, 0.8) 0%,
    rgba(59, 130, 246, 0.9) 33%,
    rgba(34, 197, 94, 0.85) 66%,
    rgba(251, 146, 60, 0.9) 100%);
  height: 3px;
  opacity: 0.85;
}

/* Featured (Total) glow sutil permanente */
.neo-stat-card.neo-stat-featured {
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.15),
              0 0 0 1px rgba(251, 146, 60, 0.2);
}

.neo-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4),
              0 0 24px rgba(139, 92, 246, 0.12);
}

.neo-stat-card:hover::before {
  opacity: 1;
}

/* El valor numérico — un poco más pop */
.neo-stat-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ========== 4. HISTORY CARDS - ALTURA UNIFORME + SCROLL INTERNO ========== */
.history-tables-grid {
  align-items: stretch !important;  /* simetría: todas las cards misma altura */
  gap: 16px !important;
}

.history-tables-grid > .neo-card {
  background: linear-gradient(180deg,
    rgba(18, 24, 42, 0.92) 0%,
    rgba(12, 17, 32, 0.92) 100%) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  padding: 14px 14px 12px !important;
  /* min-height asegura altura uniforme; align-items:stretch del parent
   * las iguala aunque BCRA tenga menos filas. */
  min-height: 480px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.history-tables-grid > .neo-card:hover {
  border-color: rgba(139, 92, 246, 0.22) !important;
  transform: translateY(-1px);
}

/* Wrap interno: crece para llenar la card + scroll cuando hay muchas filas.
 * Scrollbar custom para que se integre con el diseño dark. */
.history-tables-grid > .neo-card .neo-table-wrap {
  flex: 1 1 auto;
  min-height: 0;              /* clave para que flex + overflow funcione */
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}
.history-tables-grid > .neo-card .neo-table-wrap::-webkit-scrollbar {
  width: 6px;
}
.history-tables-grid > .neo-card .neo-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.history-tables-grid > .neo-card .neo-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 3px;
}
.history-tables-grid > .neo-card .neo-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}

/* Header cleaner con divider más sutil */
.history-tables-grid > .neo-card h4 {
  font-size: 12.5px !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 10px !important;
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ========== 5. HISTORY TABLE - Hover + legibilidad ========== */
.history-table {
  font-size: 11.5px !important;
}

.history-table thead {
  background: linear-gradient(180deg,
    rgba(22, 28, 48, 0.98),
    rgba(18, 23, 40, 0.95)) !important;
  backdrop-filter: blur(8px);
}

.history-table thead th {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase;
  color: #94a3b8 !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table tbody tr {
  transition: background-color 120ms ease;
}

.history-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.07);
}

.history-table tbody tr:hover td {
  color: #f1f5f9;
}

.history-table tbody td {
  padding: 9px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1;
}

/* ========== 6. BADGE [MULTI] más prominente ========== */
.history-table td span[style*="MULTI"],
.history-table td span[style*="10b981"] {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 6px !important;
  border-radius: 4px;
  font-size: 9px !important;
  letter-spacing: 0.5px;
  font-weight: 700 !important;
  color: #10d9a3 !important;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* ========== 7. ACTION BUTTONS en tablas ========== */
.history-table .neo-btn-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 160ms ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-table .neo-btn-icon:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  transform: scale(1.08);
}

/* Botón verde especial para [MULTI] jobs */
.history-table .neo-btn-icon[style*="10b981"]:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

/* ========== 8. SCROLLBAR DEL TABLE-WRAPPER ========== */
.table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

.table-wrapper::-webkit-scrollbar {
  width: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}

/* ========== 9. HEADER DEL DASHBOARD - un toque más premium ========== */
.dashboard-header-compact {
  padding: 16px 20px !important;
  background: linear-gradient(135deg,
    rgba(18, 22, 40, 0.7) 0%,
    rgba(14, 18, 34, 0.55) 100%) !important;
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  margin-bottom: 16px !important;
  position: relative;
  overflow: hidden;
}

/* Glow line inferior sutil en el header */
.dashboard-header-compact::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.35) 25%,
    rgba(59, 130, 246, 0.35) 50%,
    rgba(34, 197, 94, 0.35) 75%,
    transparent 100%);
  opacity: 0.6;
}

.dashboard-header-compact h2 {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 9b. ACTION BUTTONS en header de history cards ========== */
/* "DNI + OS" / "Situación Crediticia" / "517358 / 451352" — pill style */
.history-tables-grid > .neo-card h4 .neo-btn-sm,
.history-tables-grid > .neo-card h4 .neo-btn-ghost,
.history-tables-grid > .neo-card h4 .neo-btn-success,
.history-tables-grid > .neo-card h4 .neo-btn-danger {
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  padding: 5px 11px !important;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.history-tables-grid > .neo-card h4 .neo-btn-sm:hover,
.history-tables-grid > .neo-card h4 .neo-btn-ghost:hover,
.history-tables-grid > .neo-card h4 .neo-btn-success:hover,
.history-tables-grid > .neo-card h4 .neo-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========== 10. NEO-TABLE (tabla genérica) - Consistencia ========== */
.neo-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.06);
}

/* ========== 11. EMPTY STATES ========== */
.cell-empty {
  color: #64748b !important;
  text-align: center;
  font-style: italic;
  font-size: 11px;
  padding: 24px 8px !important;
}

/* ========== 12. RESPONSIVE - Stack en pantallas chicas ========== */
@media (max-width: 1100px) {
  .history-tables-grid {
    grid-template-columns: 1fr !important;
  }
  .history-tables-grid > .neo-card {
    min-height: 260px;
  }
  .dashboard-container {
    padding: 16px 18px !important;
  }
}

/* ========== 13. LOADING & SKELETON mejores ========== */
.history-table tbody tr td.cell-empty {
  border-bottom: none;
}

/* ========== 14. PADDING LATERAL + CENTRADO (patrón admin callcenter) ==========
 * El .dashboard-content es el <main> que envuelve todo el dashboard.
 * max-width centra el contenido y deja ver el fondo cosmic a los costados,
 * replicando el look del admin callcenter (src/components/callcenter/callcenter.css:219).
 */
.dashboard-content,
main.dashboard-content,
#dashboardContent {
  padding: 24px 28px 40px !important;
  /* Responsive: max-width siempre = viewport − 60px (30px de tapiz cada lado).
   * En 1920 → 1860, en 2560 → 2500, en 1440 → 1380. Siempre simétrico. */
  max-width: calc(100vw - 60px) !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box;
  position: relative;
  /* Glow sutil en la esquina superior para dar profundidad */
}

/* Glow radial de fondo para dar atmósfera al contenido centrado */
.dashboard-content::before,
main.dashboard-content::before,
#dashboardContent::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1400px 600px at 15% -8%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(1100px 500px at 88% 8%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(1000px 450px at 90% 108%, rgba(249, 115, 22, 0.12), transparent 62%),
    radial-gradient(900px 400px at 10% 105%, rgba(34, 197, 94, 0.06), transparent 65%);
  z-index: 0;
  opacity: 1;
}

/* Línea decorativa sutil que separa secciones a nivel global */
.dashboard-content::after,
main.dashboard-content::after,
#dashboardContent::after {
  content: "";
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1400px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139, 92, 246, 0.25) 20%,
    rgba(139, 92, 246, 0.45) 50%,
    rgba(139, 92, 246, 0.25) 80%,
    transparent 100%);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.dashboard-content > *,
main.dashboard-content > *,
#dashboardContent > * {
  position: relative;
  z-index: 1;
}

/* Respiración vertical entre secciones del dashboard */
.dashboard-content .dashboard-stats,
main.dashboard-content .dashboard-stats,
#dashboardContent .dashboard-stats {
  margin-bottom: 24px;
}

.dashboard-content .history-tables-grid,
main.dashboard-content .history-tables-grid,
#dashboardContent .history-tables-grid {
  margin-bottom: 28px;
  /* Override landing.css:4715 — flex:1 + min-height:0 + overflow:hidden
   * colapsan el grid a 0 cuando está dentro de flex context.
   * El dashboard usa block layout, no necesita esos hacks. */
  flex: none !important;
  min-height: unset !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Breakpoint tablet: reducir padding pero mantener centrado */
@media (max-width: 1400px) {
  .dashboard-content,
  main.dashboard-content,
  #dashboardContent {
    padding: 22px 26px 40px !important;
  }
}

@media (max-width: 1100px) {
  .dashboard-content,
  main.dashboard-content,
  #dashboardContent {
    padding: 16px 16px 28px !important;
  }
  .dashboard-content::before,
  main.dashboard-content::before,
  #dashboardContent::before {
    display: none;
  }
}

/* ========== 14.5 HEADER PRO — título + status + chips ========== */
.dashboard-header-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 18px 24px !important;
  margin-bottom: 20px !important;
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    rgba(168, 85, 247, 0.06) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.18) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.dashboard-header-pro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #a855f7 0%, #8b5cf6 50%, #6366f1 100%);
  border-radius: 3px 0 0 3px;
}

.dh-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.dh-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-header-pro h2 {
  margin: 0 !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--text-primary, #f3f4f6) !important;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
}

.dh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
}

.dh-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: dhPulse 2s ease-in-out infinite;
}

@keyframes dhPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.dh-subtitle {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.dh-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.dh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.dh-chip:hover:not(.dh-chip-readonly) {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.22);
}

.dh-chip-readonly {
  cursor: default;
  color: var(--text-secondary, #94a3b8);
}

.dh-chip.dh-spinning svg {
  animation: dhSpin 0.8s linear infinite;
}

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

@media (max-width: 860px) {
  .dashboard-header-pro {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .dh-right { width: 100%; justify-content: flex-end; }
}

/* ========== 15. INSIGHTS GRID — widgets estadísticos bajo history ========== */
.dashboard-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  animation: insightsFadeIn 450ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: 150ms;
}

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

@media (max-width: 1400px) {
  .dashboard-insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dashboard-insights-grid { grid-template-columns: 1fr; }
}

.insight-card {
  background: linear-gradient(180deg,
    rgba(18, 24, 42, 0.92) 0%,
    rgba(12, 17, 32, 0.92) 100%) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px !important;
  padding: 14px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.insight-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.insight-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.2px;
}

.insight-subtitle {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-top: 2px;
}

.insight-body {
  flex: 1;
}

/* 15a. Donut + meta (widget 1) */
.insight-donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.insight-donut {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.2));
}

.insight-donut-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.insight-meta-line {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-meta-line strong {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-weight: 600;
}

.insight-meta-footer {
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
}

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

/* 15b. Activity bars (widget 2) */
.insight-activity-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.insight-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding: 0 2px;
}

.insight-bar {
  flex: 1;
  background: linear-gradient(180deg, #a855f7 0%, #6d28d9 100%);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity 150ms ease, transform 150ms ease;
  cursor: help;
}

.insight-bar:hover {
  transform: scaleY(1.08);
  opacity: 1 !important;
}

.insight-stats-row {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-stats-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.insight-stat-big {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.insight-accent-purple { color: #a855f7 !important; }

.insight-stat-lbl {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* 15c. Cost widget (widget 3) */
.insight-cost-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-cost-big {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
  line-height: 1;
}

.insight-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
}

.insight-cost-row strong {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
}

/* 15d. Top files (widget 4) */
.insight-top-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
}

.insight-top-label {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.insight-top-type {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.insight-top-name {
  font-size: 11px;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.insight-top-bar-wrap {
  grid-column: 1;
  grid-row: 2;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.insight-top-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 300ms ease;
}

.insight-top-count {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.insight-empty {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-style: italic;
  padding: 30px 12px;
}
