/* SlideForge Design System
   Dark charcoal sidebar: #1e1e2e
   Light warm gray main: #f8f8f6
   Accent blue: #3b82f6
*/

/* ── Custom Properties ──────────────────────────────────────────────────────── */

:root {
  --sidebar-bg: #1e1e2e;
  --sidebar-text: #cdd6f4;
  --sidebar-muted: #7f849c;
  --sidebar-accent: #3b82f6;
  --sidebar-active-bg: #313244;
  --sidebar-hover-bg: #2a2a3e;

  --main-bg: #f8f8f6;
  --main-text: #1c1b1f;
  --main-muted: #6b7280;
  --main-border: #e5e7eb;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #eff6ff;
  --accent-focus-ring: rgba(59, 130, 246, 0.3);

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-light: #fef2f2;

  --card-bg: #ffffff;
  --card-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 4px 12px 0 rgba(0, 0, 0, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition: 200ms ease;

  --sidebar-width: 220px;
  --header-height: 56px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--main-bg);
  color: var(--main-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── App Layout ─────────────────────────────────────────────────────────────── */

#app {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-icon {
  color: var(--accent);
  font-size: 20px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  transition:
    background var(--transition),
    color var(--transition);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--sidebar-hover-bg);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: #fff;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.version-badge {
  font-size: 11px;
  color: var(--sidebar-muted);
  font-family: var(--font-mono);
}

/* ── Main Content ───────────────────────────────────────────────────────────── */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--main-bg);
  display: flex;
  flex-direction: column;
}

/* ── Page Header ────────────────────────────────────────────────────────────── */

.page-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--main-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-text);
}

.page-subtitle {
  font-size: 13px;
  color: var(--main-muted);
  margin-top: 2px;
}

/* ── Content Area ───────────────────────────────────────────────────────────── */

.content-area {
  padding: 24px 32px;
  flex: 1;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-body {
  padding: 20px;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Template Card ──────────────────────────────────────────────────────────── */

.template-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.template-card:hover {
  border-color: var(--accent);
}

.template-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-focus-ring);
}

.template-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--main-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-thumbnail .no-thumb {
  color: var(--main-muted);
  font-size: 13px;
  text-align: center;
}

.template-info {
  padding: 12px 16px;
}

.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--main-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.template-slides-count {
  font-size: 12px;
  color: var(--main-muted);
}

.template-category {
  font-size: 11px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  transition:
    background var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--main-border);
  color: var(--main-text);
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: var(--error-light);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--main-muted);
  border: 1px solid var(--main-border);
}

.btn-ghost:hover {
  background: var(--main-border);
  color: var(--main-text);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Upload Drop Zone ───────────────────────────────────────────────────────── */

.drop-zone {
  border: 2px dashed var(--main-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.drop-zone-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--main-muted);
}

.drop-zone-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--main-text);
}

.drop-zone-hint {
  font-size: 13px;
  color: var(--main-muted);
  margin-top: 4px;
}

/* ── Canvas Editor ──────────────────────────────────────────────────────────── */

.editor-layout {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 0;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.slide-palette {
  background: #fff;
  border-right: 1px solid var(--main-border);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-thumb-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  position: relative;
}

.slide-thumb-item:hover {
  border-color: var(--accent);
}

.slide-thumb-item.active {
  border-color: var(--accent);
}

.slide-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--main-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-thumb-label {
  font-size: 11px;
  padding: 4px 6px;
  color: var(--main-muted);
  background: #fff;
}

.editor-canvas-area {
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  overflow-y: auto;
}

.slide-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #fff;
  box-shadow: var(--card-shadow-hover);
  border-radius: 4px;
  overflow: hidden;
}

.slide-canvas-wrapper img.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-region-overlay {
  position: absolute;
  border: 2px solid transparent;
  transition:
    border-color var(--transition),
    background var(--transition);
  cursor: pointer;
}

.slide-region-overlay:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

.slide-region-overlay.filled {
  border-color: var(--success);
}

.slide-region-overlay.empty-required {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.03);
}

.region-tooltip {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
}

.slide-region-overlay:hover .region-tooltip {
  opacity: 1;
}

