/* Nexabot Minimal Dashboard - Custom Styles */

body {
  background-color: #090a0f;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f1017;
}
::-webkit-scrollbar-thumb {
  background: #262738;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b3c54;
}

/* Fixed Table Layout to prevent layout shifts */
.table-fixed-cols {
  table-layout: fixed;
  width: 100%;
}

.col-checkbox {
  width: 40px;
}
.col-preview {
  width: 68px;
}
.col-status {
  width: 130px;
}
.col-actions {
  width: 200px;
}

.status-cell {
  white-space: nowrap;
}

/* Bounded Queue Table Container with Sticky Header */
.queue-table-container {
  max-height: calc(100vh - 290px);
  min-height: 380px;
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  scrollbar-width: thin;
}

.queue-table-container thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.queue-table-container thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #18181b !important; /* solid zinc-900 */
  box-shadow: inset 0 -1px 0 0 #27272a;
}

html.light .queue-table-container thead th {
  background-color: #f8fafc !important; /* solid slate-50 */
  box-shadow: inset 0 -1px 0 0 #e2e8f0;
}

/* Uniform Status Badge to ensure clean vertical alignment */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  width: 220px;
  max-width: 100%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

html.light .status-badge.bg-blue-500\/10,
html.light .status-badge[class*="bg-blue"] {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
  font-weight: 600 !important;
}
html.light .status-badge.bg-blue-500\/10 *,
html.light .status-badge[class*="bg-blue"] * {
  color: #1d4ed8 !important;
}

html.light .status-badge.bg-amber-500\/10,
html.light .status-badge.bg-amber-500\/15,
html.light .status-badge[class*="bg-amber"] {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fcd34d !important;
  font-weight: 600 !important;
}
html.light .status-badge.bg-amber-500\/10 *,
html.light .status-badge.bg-amber-500\/15 *,
html.light .status-badge[class*="bg-amber"] * {
  color: #b45309 !important;
}

html.light .status-badge.bg-emerald-500\/10,
html.light .status-badge[class*="bg-emerald"] {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #6ee7b7 !important;
  font-weight: 600 !important;
}
html.light .status-badge.bg-emerald-500\/10 *,
html.light .status-badge[class*="bg-emerald"] * {
  color: #047857 !important;
}

html.light .status-badge.bg-red-500\/10,
html.light .status-badge.bg-red-500\/15,
html.light .status-badge[class*="bg-red"],
html.light .status-badge[class*="bg-rose"] {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
  font-weight: 600 !important;
}
html.light .status-badge.bg-red-500\/10 *,
html.light .status-badge.bg-red-500\/15 *,
html.light .status-badge[class*="bg-red"] *,
html.light .status-badge[class*="bg-rose"] * {
  color: #b91c1c !important;
}

/* Compact 2-Line Status Card Badge with Separator - Height 34px */
.status-card-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 8px;
  width: 86px;
  height: 34px !important;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  user-select: none;
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.status-card-sep {
  width: 100%;
  height: 1px;
  margin: 2px 0;
  opacity: 0.35;
}

.status-card-bottom {
  font-size: 9.5px;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
}

/* Action Buttons - Height 34px matching Status Badge */
.actions-cell button,
.actions-cell .action-btn {
  height: 34px !important;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
}

