/* ===========================================
   INSTAPANEL — Dashboard Styles
   =========================================== */

/* --- Stats Grid (already in components.css, extended here) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Dashboard 2-column Grid --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   PIPELINE BARS
   =========================================== */
.pipeline-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.pipeline-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pipeline-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pipeline-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 130px;
  font-size: 0.82rem;
  color: var(--text);
}

.pipeline-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pipeline-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.pipeline-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
  min-width: 2px;
}

.pipeline-bar-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  min-width: 28px;
  text-align: right;
}

/* ===========================================
   INTERVENTION LIST (dashboard compact)
   =========================================== */
.intervention-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intervention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.intervention-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.intervention-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intervention-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.intervention-item-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.intervention-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ===========================================
   ALERTS LIST
   =========================================== */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.alert-item:hover {
  background: var(--bg);
}

.alert-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-item-message {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
}

.alert-item-count {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===========================================
   SUBMISSIONS LIST
   =========================================== */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.submission-item:last-child {
  border-bottom: none;
}

.submission-item-info {
  flex: 1;
}

.submission-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.submission-item-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.submission-item-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}
