/* Compact 4-Column Gradient Controls */

/* Override layout.css gradient styles */
[data-view="gradient"] #gradient {
  height: 400px !important;
  width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* === GRADIENT PREVIEW SECTION === */
.gradient-preview-section {
  margin: 0 32px 24px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.gradient-preview-content {
  padding: 0;
  max-height: 500px;
  overflow: hidden;
  transition: max-height .3s ease;
}

.gradient-preview-content.collapsed {
  max-height: 0;
  padding: 0;
}

#gradient {
  height: 400px;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  position: relative;
  overflow: hidden;
  margin: 0;
}

/* === PANEL HEADER STYLING === */
.panel-header {
  padding: 16px 20px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s ease;
}

.panel-header:hover {
  background: rgba(255,255,255,.04);
}

.panel-toggle {
  font-size: 10px;
  opacity: 0.7;
  transition: transform .2s ease;
}

.panel-content {
  padding: 20px;
}

/* === ANGLE DISPLAY === */
.angle-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.angle-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}

/* === ENHANCED CODE SECTION === */
.code-section-enhanced {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.code-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-right: 12px;
}

.code-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-title {
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-status {
  font-size: 9px;
  color: var(--text);
  opacity: 0.6;
}

.code-actions {
  display: flex;
  gap: 6px;
}

.code-btn-enhanced {
  padding: 6px 10px;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.code-btn-enhanced:hover {
  border-color: var(--ring);
  background: var(--panel);
  transform: translateY(-1px);
}

.code-btn-enhanced.primary {
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91,140,255,.2);
}

.code-btn-enhanced.primary:hover {
  box-shadow: 0 4px 12px rgba(91,140,255,.3);
  transform: translateY(-2px);
}

.code-content-area-enhanced {
  max-height: 200px;
  overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid var(--line);
}

.code-content-area-enhanced.collapsed {
  max-height: 0;
}

.code-editor-enhanced {
  display: flex;
  background: rgba(0,0,0,.6);
  min-height: 140px;
}

.code-line-numbers {
  padding: 16px 12px;
  background: rgba(0,0,0,.8);
  color: #6b7280;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,.1);
  min-width: 45px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre;
}

.code-preview-enhanced {
  flex: 1;
  background: transparent;
  color: #e6e9ff;
  padding: 16px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 11px;
  line-height: 1.5;
  border: none;
  resize: none;
  outline: none;
  white-space: pre;
  overflow-y: auto;
}

.code-preview-enhanced::placeholder {
  color: #6b7280;
}

/* Syntax highlighting colors */
.code-preview-enhanced {
  color: #e6e9ff;
}

/* === RESPONSIVE UPDATES === */
@media (max-width: 768px) {
  .gradient-preview-section {
    margin: 0 20px 16px 20px;
  }

  .gradient-preview-content {
    padding: 0;
  }

  #gradient {
    height: 250px !important;
  }

  .code-header-content {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .code-actions {
    justify-content: center;
  }

  .code-editor-enhanced {
    min-height: 120px;
  }
}

#gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 50%);
  pointer-events: none;
}

/* Static viewport - no transform animations on container */
#gradient * {
  will-change: auto;
}

/* ========================================
   ADVANCED GRADIENT ANIMATIONS SYSTEM
   ======================================== */

/* CSS Custom Property for angle animation */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Animation Classes - Base durations (overridden by speed modifiers) */
#gradient.animate-sweep { animation: gradientSweep 8s linear infinite; }
#gradient.animate-flow { animation: gradientFlow 8s ease-in-out infinite; }
#gradient.animate-pulse { animation: gradientPulse 8s ease-in-out infinite; }
#gradient.animate-spin { animation: gradientSpin 8s linear infinite; }
#gradient.animate-drift { animation: gradientDrift 8s linear infinite; }
#gradient.animate-shimmer { animation: gradientShimmer 8s ease-in-out infinite; }
#gradient.animate-wave { animation: gradientWave 8s linear infinite; }
#gradient.animate-zoom { animation: gradientZoom 8s ease-in-out infinite; }

/* Speed modifiers - use !important to override base durations */
#gradient.speed-slow { animation-duration: 12s !important; }
#gradient.speed-medium { animation-duration: 6s !important; }
#gradient.speed-fast { animation-duration: 3s !important; }

/* === SWEEP - Fast horizontal sliding === */
@keyframes gradientSweep {
  0% {
    background-position: 0% 50%;
    background-size: 300% 100%;
  }
  100% {
    background-position: 100% 50%;
    background-size: 300% 100%;
  }
}