/* Selesai / Done - Dark Mode */
.status-card-done {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.status-card-done .status-card-sep {
  background-color: #10b981;
}
.status-card-done .status-card-bottom {
  color: #6ee7b7;
}

/* Selesai / Done - Light Mode */
html.light .status-card-done {
  background-color: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #047857 !important;
}
html.light .status-card-done .status-card-sep {
  background-color: #a7f3d0 !important;
}
html.light .status-card-done .status-card-bottom {
  color: #059669 !important;
}

/* Memproses / Processing - Dark Mode */
.status-card-processing {
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}
.status-card-processing .status-card-sep {
  background-color: #3b82f6;
}
.status-card-processing .status-card-bottom {
  color: #93c5fd;
}

/* Memproses / Processing - Light Mode */
html.light .status-card-processing {
  background-color: #eff6ff !important;
  border: 1px solid #93c5fd !important;
  color: #1d4ed8 !important;
}
html.light .status-card-processing .status-card-sep {
  background-color: #bfdbfe !important;
}
html.light .status-card-processing .status-card-bottom {
  color: #2563eb !important;
}

/* Mengunduh / Downloading - Dark Mode */
.status-card-downloading {
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.status-card-downloading .status-card-sep {
  background-color: #f59e0b;
}
.status-card-downloading .status-card-bottom {
  color: #fde68a;
}

/* Mengunduh / Downloading - Light Mode */
html.light .status-card-downloading {
  background-color: #fffbeb !important;
  border: 1px solid #fcd34d !important;
  color: #b45309 !important;
}
html.light .status-card-downloading .status-card-sep {
  background-color: #fde68a !important;
}
html.light .status-card-downloading .status-card-bottom {
  color: #d97706 !important;
}

/* Gagal / Failed - Dark Mode */
.status-card-failed {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.status-card-failed .status-card-sep {
  background-color: #ef4444;
}
.status-card-failed .status-card-bottom {
  color: #fca5a5;
}

/* Gagal / Failed - Light Mode */
html.light .status-card-failed {
  background-color: #fef2f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
}
html.light .status-card-failed .status-card-sep {
  background-color: #fecaca !important;
}
html.light .status-card-failed .status-card-bottom {
  color: #dc2626 !important;
}

/* Antrean / Queued - Dark Mode */
.status-card-queued {
  background-color: rgba(63, 63, 70, 0.25);
  border: 1px solid rgba(82, 82, 91, 0.5);
  color: #a1a1aa;
}
.status-card-queued .status-card-sep {
  background-color: #52525b;
}
.status-card-queued .status-card-bottom {
  color: #71717a;
}

/* Antrean / Queued - Light Mode */
html.light .status-card-queued {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
html.light .status-card-queued .status-card-sep {
  background-color: #e2e8f0 !important;
}
html.light .status-card-queued .status-card-bottom {
  color: #64748b !important;
}

/* Modal and Glassmorphism */
.glass-panel {
  background: rgba(15, 16, 23, 0.85);
}

/* Spinner Animation: Smooth GPU rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite !important;
  display: inline-block;
}

.animate-spin-slow {
  animation: spin 4s linear infinite !important;
  display: inline-block;
}

/* Header optimization: render on dedicated composite layer */
.sticky-header {
  transform: translateZ(0);
  will-change: transform;
}

/* Dialog & Toast Animations */
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-animate {
  animation: dialogIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* ==========================================================================
   LIGHT MODE: ELEGAN, LEMBUT & TIDAK MENYENGAT MATA (NON-GLARING)
   - Background canvas: Warm off-white / soft slate-zinc (#f4f4f7)
   - Surface cards: Muted soft white (#ffffff) dengan border halus (#e4e4e7)
   - Typography: Charcoal halus (#0f172a / #334155), bukan hitam legam keras
   - Input/wells: Cool off-white (#f8fafc) dengan border rapi (#cbd5e1)
   ========================================================================== */

html.light {
  color-scheme: light;
}

html.light body {
  background-color: #f4f4f7 !important;
  color: #18181b !important;
}

/* Canvas & Topbar background */
html.light .bg-\[\#090a0f\] {
  background-color: #f4f4f7 !important;
}
html.light header.sticky-header {
  background-color: #ffffff !important;
  border-bottom-color: #e4e4e7 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

/* Panel & Card Surfaces */
html.light .bg-zinc-900,
html.light .bg-zinc-900\/90,
html.light .bg-zinc-900\/80,
html.light .bg-zinc-900\/70,
html.light .bg-zinc-900\/60 {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
}

/* Inner wells, dropzones & table containers */
html.light .bg-zinc-950,
html.light .bg-zinc-950\/40,
html.light .bg-zinc-950\/60,
html.light .bg-zinc-950\/80,
html.light .bg-zinc-950\/90 {
  background-color: #f8fafc !important;
}

/* Buttons, Chips, Badges & Secondary Elements */
html.light .bg-zinc-800,
html.light .bg-zinc-800\/80,
html.light .bg-zinc-800\/60,
html.light .bg-zinc-750,
html.light .bg-zinc-700 {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0;
}

/* Hover States for Secondary Elements */
html.light .hover\:bg-zinc-700:hover,
html.light .hover\:bg-zinc-750:hover,
html.light .hover\:bg-zinc-800:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .hover\:bg-zinc-900\/50:hover {
  background-color: #f1f5f9 !important;
}

html.light .hover\:text-white:hover {
  color: #09090b !important;
}

/* Borders: subtle soft warm gray/slate */
html.light .border-zinc-800,
html.light .border-zinc-800\/80,
html.light .border-zinc-800\/60 {
  border-color: #e4e4e7 !important;
}

html.light .border-zinc-700,
html.light .border-zinc-700\/80,
html.light .border-zinc-700\/60 {
  border-color: #d4d4d8 !important;
}

html.light .divide-zinc-800\/60 > :not([hidden]) ~ :not([hidden]) {
  border-color: #f1f5f9 !important;
}

/* Typography Colors */
html.light .text-white:not(button):not([type="button"]):not(.btn):not([class*="bg-purple"]):not([class*="bg-teal"]):not([class*="bg-blue"]):not([class*="bg-emerald"]):not([class*="bg-amber"]):not([class*="bg-rose"]):not([class*="from-brand"]) {
  color: #0f172a !important;
}

html.light button[class*="bg-purple"]:not(.action-btn),
html.light button[class*="bg-teal"]:not(.action-btn),
html.light button[class*="bg-blue"]:not(.action-btn),
html.light button[class*="bg-emerald"]:not(.action-btn),
html.light button[class*="bg-amber"]:not(.action-btn),
html.light button[class*="bg-brand"]:not(.action-btn),
html.light button[class*="from-brand"]:not(.action-btn),
html.light button.btn-primary {
  color: #ffffff !important;
}

html.light button[class*="bg-purple"]:not(.action-btn) *,
html.light button[class*="bg-teal"]:not(.action-btn) *,
html.light button[class*="bg-blue"]:not(.action-btn) *,
html.light button[class*="bg-emerald"]:not(.action-btn) *,
html.light button[class*="bg-amber"]:not(.action-btn) *,
html.light button[class*="bg-brand"]:not(.action-btn) *,
html.light button[class*="from-brand"]:not(.action-btn) * {
  color: #ffffff !important;
}

/* Table & Card Action Buttons in Light Mode (Lihat, Unduh, Terunduh, Coba Lagi) */
html.light .action-btn[class*="bg-brand"],
html.light .actions-cell button[class*="bg-brand"],
html.light .card-action-btns button[class*="bg-brand"],
html.light .card-action-btns .action-btn[class*="bg-brand"] {
  background-color: #f3e8ff !important;
  color: #6b21a8 !important;
  border: 1px solid #d8b4fe !important;
  font-weight: 600 !important;
}
html.light .action-btn[class*="bg-brand"] *,
html.light .action-btn[class*="bg-brand"] span,
html.light .action-btn[class*="bg-brand"] i,
html.light .actions-cell button[class*="bg-brand"] *,
html.light .actions-cell button[class*="bg-brand"] i,
html.light .card-action-btns button[class*="bg-brand"] *,
html.light .card-action-btns button[class*="bg-brand"] i,
html.light .card-action-btns .action-btn[class*="bg-brand"] *,
html.light .card-action-btns .action-btn[class*="bg-brand"] i {
  color: #6b21a8 !important;
}
html.light .action-btn[class*="bg-brand"]:hover,
html.light .actions-cell button[class*="bg-brand"]:hover,
html.light .card-action-btns button[class*="bg-brand"]:hover,
html.light .card-action-btns .action-btn[class*="bg-brand"]:hover {
  background-color: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}
html.light .action-btn[class*="bg-brand"]:hover *,
html.light .action-btn[class*="bg-brand"]:hover span,
html.light .action-btn[class*="bg-brand"]:hover i,
html.light .actions-cell button[class*="bg-brand"]:hover *,
html.light .actions-cell button[class*="bg-brand"]:hover i,
html.light .card-action-btns button[class*="bg-brand"]:hover *,
html.light .card-action-btns button[class*="bg-brand"]:hover i,
html.light .card-action-btns .action-btn[class*="bg-brand"]:hover *,
html.light .card-action-btns .action-btn[class*="bg-brand"]:hover i {
  color: #ffffff !important;
}

html.light .action-btn[class*="bg-emerald"],
html.light .actions-cell button[class*="bg-emerald"],
html.light .card-action-btns button[class*="bg-emerald"],
html.light .card-action-btns .action-btn[class*="bg-emerald"] {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 600 !important;
}
html.light .action-btn[class*="bg-emerald"] *,
html.light .action-btn[class*="bg-emerald"] span,
html.light .action-btn[class*="bg-emerald"] i,
html.light .actions-cell button[class*="bg-emerald"] *,
html.light .actions-cell button[class*="bg-emerald"] i,
html.light .card-action-btns button[class*="bg-emerald"] *,
html.light .card-action-btns button[class*="bg-emerald"] i,
html.light .card-action-btns .action-btn[class*="bg-emerald"] *,
html.light .card-action-btns .action-btn[class*="bg-emerald"] i {
  color: #047857 !important;
}
html.light .action-btn[class*="bg-emerald"]:hover,
html.light .actions-cell button[class*="bg-emerald"]:hover,
html.light .card-action-btns button[class*="bg-emerald"]:hover,
html.light .card-action-btns .action-btn[class*="bg-emerald"]:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}
html.light .action-btn[class*="bg-emerald"]:hover *,
html.light .action-btn[class*="bg-emerald"]:hover span,
html.light .action-btn[class*="bg-emerald"]:hover i,
html.light .actions-cell button[class*="bg-emerald"]:hover *,
html.light .actions-cell button[class*="bg-emerald"]:hover i,
html.light .card-action-btns button[class*="bg-emerald"]:hover *,
html.light .card-action-btns button[class*="bg-emerald"]:hover i,
html.light .card-action-btns .action-btn[class*="bg-emerald"]:hover *,
html.light .card-action-btns .action-btn[class*="bg-emerald"]:hover i {
  color: #ffffff !important;
}

html.light .action-btn[class*="bg-amber"],
html.light .actions-cell button[class*="bg-amber"],
html.light .card-action-btns button[class*="bg-amber"],
html.light .card-action-btns .action-btn[class*="bg-amber"] {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 600 !important;
}
html.light .action-btn[class*="bg-amber"] *,
html.light .action-btn[class*="bg-amber"] span,
html.light .action-btn[class*="bg-amber"] i,
html.light .actions-cell button[class*="bg-amber"] *,
html.light .actions-cell button[class*="bg-amber"] i,
html.light .card-action-btns button[class*="bg-amber"] *,
html.light .card-action-btns button[class*="bg-amber"] i,
html.light .card-action-btns .action-btn[class*="bg-amber"] *,
html.light .card-action-btns .action-btn[class*="bg-amber"] i {
  color: #b45309 !important;
}
html.light .action-btn[class*="bg-amber"]:hover,
html.light .actions-cell button[class*="bg-amber"]:hover,
html.light .card-action-btns button[class*="bg-amber"]:hover,
html.light .card-action-btns .action-btn[class*="bg-amber"]:hover {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}
html.light .action-btn[class*="bg-amber"]:hover *,
html.light .action-btn[class*="bg-amber"]:hover span,
html.light .action-btn[class*="bg-amber"]:hover i,
html.light .actions-cell button[class*="bg-amber"]:hover *,
html.light .actions-cell button[class*="bg-amber"]:hover i,
html.light .card-action-btns button[class*="bg-amber"]:hover *,
html.light .card-action-btns button[class*="bg-amber"]:hover i,
html.light .card-action-btns .action-btn[class*="bg-amber"]:hover *,
html.light .card-action-btns .action-btn[class*="bg-amber"]:hover i {
  color: #ffffff !important;
}

/* Delete / Trash Button in Light Mode */
html.light .action-btn:has(i[data-lucide="trash-2"]),
html.light .action-btn[title*="Hapus"],
html.light .actions-cell button:has(i[data-lucide="trash-2"]),
html.light .actions-cell button[title*="Hapus"],
html.light .card-action-btns button:has(i[data-lucide="trash-2"]),
html.light .card-action-btns button[title*="Hapus"] {
  background-color: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}
html.light .action-btn:has(i[data-lucide="trash-2"]):hover,
html.light .action-btn[title*="Hapus"]:hover,
html.light .actions-cell button:has(i[data-lucide="trash-2"]):hover,
html.light .actions-cell button[title*="Hapus"]:hover,
html.light .card-action-btns button:has(i[data-lucide="trash-2"]):hover,
html.light .card-action-btns button[title*="Hapus"]:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}
html.light .action-btn:has(i[data-lucide="trash-2"]) i,
html.light .action-btn[title*="Hapus"] i,
html.light .actions-cell button:has(i[data-lucide="trash-2"]) i,
html.light .actions-cell button[title*="Hapus"] i,
html.light .card-action-btns button:has(i[data-lucide="trash-2"]) i,
html.light .card-action-btns button[title*="Hapus"] i {
  color: inherit !important;
}

/* Prompt and Filename in Light Mode */
html.light .prompt-cell > div:first-child,
html.light .job-card-prompt {
  color: #0f172a !important;
  font-weight: 500 !important;
}
html.light .filename-container,
html.light .card-filename-box {
  color: #6b21a8 !important;
}
html.light .filename-container span,
html.light .card-filename-box span {
  color: #6b21a8 !important;
  font-weight: 600 !important;
}
html.light .filename-container i,
html.light .card-filename-box i {
  color: #7c3aed !important;
}

/* Card Metadata & Footer in Light Mode */
html.light .card-meta-box span.bg-zinc-800 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
html.light .card-footer-info {
  color: #475569 !important;
  font-weight: 500 !important;
}
html.light .card-footer-info span {
  color: #475569 !important;
}

html.light .text-zinc-100,
html.light .text-zinc-200 {
  color: #1e293b !important;
}

html.light .text-zinc-300 {
  color: #334155 !important;
}

html.light .text-zinc-400 {
  color: #64748b !important;
}

html.light .text-zinc-500,
html.light .text-zinc-600 {
  color: #94a3b8 !important;
}

html.light .text-zinc-700 {
  color: #cbd5e1 !important;
}

/* Brand & Status Text legibility */
html.light .text-brand-300 {
  color: #6d28d9 !important;
}

html.light .text-brand-400 {
  color: #7c3aed !important;
}

html.light .text-emerald-400,
html.light .text-emerald-300 {
  color: #059669 !important;
}

html.light .text-sky-400,
html.light .text-sky-300 {
  color: #0284c7 !important;
}

html.light .text-amber-400,
html.light .text-amber-300 {
  color: #d97706 !important;
}

html.light .text-red-400,
html.light .text-red-300 {
  color: #dc2626 !important;
}

/* Soft Badges & Light Alert Banners */
html.light .bg-brand-500\/10,
html.light .bg-brand-500\/15 {
  background-color: #f5f3ff !important;
  border-color: #ddd6fe !important;
}

html.light .bg-emerald-500\/10,
html.light .bg-emerald-500\/15 {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

html.light .bg-amber-500\/10,
html.light .bg-amber-500\/15 {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
}

html.light .bg-red-500\/10,
html.light .bg-red-500\/15 {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
}

/* Inputs, Textareas, and Selects */
html.light input[type="text"],
html.light input[type="password"],
html.light input[type="number"],
html.light textarea,
html.light select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important;
}

/* Modals & Overlays */
html.light .bg-black\/80 {
  background-color: rgba(15, 23, 42, 0.45) !important;
}

html.light .glass-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #e4e4e7 !important;
}

/* Floating Toast */
html.light #toastContainer > div {
  background-color: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}
html.light #toastContainer span {
  color: #1e293b !important;
}

/* Table header & Rows in Light Mode */
html.light thead tr {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light thead th {
  color: #64748b !important;
}

html.light tbody tr {
  background-color: #ffffff;
}

html.light tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Custom Scrollbars in Light Mode */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Bulk Status Banner
   ========================================================================== */

/* Running banner - Dark Mode (Default) */
#bulkStatusBanner.bulk-running {
  background: linear-gradient(135deg, #13102b 0%, #0c0d18 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 8px 30px -4px rgba(124, 58, 237, 0.25) !important;
  color: #f8fafc !important;
}

#bulkStatusBanner.bulk-running #bulkStatusIconBox {
  background-color: rgba(124, 58, 237, 0.2) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
}
#bulkStatusBanner.bulk-running #bulkStatusIconBox i,
#bulkStatusBanner.bulk-running #bulkStatusIcon {
  color: #c4b5fd !important;
}

#bulkStatusBanner.bulk-running #bulkBannerTitle {
  color: #ffffff !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-running #bulkBadgeStatus {
  background-color: rgba(124, 58, 237, 0.25) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-running #bulkProgressText {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

#bulkStatusBanner.bulk-running #bulkAvgText {
  color: #c4b5fd !important;
  font-weight: 500 !important;
}

#bulkStatusBanner.bulk-running #bulkDivider {
  color: #64748b !important;
}

#bulkStatusBanner.bulk-running #bulkLiveTimer,
#bulkStatusBanner.bulk-running #bulkTimerText {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-running #bulkTimerIcon {
  color: #f59e0b !important;
}

/* Completed banner - Dark Mode (Default) */
#bulkStatusBanner.bulk-completed {
  background: linear-gradient(135deg, #072218 0%, #091319 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 8px 30px -4px rgba(16, 185, 129, 0.25) !important;
  color: #f8fafc !important;
}

#bulkStatusBanner.bulk-completed #bulkStatusIconBox {
  background-color: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
}
#bulkStatusBanner.bulk-completed #bulkStatusIconBox i,
#bulkStatusBanner.bulk-completed #bulkStatusIcon {
  color: #6ee7b7 !important;
}

