:root {
  --primary: #2a3f54;
  --secondary: #e74c3c;
  --accent: #27ae60;
  --light: #ecf0f1;
  --dark: #1a252f;
  --text: #2c3e50;
  --text-light: #bdc3c7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

h1 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.subtitle {
  color: var(--secondary);
  font-weight: 300;
}

.app-section {
  margin-bottom: 30px;
}

.dropzone {
  border: 3px dashed var(--text-light);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
  background-color: rgba(236, 240, 241, 0.5);
}

.dropzone:hover {
  border-color: var(--accent);
  background-color: rgba(39, 174, 96, 0.1);
}

.dropzone.active {
  border-color: var(--secondary);
  background-color: rgba(231, 76, 60, 0.1);
}

.file-input {
  display: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin: 5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-danger {
  background-color: var(--secondary);
}

.audio-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.visualizer {
  width: 100%;
  height: 200px;
  background-color: var(--dark);
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
}

.slider-container {
  margin: 20px 0;
}

.slider-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.slider {
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--text-light);
  outline: none;
  border-radius: 5px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  background: var(--secondary);
  transform: scale(1.2);
}

.file-info {
  background-color: rgba(42, 63, 84, 0.1);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
}

.file-info.show {
  display: block;
}

.progress-container {
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 5px;
  margin: 20px 0;
  display: none;
}

.progress-container.show {
  display: block;
}

.progress-bar {
  height: 20px;
  background-color: var(--accent);
  border-radius: 5px;
  width: 0%;
  transition: width 0.3s;
  text-align: center;
  line-height: 20px;
  color: white;
}

.comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.comparison-item {
  flex: 1;
  min-width: 300px;
}

.comparison h3 {
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--text-light);
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
