/**
 * @file
 * Dashboard styles for FFmpeg Media UI.
 *
 * Unified dashboard combining config and content views.
 * Uses Gin admin theme CSS variables for dark mode compatibility.
 */

/* ============================================================================
   Dashboard Container
   ============================================================================ */

.ffmpeg-media-dashboard {
  max-width: 1800px;
  margin: 0 auto;
  font-family: var(--gin-font, inherit);
  color: var(--ffmpeg-text);
}

/* ============================================================================
   Dashboard Layout
   ============================================================================ */

.ffmpeg-dashboard {
  max-width: 1800px;
  margin: 0 auto;
}

.ffmpeg-dashboard-header {
  margin-bottom: 2rem;
}

.ffmpeg-dashboard-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ffmpeg-title);
}

.ffmpeg-dashboard-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ffmpeg-text-muted);
}

.ffmpeg-dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ffmpeg-dashboard-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--ffmpeg-border);
  border-radius: var(--ffmpeg-radius-s);
  background: var(--ffmpeg-surface);
  color: var(--ffmpeg-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ffmpeg-dashboard-meta__item--refresh[data-state="loading"] {
  border-color: var(--ffmpeg-info);
  color: var(--ffmpeg-info);
}

.ffmpeg-dashboard-meta__item--refresh[data-state="error"] {
  border-color: var(--ffmpeg-danger);
  color: var(--ffmpeg-danger);
  background: var(--ffmpeg-danger-bg);
}

.ffmpeg-dashboard-main {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.ffmpeg-dashboard-content {
  flex: 1;
  min-width: 0;
}

.ffmpeg-media-section {
  margin-bottom: 2rem;
}

.ffmpeg-media-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ffmpeg-title);
}

.ffmpeg-dashboard-sidebar {
  flex: 0 0 220px;
  min-width: 0;
  max-width: 100%;
  position: sticky;
  top: calc(var(--drupal-displace-offset-top, 0px) + 1rem);
  max-height: calc(100vh - var(--drupal-displace-offset-top, 0px) - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}
