body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  position: relative;
  /* Add this line to make it a positioning context */
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

#recordButton {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #88c2ff;
  border: none;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#recordButton:hover {
  transform: scale(1.05);
}

#recordButton.recording {
  background-color: #ff3b30;
  animation: pulse 2s infinite;
}

.transcript-container,
.enhanced-transcript-container {
  position: relative;
  margin-top: 30px;
}

textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  background: #fafafa;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}

.copy-button {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 12px;
  background: #88c2ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 1;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.action-button {
  flex: 0 1 120px;
  max-width: 150px;
  height: 50px;
  border-radius: 8px;
  background-color: #88c2ff;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-button:hover {
  background-color: #60a4ed;
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .container {
    margin: 10px auto;
    padding: 15px;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  textarea {
    padding: 12px;
  }

  .button-container {
    gap: 10px;
    padding: 10px;
  }

  .action-button {
    flex: 0 1 100px;
    max-width: 100px;
    height: 40px;
    font-size: 0.85rem;
  }
}

.connection-status {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #FF3B30;
  /* Red by default */
  transition: background-color 0.3s ease;
}

.connection-status.connected {
  background-color: #88c2ff;
  /* Green when connected */
}

.connection-status.connecting {
  animation: blink 1s infinite;
}

body.dark-theme {
  background: #1d1d1f;
  color: #f5f5f7;
}

body.dark-theme #recordButton {
  background-color: #88c2ff;
  /* Green */
}

body.dark-theme #recordButton.recording {
  background-color: #b50101;
  /* Orange */
}

body.dark-theme .copy-button {
  background: #88c2ff;
  /* Green */
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.theme-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Dark theme specific styles */
body.dark-theme .container {
  background: #2c2c2e;
  color: #f5f5f7;
}

body.dark-theme textarea {
  background: #1c1c1e;
  color: #f5f5f7;
  border-color: #3a3a3c;
}

body.dark-theme .action-button {
  background-color: #88c2ff;
}

body.dark-theme .action-button:hover {
  background-color: #60a4ed;
}
