/* Audio Conversion Tool Styles */

.subtitle {
  text-align: center;
  color: var(--text-muted, #666);
  margin: 0 auto 1.5rem;
  max-width: 640px;
}

/* Format info */
.format-info {
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.format-info h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.format-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.format-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #666);
  white-space: nowrap;
}
.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.format-badge {
  background: #e8eaf6;
  color: #3949ab;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}
.format-badge.popular {
  background: #e3f2fd;
  color: #1565c0;
}

/* Upload Section */
.upload-section {
  margin-bottom: 1.5rem;
}
.upload-area {
  border: 2px dashed var(--border, #ccc);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface, #fafafa);
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--primary, #4a90e2);
  background: #f0f7ff;
}
.upload-icon svg {
  width: 56px;
  height: 56px;
  color: var(--primary, #4a90e2);
  margin-bottom: 1rem;
}
.upload-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.upload-content p {
  margin: 0.25rem 0;
  color: var(--text-muted, #666);
  font-size: 0.9rem;
}
.supported-formats { font-size: 0.82rem !important; }
.upload-limits { font-size: 0.8rem !important; }
.browse-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--primary, #4a90e2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.browse-btn:hover { background: #357abd; }

/* Conversion Section */
.conversion-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.file-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary, #4a90e2);
}
.file-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
}

/* Audio preview */
.audio-preview {
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.audio-preview h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
audio {
  border-radius: 6px;
}

/* Settings */
.settings-panel {
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.settings-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.settings-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 200px;
}
.setting-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #555);
}
.setting-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}

/* Action row */
.action-row {
  display: flex;
  justify-content: center;
}
.convert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  background: var(--primary, #4a90e2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.convert-btn svg { width: 18px; height: 18px; }
.convert-btn:hover { background: #357abd; }
.convert-btn:active { transform: scale(0.98); }
.convert-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Progress */
.progress-section {
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.progress-bar-track {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary, #4a90e2);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Download section */
.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.result-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.result-info svg {
  width: 28px;
  height: 28px;
  color: #2e7d32;
  flex-shrink: 0;
}
.result-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b5e20;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.download-btn svg { width: 16px; height: 16px; }
.download-btn:hover { background: #1b5e20; }

/* Secondary button */
.btn-secondary {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #f0f0f0; }

/* Info notice */
.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}
.info-notice svg {
  width: 20px;
  height: 20px;
  color: #f57f17;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-notice p {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
}

@media (max-width: 600px) {
  .file-info-bar { flex-direction: column; align-items: flex-start; }
  .download-section { flex-direction: column; }
  .settings-row { flex-direction: column; }
}
