
.header-section {
  margin-bottom: 0.5rem;
}

.template-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.template-description {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 0 1.5rem 0;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

    .editor-container {
      display: flex;
      flex-direction: row;
      gap: 2rem;
    }

    .left-panel, .right-panel, .generate-panel {
      flex: 1;
      min-width: 220px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      background: white;
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }

    @media (max-width: 768px) {
      .editor-container {
        flex-direction: column;
      }
      .left-panel, .right-panel, .generate-panel {
        width: 100%;
        min-width: auto;
      }
    }

.aspect-ratio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.aspect-ratio label {
  flex: 0 0 auto;
 
}

.aspect-ratio select {
  flex: 1;
      padding: 0.4rem;
      border: 1px solid #ccc;
      border-radius: 4px;
}

	
#canvas {
  width: 100%;
  max-height: 70vh;
  height: auto;
  background-color: #111;
  border-radius: 8px;
  display: block;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  pointer-events:none;
  object-fit: contain; /* optional: makes it scale nicely */
  margin: 0 auto;       /* optional: center horizontally */
}


    .play-controls {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 0.5rem;
    }

    .play-button {
      padding: 0.5rem 1rem;
      background: #007BFF;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .timeline {
      margin-top: 0.5rem;
    }

    .timeline input[type="range"] {
      width: 100%;
    }
	
	
#timeline {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  background: transparent;
  outline: none;
  margin: 10px 0;
}

/* --- WebKit (Chrome, Safari, Edge) --- */

/* Track with dynamic fill: blue for progress, light gray for remainder */
#timeline::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(
    to right,
    #3b82f6 0%,
    #3b82f6 var(--progress),
    #e5e5e5 var(--progress),
    #e5e5e5 100%
  );
  border-radius: 6px;
}

/* Thumb styled as orange/red playhead */
#timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 24px;
  background: #ef4444;
  border: none;
  border-radius: 2px;
  margin-top: -6px;
  cursor: pointer;
  box-shadow: 0 0 0 1px #0003;
  position: relative;
  z-index: 2;
}

/* --- Firefox Support --- */

#timeline::-moz-range-track {
  height: 12px;
  background: #e5e5e5;
  border-radius: 6px;
}

#timeline::-moz-range-progress {
  height: 12px;
  background: #3b82f6;
  border-radius: 6px;
}

#timeline::-moz-range-thumb {
  width: 6px;
  height: 24px;
  background: #ef4444;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 0 0 1px #0003;
  position: relative;
  z-index: 2;
}

	
	
	
	

    .param {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .param label {
      font-size: 0.9rem;
      font-weight: 500;
    }
	
	

    .param input, .param select {
      padding: 0.4rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
	
input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  width: 100%;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  background-color: transparent;
  box-shadow: 0 0 0 1px #ccc inset;
}

/* Optional: add hover/focus effect */
input[type="color"]:hover,
input[type="color"]:focus {
  box-shadow: 0 0 0 2px #3b82f6 inset;
}




    .generate-button {
      padding: 0.5rem 1rem;
      background-color: #10b981;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

