/* Batch-specific styles */

/* Navigation tabs */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.nav-tab {
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}

.nav-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.nav-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Batch card */
.batch-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.batch-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.batch-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Input section */
.input-section {
  margin-bottom: 1rem;
}

.input-section label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.domains-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Consolas", "Courier New", monospace;
  color: var(--text);
  resize: vertical;
  min-height: 150px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.domains-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* File section */
.file-section {
  margin-bottom: 1.25rem;
}

.divider-text {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
  position: relative;
}

.divider-text::before,
.divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.dropzone-content svg {
  opacity: 0.6;
}

.dropzone-content span {
  font-size: 0.85rem;
}

.file-name {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Actions */
.actions {
  display: flex;
  justify-content: flex-end;
}

/* Progress card */
.progress-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.progress-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.current-domain {
  display: block;
  margin-top: 0.25rem;
  font-family: "Consolas", monospace;
  font-size: 0.8rem;
  color: var(--text);
}

/* Result card */
.result-card {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.result-icon {
  color: var(--ok);
  margin-bottom: 0.75rem;
}

.result-card h3 {
  font-size: 1.1rem;
  color: var(--ok);
  margin-bottom: 0.5rem;
}

.result-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.download-btn {
  padding: 0.75rem 1.5rem;
  background: var(--ok);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.download-btn:hover {
  background: #15803d;
}

:root[data-theme="dark"] .nav-tab:hover {
  background: var(--surface-soft);
  border-color: #60a5fa;
  color: var(--text);
}

:root[data-theme="dark"] .dropzone:hover,
:root[data-theme="dark"] .dropzone.dragover {
  background: var(--surface-soft);
  border-color: #60a5fa;
}

:root[data-theme="dark"] .file-name {
  background: var(--surface-soft);
  color: #bfdbfe;
}

:root[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

:root[data-theme="dark"] .download-btn {
  background: #16a34a;
}

:root[data-theme="dark"] .download-btn:hover {
  background: #15803d;
}

/* Responsive */
@media (max-width: 580px) {
  .nav-tabs {
    flex-direction: column;
  }
  .nav-tab {
    text-align: center;
  }
}
