/* New Recorder Styles */
#voice-recorder-bar {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #e0e0e0;
}

.recorder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.recorder-title {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recorder-title #recorder-timer {
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  color: #666;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 45px;
  text-align: center;
}

#recorder-close {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#recorder-close:hover {
  background: #ff6666;
  transform: scale(1.05);
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.control-btn {
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.control-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#recorder-record {
  background: #e53935;
  color: white;
}

#recorder-record:hover:not(:disabled) {
  background: #d32f2f;
}

#recorder-stop {
  background: #fbc02d;
  color: white;
}

#recorder-stop:hover:not(:disabled) {
  background: #f9a825;
}

.play-controls {
  background: #43a047;
  color: white;
}

.play-controls:hover:not(:disabled) {
  background: #388e3c;
}

#recorder-upload {
  background: #0088dd;
  color: white;
}

#recorder-upload:hover:not(:disabled) {
  background: #0066aa;
}

#recorder-upload:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#recorder-upload .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* User Recordings Display */
.user-recordings {
  margin: 20px 0;
}

.user-recordings h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.recording-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recording-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.recording-item h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.recording-item audio {
  margin: 10px 0;
  border-radius: 8px;
}

.recording-item p {
  margin: 8px 0;
  color: #666;
  font-size: 14px;
}

.recording-item .button {
  margin-top: 15px;
  background: #0088dd;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.recording-item .button:hover {
  background: #0066aa;
  color: white;
  text-decoration: none;
}

/* Responsive design for recordings grid */
@media (max-width: 768px) {
  .recordings-grid {
    grid-template-columns: 1fr;
  }

  .recording-item {
    padding: 15px;
  }
}

#recorder-bars {
  display: flex;
  align-items: flex-end;
  height: 40px;
  width: 150px;
  gap: 2px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 5px;
}

.bar {
  background: #0088dd;
  width: 6px;
  border-radius: 3px;
  transition: height 0.1s ease-out;
}

.seeker-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#recorder-seek {
  flex-grow: 1;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#recorder-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #43a047;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#recorder-seek::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #43a047;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.time-display {
  /* font-family: "Courier New", monospace; */
  font-size: 14px;
  color: #666;
  min-width: 45px;
  text-align: center;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 10px;
}

.status-indicator.recording {
  background: #e53935;
  animation: pulse 1.5s infinite;
}

.status-indicator.playing {
  background: #43a047;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.audio-controls {
  display: flex;
  gap: 1rem;
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.audio-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
