/* Slidev Controls Container */
.slidevControls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin: 0 auto;
}

/* Generate Button */
.generateButton {
  height: 3rem;
  padding: 0 2rem;
  border-radius: 9999px;
  background-color: #2D65FF;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.generateButton:hover:not(:disabled) {
  background-color: #1e4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 101, 255, 0.3);
}

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

.generateButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading States */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #2D65FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loadingText {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.loadingMessage {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  max-width: 400px;
}

/* Progress Bar */
.progressContainer {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.progressBar {
  height: 100%;
  background: linear-gradient(90deg, #2D65FF, #60a5fa);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Deck Info Section */
.deckInfo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deckInfoLabel {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deckLink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.875rem;
  word-break: break-all;
  transition: color 0.2s ease;
}

.deckLink:hover {
  color: #2D65FF;
}

.externalIcon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Control Buttons */
.controlButtons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.controlButton {
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controlButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.controlButton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.controlButtonText {
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #020617;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controlButtonText:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.controlButtonText:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gotoInput {
  height: 3rem;
  width: 4rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #020617;
  font-size: 0.875rem;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.gotoInput:focus {
  border-color: #2D65FF;
  box-shadow: 0 0 0 3px rgba(45, 101, 255, 0.1);
}

/* Error Message */
.error {
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.errorIcon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.errorText {
  flex: 1;
}

/* Success Message */
.success {
  padding: 1rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #86efac;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.successIcon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

/* Screen Reader Only */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
