/* ===== Global Dark Theme ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background: #0a0a0f;
    color: #eee;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ===== Header ===== */
  header {
    padding: 2rem;
  }
  
  header h1 {
    font-size: 2.5rem;
    color: #0ff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
  }
  
  header p {
    margin-top: 0.5rem;
    color: #aaa;
  }
  
  /* ===== Canvas ===== */
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  canvas {
    border: 2px solid #111;
    background: #000;
    max-width: 90%;
    max-height: 70vh;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    border-radius: 10px;
  }
  
  /* ===== Controls ===== */
  .controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(20, 20, 30, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  }
  
  label {
    color: #0ff;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Slider styling */
  input[type=range] {
    -webkit-appearance: none;
    width: 120px;
    margin-top: 0.5rem;
    background: transparent;
    cursor: pointer;
  }
  
  input[type=range]::-webkit-slider-runnable-track {
    height: 4px;
    background: #222;
    border-radius: 2px;
  }
  
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #0ff;
    box-shadow: 0 0 8px #0ff, 0 0 15px rgba(0, 255, 255, 0.5);
    transition: 0.3s;
  }
  
  input[type=range]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px #0ff, 0 0 25px rgba(0, 255, 255, 0.8);
  }
  
  /* ===== Buttons ===== */
  button {
    background: #111;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  button:hover {
    background: #0ff;
    color: #000;
    text-shadow: 0 0 10px #000;
  }
  
  /* ===== Footer ===== */
  footer {
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
  }