/* Root container */
.arw {
  --arw-border: #ddd;
  --arw-bg: #fafafa;

  display: block;
  max-width: 2000px;
  margin: 0 auto;
  user-select: none;
}

/* Dimension buttons */
.arw .arw-dimension-buttons {
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.arw .arw-dimension-buttons button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}
.arw .arw-dimension-buttons button.active {
  background: #2563eb;
  color: #fff;
  border-color: #1e40af;
}
.arw .arw-dimension-buttons button:active { transform: translateY(1px); }

/* Waveform + overlay */
.arw .arw-container {
  position: relative;
  background: var(--arw-bg);
  border: 1px solid var(--arw-border);
}
.arw .arw-waveform { position: relative; }
.arw canvas.arw-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: auto;
}

/* Controls row */
.arw .arw-controls {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.arw .arw-controls label {
  font-size: 13px;
  color: #333;
}
.arw .arw-controls .arw-legend {
  margin-left: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.arw .arw-controls .legend-item {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
}
.arw .arw-controls button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}
.arw .arw-controls button:active { transform: translateY(1px); }

/* Slider row */
.arw .arw-slider { width: 100%; margin-top: 6px; }
.arw .arw-slider input[type="range"] { width: 100%; }

/* Audio controls */
.arw .arw-audio-controls {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.arw .arw-audio-controls button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}
.arw .arw-audio-controls button:active { transform: translateY(1px); }

/* Info line */
.arw .arw-info {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
}

/* volume controls */

.arw-volume-control {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arw-volume-slider {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.arw-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a5568;
    cursor: pointer;
}

.arw-volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4a5568;
    cursor: pointer;
    border: none;
}

/* zoom controls */

.arw-zoom-controls {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.arw-zoom-controls button {
    padding: 4px 8px;
    font-size: 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.arw-zoom-controls button:hover {
    background: #e0e0e0;
}
