/* === Base Layout === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background-color: #000;
  }
  
  canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
  }
  
  /* === Controls Container + Toggle Group === */
  #controls-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: flex-start;
    z-index: 10;
  }
  
  /* === Controls Panel === */
  #controls {
    background: rgba(0, 0, 0, 0.85);
    padding: 16px;
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    max-width: 220px;
    transition: transform 0.3s ease;
  }
  
  /* Slide-out behavior */
  #controls.hidden {
    transform: translateX(-120%);
  }
  
  /* === Toggle Button === */
  #togglePanel {
    margin-left: 10px;
    background: #000;
    color: white;
    border: 1px solid white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    height: fit-content;
    transition: 0.3s ease;
    opacity: 1;
  }
  
  #togglePanel.minimized {
    opacity: 0.2;
    transform: translateX(-220%);
  }
  
  #togglePanel.minimized:hover {
    opacity: 0.6;
  }  
  
  /* === Inputs === */
  label {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  input[type="range"] {
    width: 100%;
  }
  
  input[type="color"] {
    width: 100%;
    height: 28px;
    border: none;
    border-radius: 4px;
    padding: 0;
    outline: none;
    cursor: pointer;
  }
  
  /* Optional: thin border for clarity */
  input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
  }
  input[type="color"]::-webkit-color-swatch {
    border: 1px solid #444;
    border-radius: 4px;
  }
  
  /* Checkbox styling */
  input[type="checkbox"] {
    transform: scale(1.2);
    margin-top: 4px;
  }
  
  /* Reset button */
  #resetButton {
    background: #111;
    border: 1px solid white;
    padding: 6px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
  }
  #resetButton:hover {
    background: #333;
  }
  
  /* === Corner Color Grid === */
  #colorGrid {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
  }
  
  .corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .corner label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
  }
  