/* ============================================================================
   Section Styling — Gradient background + accent bar
   ============================================================================ */

.ffmpeg-media-dashboard__section {
  --ffmpeg-section-accent: var(--ffmpeg-accent);
  --ffmpeg-section-soft: var(--ffmpeg-accent-soft);
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--ffmpeg-border);
  border-radius: var(--ffmpeg-radius-l);
  background: linear-gradient(135deg, var(--ffmpeg-surface), var(--ffmpeg-surface-2));
  box-shadow: var(--ffmpeg-shadow);
  overflow: hidden;
}

.ffmpeg-media-dashboard__section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px circle at top right, var(--ffmpeg-section-soft), transparent 45%);
  opacity: 0.85;
  pointer-events: none;
}

.ffmpeg-media-dashboard__section::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ffmpeg-section-accent), transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}

.ffmpeg-media-dashboard__section > * {
  position: relative;
  z-index: 1;
}

.ffmpeg-media-dashboard__system-status {
  --ffmpeg-section-accent: var(--ffmpeg-info);
  --ffmpeg-section-soft: var(--ffmpeg-info-bg);
}

.ffmpeg-media-dashboard__stats-cards {
  --ffmpeg-section-accent: var(--ffmpeg-accent);
  --ffmpeg-section-soft: var(--ffmpeg-accent-soft);
}

.ffmpeg-media-dashboard__24h-stats {
  --ffmpeg-section-accent: var(--ffmpeg-warning);
  --ffmpeg-section-soft: var(--ffmpeg-warning-bg);
}

.ffmpeg-media-dashboard__queue {
  --ffmpeg-section-accent: var(--ffmpeg-info);
  --ffmpeg-section-soft: var(--ffmpeg-info-bg);
}

.ffmpeg-media-dashboard__active {
  --ffmpeg-section-accent: var(--ffmpeg-accent);
  --ffmpeg-section-soft: var(--ffmpeg-accent-soft);
}

.ffmpeg-media-dashboard__recent {
  --ffmpeg-section-accent: var(--ffmpeg-success);
  --ffmpeg-section-soft: var(--ffmpeg-success-bg);
}

.ffmpeg-media-dashboard__errors {
  --ffmpeg-section-accent: var(--ffmpeg-danger);
  --ffmpeg-section-soft: var(--ffmpeg-danger-bg);
}

.ffmpeg-media-dashboard__section h3 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ffmpeg-border);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ffmpeg-title);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}

.ffmpeg-media-dashboard__section h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ffmpeg-section-accent), transparent);
}