#bulkStatusBanner.bulk-completed #bulkBannerTitle {
  color: #ffffff !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-completed #bulkBadgeStatus {
  background-color: rgba(16, 185, 129, 0.25) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-completed #bulkProgressText {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}

#bulkStatusBanner.bulk-completed #bulkAvgText {
  color: #6ee7b7 !important;
  font-weight: 500 !important;
}

#bulkStatusBanner.bulk-completed #bulkDivider {
  color: #64748b !important;
}

#bulkStatusBanner.bulk-completed #bulkLiveTimer,
#bulkStatusBanner.bulk-completed #bulkTimerText {
  color: #34d399 !important;
  font-weight: 700 !important;
}

#bulkStatusBanner.bulk-completed #bulkTimerIcon {
  color: #10b981 !important;
}

#bulkStatusBanner.bulk-completed #bulkCloseBannerBtn {
  color: #94a3b8 !important;
  background-color: transparent !important;
}
#bulkStatusBanner.bulk-completed #bulkCloseBannerBtn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Bulk Status Banner in Light Mode */
html.light #bulkStatusBanner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-color: #86efac !important;
  box-shadow: 0 4px 15px -1px rgba(16, 185, 129, 0.12), 0 2px 4px -2px rgba(16, 185, 129, 0.06) !important;
  color: #064e3b !important;
}

