#gradient-container {
  height: 750px;
  pointer-events: none;
  z-index: 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#gradient-title-4,
.preview-section-title-container {
  display: inline-block;
  background: inherit; /* inherit gradient from DynamicGradient */
  -webkit-text-fill-color: transparent;
  background-clip: text !important;
  color: transparent;
  font-size: 70px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  text-shadow: 0px 2.45px 1.15px rgba(26, 26, 26, 0.2);
}

.preview-section {
  padding: 20px 2rem;
  position: relative;
  z-index: 5;
}

.preview-section-title-container {
  margin: 2.5rem 0 0 2rem;
  width: 275px;
}

.toolbar-container {
  position: absolute;
  display: flex;
  justify-content: center;
}

.toolbar {
  z-index: 10;
  display: flex;
  color: #ffffff;
  gap: 12px;
  align-items: center;
  max-width: 560px;
  margin: 10px;
  background: rgba(15, 18, 35, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#time-slider {
  position: relative;
  width: min(20vw, 520px);
}
.time-label {
  white-space: nowrap;
  opacity: 0.9;
}
.btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: inherit;
  padding: 6px 10px;
  cursor: pointer;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.controls-panel {
  position: absolute;
  top: 22.5px;
  right: 30px;
  max-height: 721px;
  overflow-y: auto;
  background: rgba(15, 18, 35, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px;
  z-index: 10;
  color: white;
  font-family: sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.controls-panel h3 {
  margin-top: 0;
  font-size: 16px;
  text-align: center;
}

.controls-panel label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.controls-panel input,
.controls-panel select {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
  padding: 4px 6px;
  font-size: 13px;
}

.controls-panel button.btn {
  width: 100%;
  margin-bottom: 12px;
  font-size: 13px;
}

.palette-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
}

.palette-section hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin-top: 8px;
  margin-bottom: 4px;
}
.palette-title {
  font-size: 16px;
}
/* Mini gradient preview for each palette section */
.palette-preview {
  width: 100%;
  height: 20px;
  margin-top: 5px;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.palette-time {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.palette-time label {
  flex: 1;
  font-size: 13px;
}
.palette-time input {
  width: 100%;
  padding: 4px 0;
  border-radius: 4px;
  border: none;
}

@media (max-width: 768px) {
  #gradient-title-4 {
    font-size: 2rem;
  }

  .preview-section {
    padding: 20px 1rem;
  }

  .preview-section-title-container {
    font-size: 2em;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
      sans-serif;
    z-index: 20;
    margin: 1rem 1rem 0;
    width: fit-content;
  }
  .preview-section-title-container span {
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
      sans-serif;
    z-index: 20;
  }

  .toolbar-container {
    position: absolute;
    display: flex;
    justify-content: center;
  }

  .toolbar {
    max-width: 460px;
    margin: 5px;
    padding: 5px 14px;
  }

  #time-slider {
    width: 40%;
  }
  .time-label {
    white-space: nowrap;
    opacity: 0.9;
  }

  .controls-panel {
    margin-top: 365px;
    max-height: 350px;
    padding: 14px 16px;
  }

  .controls-panel h3 {
    font-size: 1rem;
  }

  .controls-panel label {
    font-size: 0.85rem;
  }
}
