* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  background: url("https://files.d20.io/images/423960648/NQY094_JZhMljcSoC5pwPg/original.png?1736459908")
    center center / cover no-repeat fixed;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

h1 {
  color: #333;
  text-align: center;
  font-family: "Georgia", serif;
  font-size: 2.5em;
  margin: 0 0 0.2em 0;
  text-shadow: none;
}

.subtitle {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

.status-display {
  text-align: center;
  font-size: 1em;
  color: #666;
  font-family: monospace;
  margin: 10px 0;
}

.status-display.initialized {
  color: #2d7a2d;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:disabled {
  background-color: #555 !important;
  opacity: 1;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #4a7ba7;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #5a8bb7;
}

.btn-primary.recording {
  background-color: #6a9bc7;
  animation: pulse 1s infinite;
}

.btn-secondary {
  background-color: #4a7ba7;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a8bb7;
}

.btn-stop {
  background-color: #c54545;
  color: white;
}

.btn-stop:hover {
  background-color: #d55555;
}

.config-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #ddd;
  border-radius: 8px;
}

.config-header {
  margin-top: 0;
  margin-bottom: 0;
  color: #555;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.config-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.toggle-icon {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.config-header.open .toggle-icon {
  transform: rotate(90deg);
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.config-grid.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem;
}

.config-item {
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  align-items: center;
  gap: 10px;
}

.config-item label {
  color: #666;
  font-size: 0.9em;
}

.config-item input[type="range"],
.config-item input[type="number"] {
  width: 100%;
  cursor: pointer;
}

.config-item input[type="range"] {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
}

.config-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
}

.config-item input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.config-item input[type="number"] {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  padding: 5px;
  border-radius: 4px;
  font-family: inherit;
}

.config-value {
  color: #666;
  font-family: monospace;
  font-weight: bold;
  text-align: right;
}

.instructions {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #ddd;
  border-radius: 8px;
}

.instructions h3 {
  margin-top: 0;
  color: #555;
}

.instructions ol {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.instructions li {
  margin: 0.5rem 0;
}