html.light #bulkStatusBanner.bulk-completed {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-color: #86efac !important;
  box-shadow: 0 4px 15px -1px rgba(16, 185, 129, 0.12), 0 2px 4px -2px rgba(16, 185, 129, 0.06) !important;
  color: #064e3b !important;
}

html.light #bulkStatusBanner.bulk-running {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
  border-color: #d8b4fe !important;
  box-shadow: 0 4px 15px -1px rgba(124, 58, 237, 0.12), 0 2px 4px -2px rgba(124, 58, 237, 0.06) !important;
  color: #4c1d95 !important;
}

/* Completed banner elements in Light Mode */
html.light #bulkStatusBanner.bulk-completed #bulkStatusIconBox {
  background-color: #dcfce7 !important;
  border-color: #86efac !important;
}
html.light #bulkStatusBanner.bulk-completed #bulkStatusIconBox i,
html.light #bulkStatusBanner.bulk-completed #bulkStatusIcon {
  color: #059669 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkBannerTitle {
  color: #064e3b !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkBadgeStatus {
  background-color: #dcfce7 !important;
  color: #047857 !important;
  border-color: #86efac !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkProgressText,
html.light #bulkStatusBanner.bulk-completed #bulkAvgText,
html.light #bulkStatusBanner.bulk-completed #bulkDivider {
  color: #047857 !important;
  font-weight: 500 !important;
}

