﻿/* =============================================
   BATCH PAGE
   ============================================= */
.batch-layout { padding-top: 70px; min-height: 100vh; }

/* HEADER */
.batch-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.batch-header-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.batch-header-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.batch-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.batch-stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.batch-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* CONTAINER */
.batch-container {
  padding-top: 32px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* UPLOAD ZONE */
.batch-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.batch-upload-zone:hover,
.batch-upload-zone.drag-over {
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.12);
}

.batch-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.batch-upload-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet-light);
  margin-bottom: 4px;
  transition: var(--transition);
}

.batch-upload-zone:hover .batch-upload-icon {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.batch-upload-zone h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.batch-upload-zone p {
  font-size: 15px;
  color: var(--text-muted);
}

/* CONTROLS */
.batch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.batch-controls-left,
.batch-controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.batch-control-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.batch-bg-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.batch-select:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.batch-format-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* QUEUE */
.batch-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  animation: fade-in-up 0.3s ease forwards;
}

.queue-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.queue-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-info {
  flex: 1;
  min-width: 0;
}

.queue-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.queue-size {
  font-size: 12px;
  color: var(--text-muted);
}

.queue-progress-wrap {
  flex: 1;
  max-width: 200px;
}

.queue-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.queue-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0%;
}

.queue-progress-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.queue-status {
  width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.queue-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.badge-waiting {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-processing {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-violet-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
  animation: pulse-badge 1.5s ease-in-out infinite;
}

.badge-done {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.queue-download-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.queue-download-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(1.1);
}

.queue-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.queue-remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* DOWNLOAD ALL */
.batch-download-all {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
  flex-wrap: wrap;
}

.batch-done-icon { font-size: 40px; }

.batch-done-info { flex: 1; }

.batch-done-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.batch-done-info p {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .batch-header-content { flex-direction: column; }
  .batch-controls { flex-direction: column; align-items: flex-start; }
  .queue-progress-wrap { display: none; }
}


