/**
 * Video Converter Pro (Web) - Fresh Mobile-First Design
 * Light mode default, dark mode toggle
 * Mezamii color palette: #6366f1, #a78bfa, #B8A0D2
 */

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --secondary: #a78bfa;
  --lavender: #B8A0D2;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-raised: #f8f9fc;
  --bg-surface: #f1f3f8;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --text: #1a1a2e;
  --text-secondary: #64648c;
  --text-muted: #9898b0;
  --border: #e2e4f0;
  --border-hover: #c8cae0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Sizing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-h: 56px;
  --max-width: 640px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-raised: #181828;
  --bg-surface: #1e1e32;
  --text: #e8e8f0;
  --text-secondary: #a0a0bc;
  --text-muted: #606078;
  --border: #2a2a40;
  --border-hover: #3a3a58;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
  --glass: rgba(24, 24, 40, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

select, input[type="range"] { font: inherit; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo { flex-shrink: 0; }

.header-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.header-mezamii {
  font-size: 0.75rem;
  color: var(--lavender);
  display: block;
  margin-top: -2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--bg-surface); color: var(--text); }

/* Sun/Moon toggle */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.btn-install {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-install:hover { background: var(--primary-hover); }

/* ═══════════════════════════════════════════════════════════
   APP CONTAINER
   ═══════════════════════════════════════════════════════════ */

.app-container {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.app-content { display: flex; flex-direction: column; gap: 1.25rem; }

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════ */

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.loading-card {
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.loading-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.loading-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.5rem;
}

.loading-status {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════════════════ */

.status-bar { display: flex; gap: 0.5rem; align-items: center; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* ═══════════════════════════════════════════════════════════
   DROPZONE
   ═══════════════════════════════════════════════════════════ */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone.has-files {
  padding: 1.5rem;
}

.dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition), transform var(--transition);
}

.dropzone:hover .dropzone-icon { color: var(--primary); transform: translateY(-2px); }

.dropzone-text {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.dropzone-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.has-files .dropzone-icon,
.has-files .dropzone-text { display: none; }

.has-files .dropzone-hint::before { content: "Tap to add more files"; }
.has-files .dropzone-hint { font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════
   FILE QUEUE
   ═══════════════════════════════════════════════════════════ */

.file-queue { margin-top: 0.75rem; }

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.queue-actions { display: flex; gap: 0.5rem; }

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  transition: background var(--transition);
}
.btn-sm:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-surface); color: var(--text); }

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.file-item:hover { border-color: var(--border-hover); }
.file-item.active { border-color: var(--primary); background: var(--primary-light); }

.file-item-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.file-item-info { flex: 1; min-width: 0; }

.file-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.file-item-status { flex-shrink: 0; }
.status-done { color: var(--success); }
.status-error { color: var(--error); }

.file-item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.file-item-remove:hover { background: rgba(239, 68, 68, 0.1); color: var(--error); }

/* ═══════════════════════════════════════════════════════════
   VIDEO PREVIEW
   ═══════════════════════════════════════════════════════════ */

.video-preview {
  background: var(--bg-raised);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.preview-title { font-size: 0.85rem; font-weight: 600; }

.btn-icon-sm {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.btn-icon-sm:hover { background: var(--bg-surface); color: var(--text); }

.video-preview video {
  width: 100%;
  max-height: 250px;
  background: #000;
  display: block;
}

.preview-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.preview-stat { text-align: center; }

.preview-stat-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.preview-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS TABS
   ═══════════════════════════════════════════════════════════ */

.settings-section {
  background: var(--bg-raised);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; padding: 1rem; }
.tab-content.active { display: block; }

.tab-heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.tab-heading + .tab-heading,
.format-grid + .tab-heading { margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   FORMAT GRID
   ═══════════════════════════════════════════════════════════ */

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.format-card:hover { border-color: var(--primary); transform: translateY(-1px); }

.format-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.format-card.unsupported {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.format-card-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.format-card-ext {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   QUALITY PRESETS
   ═══════════════════════════════════════════════════════════ */

.preset-list { display: flex; flex-direction: column; gap: 0.5rem; }

.preset-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.preset-card:hover { border-color: var(--primary); }

.preset-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.preset-icon { font-size: 1.5rem; flex-shrink: 0; }

.preset-name { font-size: 0.9rem; font-weight: 600; }
.preset-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   DEVICE GRID
   ═══════════════════════════════════════════════════════════ */

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.device-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.device-card:hover { border-color: var(--primary); }

.device-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.device-icon { font-size: 1.3rem; flex-shrink: 0; }
.device-name { font-size: 0.82rem; font-weight: 600; }
.device-desc { font-size: 0.7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   ADVANCED SETTINGS
   ═══════════════════════════════════════════════════════════ */

.settings-group {
  margin-bottom: 1.25rem;
}

.setting-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.setting-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  appearance: auto;
}

.setting-range {
  width: 100%;
  accent-color: var(--primary);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   CONVERT BUTTON
   ═══════════════════════════════════════════════════════════ */

.convert-section { text-align: center; }

.btn-convert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-convert:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-convert:active:not(:disabled) { transform: translateY(0); }
.btn-convert:disabled { opacity: 0.4; cursor: not-allowed; }

.convert-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   MEZAMII PROMO
   ═══════════════════════════════════════════════════════════ */

.mezamii-promo {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(184, 160, 210, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-align: center;
}

.promo-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(184, 160, 210, 0.15);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.promo-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.promo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn-mezamii {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.25rem;
  background: var(--lavender);
  color: #0e0e14;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity var(--transition);
}
.btn-mezamii:hover { opacity: 0.9; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════════════════ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.overlay-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.progress-file {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.progress-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn-cancel {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.btn-cancel:hover { background: var(--bg-surface); }

/* ═══════════════════════════════════════════════════════════
   COMPLETION
   ═══════════════════════════════════════════════════════════ */

.complete-check {
  margin-bottom: 0.75rem;
  animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }

.complete-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat-item { text-align: center; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); }

.complete-errors {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: left;
}

.complete-errors h4 {
  font-size: 0.82rem;
  color: var(--error);
  margin-bottom: 0.4rem;
}

.complete-error-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.complete-actions {
  margin: 1rem 0 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--primary-hover); }

.mezamii-cta {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.mezamii-cta-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.btn-mezamii-sm {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  background: var(--lavender);
  color: #0e0e14;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.btn-mezamii-sm:hover { opacity: 0.9; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer p + p { margin-top: 0.3rem; }

.footer a { color: var(--lavender); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 300;
  padding: 0.7rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  :root { --max-width: 720px; }

  .format-grid { grid-template-columns: repeat(5, 1fr); }
  .device-grid { grid-template-columns: repeat(2, 1fr); }

  .preview-info { grid-template-columns: repeat(6, 1fr); }

  .dropzone { padding: 4rem 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  :root { --max-width: 800px; }

  .header { padding: 0 2rem; }

  .app-container { padding: 1.5rem; }

  .device-grid { grid-template-columns: repeat(3, 1fr); }
}