html.light #bulkStatusBanner.bulk-completed .text-zinc-400 {
  color: #047857 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkLiveTimer,
html.light #bulkStatusBanner.bulk-completed #bulkTimerText {
  color: #047857 !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkTimerIcon {
  color: #059669 !important;
}

html.light #bulkStatusBanner.bulk-completed #bulkCloseBannerBtn {
  color: #047857 !important;
  background-color: transparent !important;
}
html.light #bulkStatusBanner.bulk-completed #bulkCloseBannerBtn:hover {
  background-color: #dcfce7 !important;
  color: #064e3b !important;
}

/* Running banner elements in Light Mode */
html.light #bulkStatusBanner.bulk-running #bulkStatusIconBox {
  background-color: #f3e8ff !important;
  border-color: #d8b4fe !important;
}
html.light #bulkStatusBanner.bulk-running #bulkStatusIconBox i,
html.light #bulkStatusBanner.bulk-running #bulkStatusIcon {
  color: #7c3aed !important;
}

html.light #bulkStatusBanner.bulk-running #bulkBannerTitle {
  color: #4c1d95 !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-running #bulkBadgeStatus {
  background-color: #f3e8ff !important;
  color: #6d28d9 !important;
  border-color: #d8b4fe !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-running #bulkProgressText,
