/* =======================================
   SVG WAVE GENERATOR STYLESHEET
   ======================================= */

.wave-generator-tool {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1.5rem 0 3rem;
}

.wave-generator-tool .tool-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .wave-generator-tool .tool-layout {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Controls Panel */
.wave-generator-tool .tool-controls {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 0 0 380px;
  max-width: 100%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.wave-generator-tool .tool-controls h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  color: var(--accent, #00f0ff);
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 0.75rem;
}

.wave-generator-tool .control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wave-generator-tool .control-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary, #ffffff);
  display: flex;
  justify-content: space-between;
}

.wave-generator-tool .control-group label span {
  color: var(--accent, #00f0ff);
  font-family: monospace;
  font-weight: bold;
}

.wave-generator-tool select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--fg, #ffffff);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.wave-generator-tool select:focus {
  border-color: var(--accent, #00f0ff);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Color Pickers Layout */
.wave-generator-tool .color-picker-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.wave-generator-tool .picker-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.wave-generator-tool .picker-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary, #cccccc);
}

.wave-generator-tool input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.wave-generator-tool input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.wave-generator-tool input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Range input layout */
.wave-generator-tool input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 10px 0;
}

.wave-generator-tool input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #00f0ff);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  transition: transform 0.1s ease;
}

.wave-generator-tool input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.wave-generator-tool .control-actions {
  margin-top: 0.75rem;
}

.wave-generator-tool #btn-randomize {
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
}

/* Preview Stage Layout */
.wave-generator-tool .preview-stage-container {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}

.wave-generator-tool .preview-stage {
  width: 100%;
  height: 480px;
  min-height: 480px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #05070f;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

.wave-generator-tool .preview-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(5, 7, 15, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.wave-generator-tool svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wave-generator-tool svg[data-pos="bottom"] {
  bottom: 0;
  top: auto;
}

.wave-generator-tool svg[data-pos="top"] {
  top: 0;
  bottom: auto;
}

/* Exporters Code Panel styling */
.exporters-layout {
  width: 100%;
  margin-top: 1rem;
}

.exporter-panel {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exporter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exporter-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--accent, #00f0ff);
  margin: 0;
}

.exporter-header .action-row {
  display: flex;
  gap: 0.75rem;
}

.copy-btn {
  background: transparent;
  color: var(--accent, #00f0ff);
  border: 1px solid var(--accent, #00f0ff);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.copy-btn.copied {
  color: #00ff66;
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
}

.exporter-panel pre {
  margin: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  max-height: 250px;
}

.exporter-panel code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #eceff4;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Info Section styling */
.info-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.info-section h2 {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.info-section p {
  color: var(--text-secondary, #cccccc);
  line-height: 1.7;
}

.info-section code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent, #00f0ff);
}
