:root {
  --primary-color: #4361ee;
  --primary-light: #6088ff;
  --primary-dark: #2a4af2;
  --secondary-color: #7209b7;
  --accent-color: #f72585;
  --text-color: #333;
  --text-light: #666;
  --text-dark: #111;
  --background-color: #f9f9fb;
  --card-color: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Dark mode variables - will be applied when dark class is added to body */
.dark {
  --primary-color: #6088ff;
  --primary-light: #92a9ff;
  --primary-dark: #4361ee;
  --text-color: #f5f5f5;
  --text-light: #aaa;
  --text-dark: #fff;
  --background-color: #121212;
  --card-color: #1e1e1e;
  --border-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  padding: 2rem 0;
  text-align: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.logo {
  width: 48px;
  height: 48px;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding-bottom: 3rem;
}

/* Download Section Styles */
.download-section {
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.download-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.input-container {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

#url-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--card-color);
  color: var(--text-color);
  transition: all var(--transition-fast);
  outline: none;
}

#url-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 54px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 18px;
  height: 18px;
}

/* Options Container Styles */
.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.option-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  user-select: none;
}

.option-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.option-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.option-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.option-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.option-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-label {
  font-size: 0.95rem;
  color: var(--text-light);
}

.option-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--card-color);
  color: var(--text-color);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Status Container Styles */
.status-container {
  display: none;
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.status-container.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-icon {
  width: 32px;
  height: 32px;
}

.status-message {
  flex: 1;
}

.status-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.status-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

.status-success .status-title {
  color: var(--success-color);
}

.status-error .status-title {
  color: var(--error-color);
}

.status-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(67, 97, 238, 0.05);
}

.btn-success {
  padding: 0.5rem 1rem;
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-success:hover {
  background-color: #43a047;
}

/* Platforms Section Styles */
.platforms-section {
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.platforms-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}

.platform-name {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.loading-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  animation: spin 1.5s linear infinite;
}

.loading-text {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Footer Styles */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .download-section {
    padding: 1.5rem;
  }
  
  .input-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-primary {
    width: 100%;
  }
  
  .options-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .option-select {
    width: 100%;
    justify-content: space-between;
  }
  
  select {
    flex: 1;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.75rem;
  }
  
  .logo {
    width: 36px;
    height: 36px;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .download-section, .status-container, .platforms-section {
    padding: 1.25rem;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}