/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1024px) {
  .ffmpeg-stats-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .ffmpeg-stats-card__value {
    font-size: 1.75rem;
  }
}

@media (max-width: 900px) {
  .ffmpeg-dashboard-main {
    flex-direction: column;
  }

  .ffmpeg-dashboard-sidebar {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .ffmpeg-stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ffmpeg-queue-status-grid,
  .ffmpeg-stats-24h-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ffmpeg-status-main {
    flex-direction: column;
  }

  .ffmpeg-status-sidebar {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .ffmpeg-media-dashboard__section {
    padding: 1rem;
  }

  .ffmpeg-stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ffmpeg-stats-card__value {
    font-size: 1.5rem;
  }

  .ffmpeg-dashboard-table {
    font-size: 0.8rem;
  }

  .ffmpeg-dashboard-table th,
  .ffmpeg-dashboard-table td {
    padding: 0.6rem;
  }

  .progress-bar {
    min-width: 80px;
  }

  .ffmpeg-system-status-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .ffmpeg-stats-cards-grid {
    grid-template-columns: 1fr;
  }

  .ffmpeg-queue-status-grid,
  .ffmpeg-stats-24h-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Make tables horizontally scrollable */
  .ffmpeg-dashboard-table-wrapper {
    overflow-x: auto;
  }
}
