@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gradient-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a8a 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.berry-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.berry-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upload-zone {
  background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
  border: 3px dashed #333;
  border-radius: 16px;
  padding: 3rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #00d4ff;
  background: linear-gradient(145deg, #1e1e1e, #242424);
  transform: translateY(-2px);
}

.upload-zone.dragging {
  border-color: #00ff88;
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.upload-button {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #00e5ff, #00aadd);
}

.url-input {
  flex: 1;
  background: #1a1a1a;
  border: 2px solid #333;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.url-input:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.url-input::placeholder {
  color: #666;
}

.primary-button {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  min-width: 80px;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.preview-card {
  background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.preview-card:hover {
  border-color: #444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.download-section {
  background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.download-button-primary {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #0a0a0a;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.download-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
  background: linear-gradient(135deg, #00ff99, #00dd77);
}

.download-button-secondary {
  background: linear-gradient(145deg, #1a1a1a, #242424);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.download-button-secondary:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.reset-button {
  background: transparent;
  color: #888;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-button:hover {
  color: white;
  border-color: #666;
}

.loading-container {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid #333;
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem auto 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #00ff88);
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.settings-panel {
  background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
}

.quality-button {
  background: #1a1a1a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: capitalize;
}

.quality-button:hover {
  border-color: #00d4ff;
}

.quality-button.active {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.footer {
  background: linear-gradient(145deg, #0a0a0a, #121212);
  border-top: 1px solid #1a1a1a;
  margin-top: auto;
}