/* Background Sound Remover Frontend Styles */
.bsr-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: white;
}

.bsr-upload-section h3 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bsr-description {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

/* File Input Styling */
.bsr-file-input-wrapper {
  margin-bottom: 30px;
}

.bsr-file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.bsr-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  position: relative;
}

.bsr-file-label:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.bsr-file-icon {
  font-size: 24px;
  margin-right: 15px;
}

.bsr-file-text {
  font-size: 18px;
  font-weight: 500;
}

.bsr-file-info {
  text-align: center;
  margin-top: 10px;
  opacity: 0.8;
  font-size: 14px;
}

/* Options Styling */
.bsr-options {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.bsr-options h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.bsr-option-group {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.bsr-checkbox-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 16px;
}

.bsr-checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.3);
  accent-color: #fff;
}

.bsr-sub-option {
  margin-left: 30px;
  margin-top: 10px;
  opacity: 0.9;
}

.bsr-sub-option label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.bsr-sub-option select {
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 14px;
}

/* Submit Button */
.bsr-submit-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.bsr-submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.bsr-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.bsr-btn-spinner {
  margin-left: 10px;
  animation: bsr-spin 1s linear infinite;
}

@keyframes bsr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Processing Section */
.bsr-processing {
  text-align: center;
  padding: 50px 20px;
}

.bsr-processing-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.bsr-wave {
  width: 8px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 4px;
  border-radius: 4px;
  animation: bsr-wave 1.5s ease-in-out infinite;
}

.bsr-wave:nth-child(2) {
  animation-delay: 0.2s;
}
.bsr-wave:nth-child(3) {
  animation-delay: 0.4s;
}
.bsr-wave:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes bsr-wave {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

.bsr-progress {
  max-width: 400px;
  margin: 0 auto;
}

.bsr-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bsr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.bsr-status-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bsr-status-detail {
  font-size: 14px;
  opacity: 0.8;
}

/* Results Section */
.bsr-results {
  text-align: center;
}

.bsr-results-header {
  margin-bottom: 30px;
}

.bsr-results-header h3 {
  font-size: 26px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bsr-results-header p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.bsr-audio-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
}

.bsr-audio-player h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.bsr-audio-player audio {
  width: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.bsr-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.bsr-download-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #10ac84 0%, #00d2d3 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(16, 172, 132, 0.3);
}

.bsr-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 172, 132, 0.4);
}

.bsr-secondary-btn {
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bsr-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Footer */
.bsr-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: 14px;
}

/* Error Messages */
.bsr-error-message {
  background: rgba(255, 107, 107, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #ff3838;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.bsr-error-message.bsr-show {
  opacity: 1;
  transform: translateY(0);
}

.bsr-error {
  background: rgba(255, 107, 107, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

/* Animations */
.bsr-fade-in {
  animation: bsr-fadeIn 0.6s ease-out;
}

@keyframes bsr-fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .bsr-container {
    margin: 10px;
    padding: 20px;
  }

  .bsr-upload-section h3 {
    font-size: 24px;
  }

  .bsr-audio-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bsr-actions {
    flex-direction: column;
    align-items: center;
  }

  .bsr-download-btn,
  .bsr-secondary-btn {
    width: 100%;
    max-width: 300px;
  }

  .bsr-file-label {
    padding: 20px;
    min-height: 60px;
  }

  .bsr-file-text {
    font-size: 16px;
  }
}

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

  .bsr-upload-section h3 {
    font-size: 20px;
  }

  .bsr-description {
    font-size: 14px;
  }

  .bsr-options {
    padding: 20px;
  }

  .bsr-submit-btn {
    padding: 18px;
    font-size: 16px;
  }
}
