/* FINAL DASHBOARD CSS */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  color: var(--text-color);
}

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

.dash-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.dash-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dash-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.dash-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dash-grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
}

.kpi-multi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-multi-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.kpi-multi-val {
  font-weight: 600;
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}
.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dash-section {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Funnel */
.funnel-stage {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.funnel-label {
  width: 120px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.funnel-bar-container {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin: 0 16px;
}
.funnel-bar {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.funnel-stats {
  width: 100px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.funnel-count {
  font-weight: 600;
}
.funnel-conv {
  color: var(--text-muted);
}

/* Lists */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.dash-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.dash-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.dash-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.dash-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
}

/* Tables */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th {
  text-align: left;
  padding: 8px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dash-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.health-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--success-color);
  text-align: center;
  margin: 20px 0;
}
.health-bad { color: var(--danger-color); }
.health-ok { color: #f39c12; }

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.1);
}

.refresh-text {
  font-size: 12px;
  color: var(--text-muted);
}