html.light #bulkStatusBanner.bulk-running #bulkAvgText,
html.light #bulkStatusBanner.bulk-running #bulkDivider {
  color: #6b21a8 !important;
  font-weight: 500 !important;
}

html.light #bulkStatusBanner.bulk-running .text-zinc-400 {
  color: #6b21a8 !important;
}

html.light #bulkStatusBanner.bulk-running #bulkLiveTimer,
html.light #bulkStatusBanner.bulk-running #bulkTimerText {
  color: #b45309 !important;
  font-weight: 700 !important;
}

html.light #bulkStatusBanner.bulk-running #bulkTimerIcon {
  color: #d97706 !important;
}

/* Generator Breakdown Header Section */
.gen-section-icon {
  background-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
.gen-section-title {
  color: #f8fafc;
}
.gen-section-subtitle {
  color: #94a3b8;
}

html.light #bulkStatusBanner.bulk-completed .gen-section-icon {
  background-color: #dcfce7 !important;
  color: #059669 !important;
}
html.light #bulkStatusBanner.bulk-completed .gen-section-title {
  color: #064e3b !important;
}
html.light #bulkStatusBanner.bulk-completed .gen-section-subtitle {
  color: #047857 !important;
  font-weight: 600 !important;
}

html.light #bulkStatusBanner.bulk-running .gen-section-icon {
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
}
html.light #bulkStatusBanner.bulk-running .gen-section-title {
  color: #4c1d95 !important;
}
html.light #bulkStatusBanner.bulk-running .gen-section-subtitle {
  color: #6b21a8 !important;
  font-weight: 600 !important;
}

