.voice-changer-page {
  padding: 2rem;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  margin: auto;
  line-height: 1.6;
}

.voice-changer-page h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.voice-changer-page p.intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #bbb;
}

/* Upload & Record Section */
.upload-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.upload-controls button {
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  background: #1f1f1f;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.upload-controls button:hover {
  background: #292929;
}

#recordStatus {
  line-height: 2.4rem;
  font-size: 0.95rem;
  color: #999;
}

/* Waveform Section */
.waveform-container {
  background: #181818;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 5px #000;
}

#waveformCanvas {
  width: 100%;
  height: 100px;
  background-color: #000;
  border: 1px solid #333;
  display: block;
  border-radius: 4px;
}

#audioInfo {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #aaa;
}

/* Playback Controls */
.playback-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.playback-controls button {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  background: #202020;
  color: #eee;
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.playback-controls button:hover {
  background: #2a2a2a;
}

/* Effects Panel */
.effects-panel {
  background: #181818;
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 1px solid #2a2a2a;
}

.effects-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #ddd;
}

.effect-group {
  margin-top: 1rem;
}

.effect-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0.3rem;
}

.effect-group input[type="range"] {
  width: 100%;
  margin-top: 0.2rem;
}

.effect-value {
  margin-left: 0.5rem;
  font-weight: bold;
  color: #ccc;
}

/* Grouped Effects */
.effect-group-set {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #202020;
  border: 1px solid #333;
}

.effect-group-set summary {
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: #eee;
}

.effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 0.5rem;
}

.effect-grid label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.effect-grid input[type="checkbox"] {
  accent-color: #888;
}

.group-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.group-buttons button {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: #292929;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.group-buttons button:hover {
  background: #333;
}

/* Mix, Trim, Collapse All */
.collapse-toggle,
.effect-group:last-of-type {
  margin-top: 1.5rem;
}

#toggleAllEffects {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

/* Presets */
.presets-panel {
  background: #191919;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.preset-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.preset-btn:hover {
  background: #3a3a3a;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-buttons button {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.action-buttons button:hover {
  background: #3a3a3a;
}

/* Export Format Dropdown */
#exportFormat {
  margin-top: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* How to Use Section */
.tool-section.how-to-use {
  margin-top: 40px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #333;
  color: #ccc;
}

.tool-section.how-to-use h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
  border-left: 4px solid #3af;
  padding-left: 10px;
}

.tool-section.how-to-use ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tool-section.how-to-use li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.tool-section.how-to-use li::before {
  content: '🎧';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: #3af;
}

.tool-section.how-to-use strong {
  color: #fff;
  font-weight: 600;
}
