/* Clean, Bright, Minimalist Light Theme */

:root {
  --color-bg-base: #f8fafc; /* Slate 50 */
  --accent-primary: #3b82f6; /* Blue 500 */
}

body {
  background-color: var(--color-bg-base);
  /* Light Sci-Fi Geometric/Tech background overlaid with heavy white to keep UI crisp */
  background-image: 
    linear-gradient(rgba(248, 250, 252, 0.65), rgba(248, 250, 252, 0.9)), 
    url('https://images.unsplash.com/photo-1614729939124-032f0b56c9ce?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Premium White Cards */
.premium-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
              0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.premium-input-group {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.action-btn-circle {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.action-btn-circle:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

/* Stepper Indicator */
.step-indicator {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.step-indicator.active {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.step-indicator.completed {
  color: #475569; 
}

/* SPA View Logic */
.view-wrapper {
  position: relative;
}

.view-panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  visibility: hidden;
}

.view-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  position: relative;
}

.view-panel.exit { transform: translateY(-15px); }
.view-panel.exit-reverse { transform: translateY(15px); }
.view-panel.enter-reverse { transform: translateY(-15px); }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.hidden-scroll::-webkit-scrollbar { display: none; }

/* Buttons */
.premium-btn {
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
  border: 1px solid #1d4ed8;
  cursor: pointer;
}

.premium-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

.premium-btn:active {
  transform: translateY(1px);
}

.premium-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  border-color: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.nav-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Drag & Drop */
.drop-zone {
  background: #f8fafc;
}
.drop-zone.drag-over {
  border-color: #3b82f6;
  background: #eff6ff;
}

/* Model Option Selection */
.model-option {
  background: #ffffff;
  border: 2px solid #e2e8f0;
}
.model-option input:checked + div {
  /* Only for div if used, but we target the whole label in logic now */
}
.model-option:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Loader */
.loader-accent {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-right-color: #3b82f6;
  animation: spin 1s infinite cubic-bezier(0.55, 0.15, 0.45, 0.85);
}
@keyframes spin {to{transform: rotate(1turn)}}

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6; color: #0f172a;
  padding: 12px 20px; border-radius: 6px; font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 10px; font-size: 0.875rem;
  transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #ef4444; }

/* Toggle Switch Styles */
#useUnknown:checked + div {
  background-color: #3b82f6;
}
#useUnknown:checked + div + .dot {
  transform: translateX(100%);
}