/* Generator Cards - Dark Mode (Default) */
.generator-stat-card {
  background-color: rgba(18, 19, 30, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease;
}
.generator-stat-card:hover {
  border-color: rgba(139, 92, 246, 0.45) !important;
}

.generator-stat-card .gen-name {
  color: #ffffff !important;
}
.generator-stat-card .gen-label {
  color: #94a3b8 !important;
}
.generator-stat-card .gen-subtext {
  color: #94a3b8 !important;
}
.generator-stat-card .gen-success {
  color: #34d399 !important;
}
.generator-stat-card .gen-failed {
  color: #f87171 !important;
}
.generator-stat-card .gen-avg {
  color: #fcd34d !important;
}
.generator-stat-card .gen-render-badge {
  color: #60a5fa !important;
}
.generator-stat-card .gen-fail-badge {
  color: #f87171 !important;
}
.generator-stat-card .gen-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Icon Boxes in Dark Mode */
.icon-box-blue {
  background-color: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
}
.icon-box-teal {
  background-color: rgba(20, 184, 166, 0.15) !important;
  border: 1px solid rgba(20, 184, 166, 0.3) !important;
  color: #2dd4bf !important;
}
.icon-box-purple {
  background-color: rgba(168, 85, 247, 0.15) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #c084fc !important;
}
.icon-box-brand {
  background-color: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: #a78bfa !important;
}

/* Generator Status Badges in Dark Mode */
.generator-stat-badge-fast {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}
.generator-stat-badge-normal {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}
.generator-stat-badge-slow {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.generator-stat-badge-bad {
  background-color: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}
.generator-stat-badge-running {
  background-color: rgba(139, 92, 246, 0.2) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}
.generator-stat-badge-cooldown {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.generator-stat-card.is-disabled {
  opacity: 0.65;
  filter: grayscale(35%);
  border-style: dashed !important;
}

/* Light Mode for Generator Stat Cards */
html.light .generator-stat-card {
  background-color: #ffffff !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
  color: #0f172a !important;
}

html.light .generator-stat-card .gen-name {
  color: #064e3b !important;
}

html.light .generator-stat-card .gen-label {
  color: #475569 !important;
  font-weight: 700 !important;
}

html.light .generator-stat-card .gen-subtext {
  color: #334155 !important;
  font-weight: 600 !important;
}

html.light .generator-stat-card .gen-success {
  color: #047857 !important;
  font-weight: 800 !important;
}

html.light .generator-stat-card .gen-failed {
  color: #b91c1c !important;
  font-weight: 800 !important;
}

html.light .generator-stat-card .gen-avg {
  color: #b45309 !important;
  font-weight: 800 !important;
}

html.light .generator-stat-card .gen-render-badge {
  color: #2563eb !important;
  font-weight: 600 !important;
}

html.light .generator-stat-card .gen-fail-badge {
  color: #b91c1c !important;
  font-weight: 700 !important;
}

html.light .generator-stat-card .gen-divider {
  border-color: #e2e8f0 !important;
}

/* Icon Boxes in Light Mode */
html.light .icon-box-blue {
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
}
html.light .icon-box-blue i {
  color: #1d4ed8 !important;
}
html.light .icon-box-teal {
  background-color: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
  color: #0d9488 !important;
}
html.light .icon-box-teal i {
  color: #0d9488 !important;
}
html.light .icon-box-purple {
  background-color: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
  color: #7c3aed !important;
}
html.light .icon-box-purple i {
  color: #7c3aed !important;
}
html.light .icon-box-brand {
  background-color: #f5f3ff !important;
  border: 1px solid #e9d5ff !important;
  color: #7c3aed !important;
}
html.light .icon-box-brand i {
  color: #7c3aed !important;
}

/* Generator Status Badges in Light Mode */
html.light .generator-stat-badge-fast {
  background-color: #dcfce7 !important;
  color: #047857 !important;
  border-color: #86efac !important;
}
html.light .generator-stat-badge-fast i {
  color: #047857 !important;
}

html.light .generator-stat-badge-normal {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
html.light .generator-stat-badge-normal i {
  color: #1d4ed8 !important;
}

html.light .generator-stat-badge-slow {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fcd34d !important;
}
html.light .generator-stat-badge-slow i {
  color: #b45309 !important;
}

html.light .generator-stat-badge-bad {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}
html.light .generator-stat-badge-bad i {
  color: #b91c1c !important;
}

html.light .generator-stat-badge-running {
  background-color: #f3e8ff !important;
  color: #6d28d9 !important;
  border-color: #d8b4fe !important;
}
html.light .generator-stat-badge-running i {
  color: #6d28d9 !important;
}
html.light .generator-stat-badge-cooldown {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fcd34d !important;
}
html.light .generator-stat-badge-cooldown i {
  color: #b45309 !important;
}
html.light .generator-stat-card.is-disabled {
  opacity: 0.65;
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* --- CARD VIEW STYLES --- */
.job-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  contain: layout style paint;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.job-card video {
  transform: translateZ(0);
}
.job-card:hover {
  transform: translateY(-2px);
}
html.light .job-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html.light .job-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08) !important;
}
html.light .job-card .text-zinc-200,
html.light .job-card .text-zinc-300 {
  color: #1e293b !important;
}
html.light .job-card .text-zinc-400 {
  color: #475569 !important;
}
html.light .job-card .text-zinc-500 {
  color: #64748b !important;
}
html.light .job-card .bg-zinc-950 {
  background-color: #f8fafc !important;
}
html.light .job-card .border-zinc-800,
html.light .job-card .border-zinc-800\/80,
html.light .job-card .border-zinc-800\/70,
html.light .job-card .border-zinc-800\/60 {
  border-color: #e2e8f0 !important;
}
html.light #queueCardsContainer {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* Card Selection Highlights */
.job-card.job-card-selected {
  border-color: rgba(99, 102, 241, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5), 0 4px 14px -2px rgba(0, 0, 0, 0.35) !important;
  background-color: rgba(30, 27, 75, 0.25) !important;
}
html.light .job-card.job-card-selected {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35), 0 4px 14px -2px rgba(99, 102, 241, 0.15) !important;
  background-color: #f5f3ff !important;
}

/* View Mode Segmented Controls */
.view-mode-btn-active {
  background-color: #3f3f46 !important; /* zinc-700 */
  color: #ffffff !important;
}
.view-mode-btn-inactive {
  background-color: transparent !important;
  color: #a1a1aa !important; /* zinc-400 */
}
.view-mode-btn-inactive:hover {
  color: #e4e4e7 !important; /* zinc-200 */
}

html.light .view-mode-btn-active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
html.light .view-mode-btn-inactive {
  background-color: transparent !important;
  color: #64748b !important;
}
html.light .view-mode-btn-inactive:hover {
  color: #1e293b !important;
}

/* Tri-State Indeterminate Checkbox Styling */
input[type="checkbox"]:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M4 8h8'/%3e%3c/svg%3e") !important;
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* --- CARD QUEUED VS PROCESSING DISTINCT VISUALS --- */
.job-card.job-card-queued {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(18, 19, 28, 0.65) !important;
  opacity: 0.85;
}
.job-card.job-card-queued:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html.light .job-card.job-card-queued {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  opacity: 0.88;
}
html.light .job-card.job-card-queued:hover {
  opacity: 1;
  border-color: #cbd5e1 !important;
}

.job-card.job-card-processing {
  border-color: rgba(139, 92, 246, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 4px 16px -2px rgba(139, 92, 246, 0.25) !important;
  background-color: rgba(24, 18, 43, 0.5) !important;
}

html.light .job-card.job-card-processing {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35), 0 4px 16px -2px rgba(139, 92, 246, 0.15) !important;
  background-color: #faf5ff !important;
}

.card-preview-queued {
  background: radial-gradient(circle at center, rgba(39, 39, 58, 0.35) 0%, rgba(13, 14, 22, 0.95) 100%);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.card-preview-queued .icon-queued-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.card-preview-queued .text-queued-title {
  color: #94a3b8;
}
.card-preview-queued .text-queued-sub {
  color: #64748b;
}

html.light .card-preview-queued {
  background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%) !important;
  border-bottom: 1px dashed #cbd5e1 !important;
}
html.light .card-preview-queued .icon-queued-box {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
html.light .card-preview-queued .text-queued-title {
  color: #475569 !important;
}
html.light .card-preview-queued .text-queued-sub {
  color: #64748b !important;
}

.card-badge-queued {
  background-color: rgba(39, 39, 58, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}
html.light .card-badge-queued {
  background-color: rgba(241, 245, 249, 0.95) !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* --- CARD PREVIEW STATES IN LIGHT MODE --- */
/* Processing / Rendering Preview */
html.light .card-preview-container[data-status="processing"] > div {
  background: radial-gradient(circle at center, #faf5ff 0%, #f3e8ff 100%) !important;
  border-bottom: 1px solid #e9d5ff !important;
}
html.light .card-preview-container[data-status="processing"] .rounded-full {
  background-color: #ffffff !important;
  border: 1px solid #d8b4fe !important;
  box-shadow: 0 2px 6px -1px rgba(124, 58, 237, 0.15) !important;
}
html.light .card-preview-container[data-status="processing"] i,
html.light .card-preview-container[data-status="processing"] svg {
  color: #7c3aed !important;
}
html.light .card-preview-container[data-status="processing"] span {
  color: #6b21a8 !important;
  font-weight: 700 !important;
}

/* Downloading / Storing Preview */
html.light .card-preview-container[data-status="downloading"] > div {
  background: radial-gradient(circle at center, #fffbeb 0%, #fef3c7 100%) !important;
  border-bottom: 1px solid #fde68a !important;
}
html.light .card-preview-container[data-status="downloading"] .rounded-full {
  background-color: #ffffff !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 2px 6px -1px rgba(217, 119, 6, 0.15) !important;
}
html.light .card-preview-container[data-status="downloading"] i,
html.light .card-preview-container[data-status="downloading"] svg {
  color: #d97706 !important;
}
html.light .card-preview-container[data-status="downloading"] span {
  color: #92400e !important;
  font-weight: 700 !important;
}

/* Failed Preview */
html.light .card-preview-container[data-status="failed"] > div {
  background: radial-gradient(circle at center, #fef2f2 0%, #fee2e2 100%) !important;
  border-bottom: 1px solid #fecaca !important;
}
html.light .card-preview-container[data-status="failed"] .rounded-full {
  background-color: #ffffff !important;
  border: 1px solid #fecaca !important;
}
html.light .card-preview-container[data-status="failed"] i,
html.light .card-preview-container[data-status="failed"] svg {
  color: #dc2626 !important;
}
html.light .card-preview-container[data-status="failed"] span {
  color: #991b1b !important;
  font-weight: 700 !important;
}

/* Checkbox & Tech Chip in Light Mode */
html.light .job-card input[type="checkbox"] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}
html.light .job-card input[type="checkbox"]:checked {
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
}
html.light .card-tech-chip {
  background-color: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* --- ZIP DOWNLOAD PROGRESS WIDGET STYLES --- */
@keyframes zipShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.animate-zip-shimmer {
  animation: zipShimmer 2s infinite linear;
}

#zipProgressWidget {
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html.light #zipProgressWidget {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

html.light #zipProgressTitle {
  color: #0f172a !important;
}

html.light #zipProgressSubtitle {
  color: #475569 !important;
}

html.light #zipProgressWidget .bg-zinc-800\/90 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html.light #zipProgressBytes {
  color: #475569 !important;
}

html.light #zipProgressSpeed {
  color: #0f172a !important;
}

html.light #zipProgressEta {
  color: #64748b !important;
}

/* --- BATCH ACTIONS DROPDOWN STYLES --- */
#batchActionsMenu {
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html.light #batchActionsMenu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

html.light #batchActionsMenu button:not([class*="text-rose"]):hover {
  background-color: #f8fafc !important;
}

html.light #batchActionsMenu button span.text-white,
html.light #batchActionsMenu button span.text-zinc-200 {
  color: #0f172a !important;
}

html.light #batchActionsMenu button p {
  color: #64748b !important;
}

html.light #batchActionsMenu .border-t {
  border-color: #f1f5f9 !important;
}

html.light #batchActionsMenu button[class*="text-rose"] {
  color: #dc2626 !important;
}

html.light #batchActionsMenu button[class*="text-rose"]:hover {
  background-color: #fef2f2 !important;
}





