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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

.container {
  width: 100%;
  max-width: 600px;
}

header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.recorder-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #666;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  transition: all 0.3s ease;
}

.status-dot.recording {
  background: #e74c3c;
  box-shadow: 0 0 10px #e74c3c;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.processing {
  background: #f39c12;
  box-shadow: 0 0 10px #f39c12;
}

.status-dot.ready {
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.timer {
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.language-selector {
  text-align: center;
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
}

.language-selector label {
  display: block;
  margin-bottom: 10px;
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
}

.language-select {
  padding: 10px 15px;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.language-select:hover {
  border-color: #764ba2;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.language-select:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  width: 100%;
  margin-top: 15px;
}

.btn-download {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  width: 100%;
  margin-top: 15px;
}

.btn-icon {
  font-size: 1.2rem;
}

.audio-player-container {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.audio-player-container h3 {
  margin-bottom: 15px;
  color: #667eea;
}

#audioPlayer {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
}

.transcription-container {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.transcription-container h3 {
  margin-bottom: 15px;
  color: #667eea;
}

.transcription-text {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  line-height: 1.8;
  color: #333;
  min-height: 60px;
  direction: auto;
  text-align: start;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.file-info {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e9;
  border-left: 4px solid #2ecc71;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #27ae60;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: white;
  opacity: 0.8;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .recorder-card {
    padding: 25px;
  }

  .timer {
    font-size: 2.5rem;
  }

  .controls {
    flex-direction: column;
  }
}