/**
 * Gradient Controls Styles
 * Only visible in design mode
 */

 #gradient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* Behind everything */
    overflow: hidden;
  }
  
  #gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  #gradient-controls {
    position: fixed;
    top: 20px;
    right: 20px; /* Position controls on right side */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px;
    color: white;
    width: 280px;
    z-index: 100;
    display: none; /* Hidden by default, shown in design mode */
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  }
  
  #toggle-gradient-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    border: 1px solid #444;
    font-weight: bold;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    /* Remove the display: none from here */
  }
  
  /* Hide by default with a separate rule */
  body:not(.design-mode) #toggle-gradient-controls {
    display: none;
  }
  
  /* Show with flex when in design mode */
  body.design-mode #toggle-gradient-controls {
    display: flex;
  }
  
  #toggle-gradient-controls:hover {
    background: rgba(50, 50, 50, 0.7);
    opacity: 1;
  }
  
  /* Rest of the gradient controls CSS */
  .gradient-panel {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  .gradient-panel-header {
    background-color: rgba(50, 50, 50, 0.8);
    padding: 8px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .gradient-panel-header:hover {
    background-color: rgba(70, 70, 70, 0.8);
  }
  
  .gradient-panel-content {
    padding: 10px;
    display: none;
    background-color: rgba(30, 30, 30, 0.6);
  }
  
  .gradient-panel-content.active {
    display: block;
  }
  
  .gradient-panel-header .panel-arrow {
    transition: transform 0.3s;
  }
  
  .gradient-panel-header.active .panel-arrow {
    transform: rotate(180deg);
  }
  
  /* Position gradient controls on different screen sizes */
  @media (min-width: 768px) {
    #gradient-controls {
      width: 320px; /* Slightly wider on desktop */
    }
    
    /* Keep on right side - do not override with left position */
    #toggle-gradient-controls {
      right: 20px; 
    }
  }
  
  /* Make sure controls only show in design mode */
  body:not(.design-mode) .design-element {
    display: none !important;
  }