.editor-sidebar {
  background: #fff;
  border-left: 1px solid var(--main-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--main-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--main-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editor-actions {
  padding: 16px;
  border-top: 1px solid var(--main-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Image Manager ──────────────────────────────────────────────────────────── */

.image-manager-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.image-library {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.image-card:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}

.image-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-focus-ring);
}

.image-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--main-border);
  overflow: hidden;
}

.image-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-info {
  padding: 8px;
}

.image-card-name {
  font-size: 11px;
  color: var(--main-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crop-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cropper-container-wrapper {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.cropper-container-wrapper img {
  max-width: 100%;
}

.crop-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--main-border);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quality-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #92400e;
}

/* ── Deck Builder Sidebar ───────────────────────────────────────────────────── */

.deck-sidebar {
  background: #fff;
  border-left: 1px solid var(--main-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.deck-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deck-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--main-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--main-border);
  cursor: grab;
  transition: box-shadow var(--transition);
}

.deck-item:active {
  cursor: grabbing;
}

.deck-item:hover {
  box-shadow: var(--card-shadow);
}

.deck-item.sortable-ghost {
  opacity: 0.4;
  background: var(--accent-light);
  border-style: dashed;
  border-color: var(--accent);
}

.drag-handle {
  color: var(--main-muted);
  cursor: grab;
  font-size: 14px;
  flex-shrink: 0;
}

.deck-item-thumb {
  width: 64px;
  height: 36px;
  background: var(--main-border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.deck-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.deck-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-item-sub {
  font-size: 11px;
  color: var(--main-muted);
}

.deck-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--main-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition:
    background var(--transition),
    color var(--transition);
}

.icon-btn:hover {
  background: var(--main-border);
  color: var(--main-text);
}

.icon-btn.danger:hover {
  background: var(--error-light);
  color: var(--error);
}

/* ── Metadata Form ──────────────────────────────────────────────────────────── */

.metadata-form {
  padding: 16px;
  border-top: 1px solid var(--main-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--main-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--main-text);
  background: #fff;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus-ring);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* ── Export Modal ───────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 150ms ease;
}

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

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 200ms ease;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--main-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--main-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #d1d5db;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--main-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── Preflight Checklist ────────────────────────────────────────────────────── */

.preflight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.preflight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.preflight-item.error {
  background: var(--error-light);
  color: #7f1d1d;
}

.preflight-item.warning {
  background: #fffbeb;
  color: #78350f;
}

.preflight-item.pass {
  background: #f0fdf4;
  color: #14532d;
}

.preflight-icon {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

/* ── Export Format Picker ───────────────────────────────────────────────────── */

.export-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.format-option {
  border: 2px solid var(--main-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.format-option:hover,
.format-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.format-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.format-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--main-text);
}

.format-hint {
  font-size: 11px;
  color: var(--main-muted);
  margin-top: 2px;
}

/* ── Toast Notifications ────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 12px 16px;
  background: #1e293b;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: toastIn 250ms ease;
}

@keyframes toastIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success);
}
.toast.error {
  border-left: 4px solid var(--error);
}
.toast.warning {
  border-left: 4px solid var(--warning);
}
.toast.info {
  border-left: 4px solid var(--accent);
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.badge-blue {
  background: var(--accent-light);
  color: var(--accent);
}
.badge-green {
  background: #f0fdf4;
  color: #16a34a;
}
.badge-red {
  background: var(--error-light);
  color: var(--error);
}
.badge-yellow {
  background: #fffbeb;
  color: #b45309;
}

/* ── Filter Pills ───────────────────────────────────────────────────────────── */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--main-border);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.pill:hover,
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Empty State ────────────────────────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--main-muted);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--main-text);
  margin-bottom: 6px;
}

.empty-state-sub {
  font-size: 14px;
  color: var(--main-muted);
  margin-bottom: 24px;
  max-width: 320px;
}

/* ── Loading ────────────────────────────────────────────────────────────────── */

.loading-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--main-muted);
  font-size: 14px;
  gap: 16px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--main-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Divider ────────────────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--main-border);
  margin: 16px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 160px 1fr 260px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }
}