/* === FLOW - Smooth diagonal movement === */
@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
    background-size: 250% 250%;
  }
  50% {
    background-position: 100% 100%;
    background-size: 250% 250%;
  }
  100% {
    background-position: 0% 0%;
    background-size: 250% 250%;
  }
}

/* === PULSE - Dramatic breathing effect === */
@keyframes gradientPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.3) saturate(1.5);
  }
}

/* === SPIN - Full rotation === */
@keyframes gradientSpin {
  from {
    --gradient-angle: 0deg;
  }
  to {
    --gradient-angle: 360deg;
  }
}

/* === DRIFT - Rainbow color shift === */
@keyframes gradientDrift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* === SHIMMER - Brightness pulsing === */
@keyframes gradientShimmer {
  0%, 100% {
    filter: brightness(1) contrast(1);
  }
  25% {
    filter: brightness(1.4) contrast(1.15);
  }
  50% {
    filter: brightness(0.8) contrast(1.25);
  }
  75% {
    filter: brightness(1.4) contrast(1.15);
  }
}

/* === WAVE - Vertical sliding === */
@keyframes gradientWave {
  0% {
    background-position: 50% 0%;
    background-size: 100% 300%;
  }
  100% {
    background-position: 50% 100%;
    background-size: 100% 300%;
  }
}

/* === ZOOM - Dramatic zoom effect === */
@keyframes gradientZoom {
  0%, 100% {
    background-size: 100% 100%;
    background-position: 50% 50%;
  }
  50% {
    background-size: 250% 250%;
    background-position: 50% 50%;
  }
}

/* === 4-COLUMN LAYOUT === */
.gradient-controls-container {
  padding: 16px 20px 12px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

/* === COMPACT PANELS === */
.control-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.panel-header {
  padding: 8px 12px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === TYPE PANEL === */
.type-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type-btn {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  opacity: 0.7;
  text-align: center;
}

.type-btn.active {
  background: var(--ring);
  color: white;
  opacity: 1;
  border-color: var(--ring);
}

.type-btn:hover:not(.active) {
  opacity: 1;
  border-color: var(--ring);
}

/* === DIRECTION PANEL === */
.direction-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.angle-slider-compact {
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
}

.angle-slider-compact::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
  cursor: pointer;
  border: 1px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.angle-value-compact {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--ring);
  text-align: center;
}

.quick-directions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
}

.quick-dir {
  width: 100%;
  height: 18px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .1s ease;
  opacity: 0.6;
}

.quick-dir:hover {
  opacity: 1;
  border-color: var(--ring);
}

/* === ANIMATION PANEL === */
.animation-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.animation-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 10px;
}

.animation-toggle input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
  cursor: pointer;
  position: relative;
}

.animation-toggle input[type="checkbox"]:checked {
  background: var(--ring);
  border-color: var(--ring);
}

.animation-toggle input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  font-weight: bold;
}

.animation-types {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.anim-type {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 9px;
  cursor: pointer;
  transition: all .1s ease;
  opacity: 0.6;
  text-align: center;
}

.anim-type.active {
  background: var(--ring);
  color: white;
  opacity: 1;
  border-color: var(--ring);
}

.anim-type:hover:not(.active) {
  opacity: 1;
  border-color: var(--ring);
}

.speed-controls {
  display: flex;
  gap: 2px;
}

.speed-btn {
  flex: 1;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 8px;
  cursor: pointer;
  transition: all .1s ease;
  opacity: 0.6;
}

.speed-btn.active {
  background: var(--ring);
  color: white;
  opacity: 1;
  border-color: var(--ring);
}

.speed-btn:hover:not(.active) {
  opacity: 1;
  border-color: var(--ring);
}

/* === COLOR STOPS PANEL === */
.stops-area-compact {
  max-height: 120px;
  overflow-y: auto;
}

.palette-colors-label {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 8px 0 4px 0;
}

.palette-colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--panel-2);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.palette-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 24px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.palette-color-swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(0,0,0,.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.1) 25%, transparent 25%);
  background-size: 4px 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.palette-color-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.palette-color-swatch:hover::before {
  opacity: 1;
}

.palette-color-swatch:active {
  transform: scale(1.05);
}

