/* Custom Design System & CSS Variables */
:root {
  --bg-primary: #07070a;
  --bg-secondary: rgba(13, 13, 18, 0.75);
  --bg-sidebar: rgba(10, 10, 14, 0.9);
  --bg-card: rgba(22, 22, 30, 0.5);
  --bg-card-hover: rgba(30, 30, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --accent-red: #8f0000;
  --accent-red-glow: rgb(105, 0, 0);
  --accent-green: #00ff00;
  --accent-green-glow: rgb(0, 105, 0);

  --text-primary: #f4f4f7;
  --text-secondary: #9ea2b0;
  --text-muted: #646875;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --glass-blur: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.04) 0%, transparent 40%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Application Container Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 380px;
  min-width: 380px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 10;
  overflow-y: auto;
}

.brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-green));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text h1 span {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar Section Styling */
.section {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

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

.section-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 20px;
  color: var(--accent-green);
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Reference Image Cards */
.reference-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reference-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
  cursor: default;
  transition: var(--transition-normal);
}

.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition-normal);
}

.reference-card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-glow);
}

.reference-card:hover img {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Active State for Reference Image Selection */
.reference-card.active {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.reference-card.active img {
  opacity: 0.9;
}

.img-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  color: var(--text-primary);
  pointer-events: none;
}

/* Controls Forms */
.input-group {
  margin-bottom: 20px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Textarea Prompt box */
.prompt-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: var(--transition-normal);
}

textarea:focus {
  border-color: var(--accent-red);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Bottom Right Prompt Hint Requirement */
.prompt-hint {
  align-self: flex-end;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  pointer-events: none;
}

/* Segmented Control Selector */
.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.value-display {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-red);
}

.segmented-control {
  display: flex;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.segment-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: calc(var(--radius-md) - 4px);
  cursor: pointer;
  transition: var(--transition-fast);
}

.segment-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.segment-btn.active {
  background-color: var(--accent-red);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Toggle Button for Presets Panel */
.toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.toggle-btn svg {
  transition: transform var(--transition-normal);
}

.toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Presets Panel */
.presets-panel {
  max-height: 120px;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.presets-panel.collapsed {
  max-height: 0;
}

/* Style Preset Tags */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-tag {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.style-tag:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.style-tag.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(20, 184, 166, 0.15));
  border-color: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* Generate Button UI */
.action-container {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.generate-button {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-green));
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-red));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 2;
}

.generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.generate-button:hover .btn-glow {
  opacity: 1;
}

.generate-button:active {
  transform: translateY(1px);
}

/* Main Workspace Styling */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-primary);
  position: relative;
}

/* Workspace Header */
.workspace-header {
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(7, 7, 10, 0.4);
  backdrop-filter: blur(10px);
}

.model-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.status-dot.pulsing {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-text .highlight {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-mono);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Viewport Containers */
.viewport-container {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Empty State Initializer screen */
.empty-state {
  text-align: center;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.glowing-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  top: -80px;
  z-index: -1;
}

.empty-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(20, 184, 166, 0.05));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.quick-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.tip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.tip-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.tip-btn:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--text-primary);
}

/* Generation Output Grid */
.generation-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 24px;
  align-content: center;
  justify-content: center;
}

/* Dynamic Grid Classes depending on Count (1-4) */
.generation-grid.count-1 {
  grid-template-columns: minmax(280px, 500px);
  grid-template-rows: minmax(280px, 500px);
}

.generation-grid.count-2 {
  grid-template-columns: repeat(2, minmax(200px, 420px));
  grid-template-rows: auto;
}

.generation-grid.count-3 {
  grid-template-columns: repeat(3, minmax(180px, 320px));
  grid-template-rows: auto;
}

.generation-grid.count-4 {
  grid-template-columns: repeat(2, minmax(200px, 360px));
  grid-template-rows: repeat(2, minmax(200px, 360px));
}

.hidden {
  display: none !important;
}

/* Individual Generation Card */
.gen-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.gen-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: #050508;
  overflow: hidden;
}

.gen-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: #050508;
  overflow: hidden;
}

.gen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Denoising Simulation Loader UI */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 20px;
}

.spinner-ring {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 48px;
  height: 48px;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinner-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--accent-red);
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  border-top-color: var(--accent-green);
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  border-top-color: var(--text-primary);
  animation-delay: -0.15s;
}

@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
  height: 1.2rem;
}

.progress-bar-container {
  width: 100%;
  max-width: 220px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-green));
  border-radius: 20px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Digital Scanlines overlay during loader */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* Card details/footer */
.card-details {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(13, 13, 18, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex;
  flex-direction: column;
}

.card-title h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.card-title span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Lightbox Modal CSS */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(15px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.lightbox-content {
  display: flex;
  width: 90%;
  max-width: 1100px;
  height: 80vh;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image-wrapper {
  flex: 1.3;
  background-color: #030305;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-overlay-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.lightbox-overlay-details h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.lightbox-overlay-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.lightbox-sidebar {
  flex: 0.7;
  border-left: 1px solid var(--border-color);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.lightbox-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

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

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.meta-value.scrollable {
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.lightbox-actions {
  margin-top: auto;
}

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-green));
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

/* Animations and Responsive rules */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 50vh;
  }

  .lightbox-content {
    flex-direction: column;
    height: 90vh;
  }

  .lightbox-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 20px;
  }
}