/* ==========================================================================
   LinksField Networks Analytics Dashboard - Light Theme Styling
   ========================================================================== */

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(30, 42, 68, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-card.full-width {
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Funnel Rows */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.funnel-stage-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.funnel-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.funnel-bar-wrapper {
  background: #f1f5f9;
  border-radius: var(--radius-full);
  height: 24px;
  overflow: hidden;
  position: relative;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  transition: width 0.6s ease;
}

/* Loss Reasons Grid */
.loss-reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.loss-reason-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reason-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.reason-stage {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.reason-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--danger);
  font-family: 'JetBrains Mono', monospace;
}
