/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252540;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d2d44;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
.zl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.zl-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.zl-nav-brand svg {
  width: 32px;
  height: 32px;
}

.zl-nav-links {
  display: flex;
  gap: 0.5rem;
}

.zl-nav-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.zl-nav-btn.active {
  background: var(--primary);
  color: white;
}

.zl-nav-btn:not(.active) {
  background: transparent;
  color: var(--text-secondary);
}

.zl-nav-btn:not(.active):hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ===== Slideshow View ===== */
.zl-slideshow-view {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
}

.zl-slideshow-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.zl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-duration, 1s) ease-in-out,
              transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.05);
  will-change: opacity, transform;
}

.zl-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.zl-slide.exit {
  opacity: 0;
  transform: scale(1.08);
}

/* No cropping: media is fully visible, fitted as large as possible
   (touches the screen's largest dimension); black fills the rest. */
.zl-slide-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

.zl-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.zl-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.zl-slide-text-overlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 80%;
  z-index: 2;
}

.zl-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.zl-slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  white-space: pre-wrap;
}

.zl-slide-fullscreen-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.zl-slide-fullscreen-text .zl-slide-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 90%;
  margin-bottom: 1.5rem;
}

.zl-slide-fullscreen-text .zl-slide-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  max-width: 70%;
  margin: 0 auto;
  white-space: pre-wrap;
}

/* Slide animations */
.zl-slide.active .zl-slide-text-overlay .zl-slide-title {
  animation: slideUp 0.8s ease-out 0.3s both;
}

.zl-slide.active .zl-slide-text-overlay .zl-slide-subtitle {
  animation: slideUp 0.8s ease-out 0.5s both;
}

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

/* Slide counter */
.zl-slide-counter {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: white;
  z-index: 10;
}

/* Play/Pause overlay */
.zl-play-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.zl-play-pause.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.zl-play-pause.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.zl-play-pause:hover {
  background: rgba(255, 255, 255, 0.25);
}

.zl-play-pause svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Controls */
.zl-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  z-index: 50;
}

.zl-control-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.zl-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zl-control-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Admin View ===== */
.zl-admin-view {
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 2rem;
}

.zl-admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.zl-admin-header {
  margin-bottom: 2rem;
}

.zl-admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.zl-admin-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Settings panel */
.zl-settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.zl-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.zl-setting-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zl-setting-item label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.zl-setting-item input[type="number"],
.zl-setting-item input[type="text"],
.zl-setting-item select {
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
}

.zl-setting-item input:focus,
.zl-setting-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Theme selector */
.zl-theme-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.zl-theme-card {
  min-width: 180px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.zl-theme-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.zl-theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.zl-theme-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.zl-theme-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.zl-theme-card .zl-theme-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.zl-theme-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.zl-theme-btn:hover {
  background: var(--danger);
  color: white;
}

/* Add theme button */
.zl-add-theme {
  min-width: 180px;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.zl-add-theme:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Upload area */
.zl-upload-area {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.zl-upload-area:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.zl-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.zl-upload-area svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.zl-upload-area h3 {
  margin-bottom: 0.5rem;
}

.zl-upload-area p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.zl-upload-input {
  display: none;
}

/* Files grid */
.zl-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.zl-file-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.zl-file-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.zl-file-item img,
.zl-file-item video {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.zl-file-item .zl-file-name {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zl-file-item .zl-file-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--danger);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.zl-file-item:hover .zl-file-delete {
  opacity: 1;
}

/* ===== Slides Management ===== */
.zl-slides-section {
  margin-top: 2rem;
}

.zl-slides-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.zl-slides-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zl-slide-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: var(--transition);
}

.zl-slide-item:hover {
  border-color: var(--primary-light);
}

.zl-slide-item.dragging {
  opacity: 0.5;
  border-color: var(--primary);
}

.zl-slide-item.drop-before {
  box-shadow: inset 0 3px 0 0 var(--primary);
}

.zl-slide-item.drop-after {
  box-shadow: inset 0 -3px 0 0 var(--primary);
}

.zl-slide-item .zl-slide-order {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: grab;
}

.zl-slide-item .zl-slide-preview {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

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

.zl-slide-item .zl-slide-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.zl-slide-item .zl-slide-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.zl-slide-item .zl-slide-type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zl-slide-item .zl-slide-type-badge.image {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.zl-slide-item .zl-slide-type-badge.video {
  background: rgba(236, 72, 153, 0.15);
  color: var(--secondary);
}

.zl-slide-item .zl-slide-type-badge.text {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.zl-slide-item .zl-slide-actions {
  display: flex;
  gap: 0.5rem;
}

.zl-slide-actions .zl-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.zl-slide-actions .zl-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.zl-slide-actions .zl-action-btn.delete:hover {
  background: var(--danger);
  color: white;
}

.zl-slide-actions .zl-action-btn.move-up:hover,
.zl-slide-actions .zl-action-btn.move-down:hover {
  background: var(--primary);
  color: white;
}

/* Add slide button */
.zl-add-slide-btn {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 1rem;
}

.zl-add-slide-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal */
.zl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zl-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.zl-modal-header h2 {
  font-size: 1.25rem;
}

.zl-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.zl-modal-close:hover {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.zl-modal-body {
  padding: 1.5rem;
}

.zl-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Form elements */
.zl-form-group {
  margin-bottom: 1.25rem;
}

.zl-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.zl-form-group input,
.zl-form-group textarea,
.zl-form-group select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
}

.zl-form-group input:focus,
.zl-form-group textarea:focus,
.zl-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.zl-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.zl-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.zl-btn-primary {
  background: var(--primary);
  color: white;
}

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

.zl-btn-secondary {
  background: var(--bg-dark);
  color: var(--text-secondary);
}

.zl-btn-secondary:hover {
  color: var(--text-primary);
}

.zl-btn-danger {
  background: var(--danger);
  color: white;
}

.zl-btn-danger:hover {
  background: #dc2626;
}

.zl-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Empty state */
.zl-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.zl-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.zl-empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .zl-admin-container {
    padding: 0 1rem;
  }

  .zl-settings-grid {
    grid-template-columns: 1fr;
  }

  .zl-files-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .zl-controls {
    bottom: 1rem;
  }

  .zl-slide-counter {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Toast notifications */
.zl-toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zl-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
}

.zl-toast.success {
  border-left: 3px solid var(--success);
}

.zl-toast.error {
  border-left: 3px solid var(--danger);
}

.zl-toast.info {
  border-left: 3px solid var(--primary);
}

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

/* Pulse animation for recording/live indicator */
.zl-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== Section Cards (Admin) ===== */
.zl-section-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.zl-section-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  min-width: 200px;
  flex: 1;
  max-width: 300px;
}

.zl-section-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.zl-section-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.zl-section-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.zl-section-card-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zl-section-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.zl-section-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.zl-section-action {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}

.zl-section-action:hover {
  background: var(--primary);
  color: white;
}

/* ===== Section Container (Admin) ===== */
.zl-sections-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.zl-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.zl-section.active {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.zl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-bottom: 1px solid var(--border);
}

.zl-section-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.zl-section-header h3 .zl-section-count {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.zl-section-container {
  padding: 1rem 1.5rem;
}

.zl-section-slides-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Drop target for sections */
.zl-section[data-drop-target="true"] {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.zl-section[data-drop-target="true"] .zl-section-header {
  background: rgba(99, 102, 241, 0.15);
}

/* Section divider between sections in admin */
.zl-section + .zl-section {
  margin-top: 1rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}