.color-stop-compact {
  display: grid;
  grid-template-columns: 16px 1fr 18px 16px;
  gap: 4px;
  align-items: center;
  padding: 3px 4px;
  border-radius: 3px;
  background: var(--panel-2);
  border: 1px solid transparent;
  transition: all .1s ease;
  margin-bottom: 2px;
}

.color-stop-compact:hover {
  background: var(--panel);
  border-color: rgba(255,255,255,.1);
}

.stop-color-mini {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.stop-color-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, rgba(255,255,255,.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.1) 25%, transparent 25%);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.stop-color-input-mini {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.stop-position-compact {
  display: flex;
  align-items: center;
  gap: 3px;
}

.position-slider-mini {
  appearance: none;
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: var(--line);
  outline: none;
}

.position-slider-mini::-webkit-slider-thumb {
  appearance: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ring);
  cursor: pointer;
  border: 1px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.position-input-mini {
  width: 24px;
  height: 14px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-align: center;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 7.5px;
  font-weight: 600;
}

.stop-animate-toggle {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .1s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.stop-animate-toggle[data-active="true"] {
  opacity: 1;
  background: var(--ring);
  color: white;
  border-color: var(--ring);
}

.stop-animate-toggle[data-active="true"] svg {
  animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.stop-animate-toggle:hover {
  opacity: 1;
  border-color: var(--ring);
}

.stop-animate-toggle svg {
  width: 10px;
  height: 10px;
}

.stop-remove-mini {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(239, 68, 68, .3);
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .1s ease;
  opacity: 0.6;
}

.stop-remove-mini:hover:not([disabled]) {
  opacity: 1;
  background: rgba(239, 68, 68, .2);
}

.stop-remove-mini svg {
  width: 8px;
  height: 8px;
}

.add-stop-compact {
  width: 100%;
  padding: 6px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .1s ease;
  font-size: 9px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.add-stop-compact:hover {
  opacity: 1;
  border-color: var(--ring);
  color: var(--ring);
}

/* === ADVANCED + CODE ROW === */
.bottom-row {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* === COLLAPSIBLE PANELS === */
.panel-header {
  padding: 8px 12px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s ease;
}

.panel-header:hover {
  background: rgba(255,255,255,.04);
}

.panel-toggle {
  font-size: 10px;
  opacity: 0.7;
  transition: transform .2s ease;
}

.panel-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.panel-content.collapsed {
  max-height: 0;
  padding: 0 12px;
}

/* === ADVANCED SETTINGS === */
.advanced-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.code-btn {
  padding: 6px 10px;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
  font-weight: 500;
  width: 100%;
}

.code-btn:hover {
  border-color: var(--ring);
  background: var(--panel);
  transform: translateY(-1px);
}

.code-btn.primary {
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91,140,255,.2);
}

.code-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(91,140,255,.3);
  transform: translateY(-2px);
}

.advanced-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.advanced-content.collapsed {
  max-height: 0;
  padding: 0 12px;
}

.advanced-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advanced-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.advanced-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.advanced-control input[type="range"] {
  flex: 1;
  appearance: none;
  height: 2px;
  border-radius: 1px;
  background: var(--line);
  outline: none;
}

.advanced-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ring);
  cursor: pointer;
  border: 1px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.advanced-value {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--ring);
  min-width: 30px;
  text-align: center;
}

/* === CODE SECTION === */
.code-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.code-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.code-header {
  padding: 8px 12px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all .2s ease;
}

.code-header:hover {
  background: rgba(255,255,255,.04);
}

.code-content-area {
  max-height: 300px;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.code-content-area.collapsed {
  max-height: 0;
  padding: 0;
}

.code-preview {
  height: 120px;
  background: rgba(0,0,0,.4);
  color: #e6e9ff;
  padding: 12px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 10px;
  line-height: 1.4;
  overflow-y: auto;
  white-space: pre;
  border: none;
  resize: none;
  outline: none;
  margin: 0;
}

/* === SCROLLBARS === */
.stops-area-compact::-webkit-scrollbar,
.code-preview::-webkit-scrollbar {
  width: 3px;
}

.stops-area-compact::-webkit-scrollbar-track,
.code-preview::-webkit-scrollbar-track {
  background: transparent;
}

.stops-area-compact::-webkit-scrollbar-thumb,
.code-preview::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .gradient-controls-container {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 8px 16px;
  }
  
  #gradient {
    height: 200px;
    margin: 16px;
  }
  
  .bottom-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .advanced-content {
    gap: 8px;
  }
  
  .code-preview {
    height: 100px;
  }
}