/* ============================================================
   ContentGen Dashboard — Design System
   MFF Web Agency
   Outfit font + Dark mode + Glassmorphism
   (Alinhado ao ReelTemplate.jsx)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Tokens ─────────────────────────────────────────── */
:root {
  --bg-primary:    #07080d;
  --bg-secondary:  #0f1224;
  --bg-tertiary:   #131729;
  --bg-glass:      rgba(15, 18, 36, 0.55);
  --bg-glass-hover:rgba(15, 18, 36, 0.75);

  --accent:        #7e22ce;
  --accent-light:  #a855f7;
  --accent-glow:   rgba(126, 34, 206, 0.35);
  --accent-subtle: rgba(126, 34, 206, 0.12);

  --text-primary:  #ffffff;
  --text-muted:    #94a3b8;
  --text-dim:      #4a5568;

  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(126, 34, 206, 0.4);

  --success:       #22c55e;
  --success-bg:    rgba(34, 197, 94, 0.1);
  --error:         #ef4444;
  --error-bg:      rgba(239, 68, 68, 0.1);
  --warn:          #f59e0b;
  --warn-bg:       rgba(245, 158, 11, 0.1);
  --info:          #38bdf8;
  --info-bg:       rgba(56, 189, 248, 0.1);

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --sidebar-w:     240px;
  --header-h:      64px;

  --font:          'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --transition:    0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Layout ──────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: width var(--transition-slow);
  overflow: hidden;
}

.sidebar-logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sidebar-logo-text {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-logo-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.sidebar-logo-sub {
  font-size: 11px; font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  user-select: none;
}

.nav-item:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.nav-label { flex: 1; }

.nav-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulse-dot 2s infinite; }
.status-dot.offline { background: var(--error); }
.status-dot.warn    { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

.status-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.status-row span:first-of-type { flex: 1; }

/* ─── Main Area ───────────────────────────────────────────── */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ──────────────────────────────────────────────── */
.topbar {
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  flex: 1;
}
.topbar-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.topbar-actions {
  display: flex; align-items: center; gap: 8px;
}

/* ─── Page Content ────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px;
  display: none;
  animation: fadeSlideUp 0.3s ease forwards;
}
.page-content.active { display: block; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(126, 34, 206, 0.08);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Stat card */
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.stat-status {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Grid Layouts ────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.section { margin-bottom: 28px; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}
.btn-secondary:hover {
  background: rgba(126, 34, 206, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-sm  { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: rgba(255,255,255,0.15); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-select { appearance: none; cursor: pointer; }

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* Toggle */
.toggle-group {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}
.toggle-option {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.toggle-option.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Color picker row */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-picker-row input[type="color"] {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

/* ─── Log Terminal ────────────────────────────────────────── */
.log-panel {
  background: #030408;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.log-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.log-header-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-body {
  padding: 14px 16px;
  height: 260px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

.log-line {
  animation: logFadeIn 0.15s ease forwards;
}

@keyframes logFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ANSI color classes */
.log-stdout { color: #e2e8f0; }
.log-stderr { color: #fc8181; }
.log-info   { color: #63b3ed; }
.log-success{ color: #68d391; }
.log-warn   { color: #f6e05e; }
.log-muted  { color: #718096; }

/* ─── Progress / Status ───────────────────────────────────── */
.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.3s ease;
}

/* Pipeline steps */
.pipeline-steps {
  display: flex;
  gap: 0;
  position: relative;
}
.pipeline-steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.pipeline-step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.pipeline-step.active .pipeline-step-dot {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 16px var(--accent-glow);
}
.pipeline-step.done .pipeline-step-dot {
  border-color: var(--success);
  background: var(--success-bg);
}
.pipeline-step.error .pipeline-step-dot {
  border-color: var(--error);
  background: var(--error-bg);
}
.pipeline-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

/* ─── Badge / Tag ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-purple { background: var(--accent-subtle); color: var(--accent-light); border: 1px solid var(--border-accent); }
.badge-green  { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-red    { background: var(--error-bg); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.badge-yellow { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(245,158,11,0.3); }
.badge-blue   { background: var(--info-bg); color: var(--info); border: 1px solid rgba(56,189,248,0.3); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
}

/* ─── Media Grid (Videos / Images) ───────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.media-thumb {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.media-thumb:hover {
  border-color: var(--border-accent);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.media-thumb img,
.media-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.media-thumb:hover .media-thumb-overlay { opacity: 1; }
.media-thumb-name {
  font-size: 11px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.media-thumb-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  opacity: 0.7;
}

/* ─── Video Player ────────────────────────────────────────── */
.video-player-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
}
.video-player-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── Image Preview ───────────────────────────────────────── */
.image-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.image-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-preview-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.image-preview-placeholder .icon { font-size: 40px; opacity: 0.4; }

/* ─── Alert / Toast ───────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeSlideUp 0.25s ease;
}
.alert-success { background: var(--success-bg); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: var(--error-bg);   border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-warn    { background: var(--warn-bg);    border: 1px solid rgba(245,158,11,0.3); color: #fde68a; }
.alert-info    { background: var(--info-bg);    border: 1px solid rgba(56,189,248,0.3); color: #bae6fd; }

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  backdrop-filter: blur(16px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ─── Flex Utilities ──────────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; }  .gap-8  { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ─── Text Utilities ──────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }
.text-lg      { font-size: 18px; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Animations ──────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

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

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-logo-text, .nav-label, .nav-badge, .sidebar-logo-sub,
  .sidebar-footer .status-row span:first-of-type { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-icon { width: 20px; height: 20px; font-size: 18px; opacity: 1; }
  .main-area { margin-left: 60px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Upload Dropzone ──────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent-light);
  background: rgba(126, 34, 206, 0.05);
  box-shadow: inset 0 0 12px rgba(126, 34, 206, 0.05);
}
.upload-zone-icon {
  font-size: 24px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.upload-zone:hover .upload-zone-icon {
  transform: translateY(-2px);
  color: var(--accent-light);
}
.upload-zone-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.upload-zone-sub {
  font-size: 11px;
  color: var(--text-dim);
}
.upload-progress-container {
  display: none;
  width: 100%;
  margin-top: 8px;
  flex-direction: column;
  gap: 4px;
}
.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

