/* Custom styles on top of Tailwind – glass, theme, animations */

:root {
  --canvas: #0B0F19;
  --panel: rgba(22, 31, 48, 0.82);
  --accent: #6366F1;
}

html.light {
  --canvas: #F8FAFC;
  --panel: rgba(255, 255, 255, 0.88);
}

html.light body {
  background-color: #F8FAFC;
  color: #0F172A;
}

html.light .bg-panel,
html.light .bg-panel\/80,
html.light .bg-panel\/50,
html.light .bg-panel\/60,
html.light .bg-panel\/90 {
  background-color: rgba(255, 255, 255, 0.88) !important;
}

html.light .border-white\/5,
html.light .border-white\/10 {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300 {
  color: #0F172A !important;
}

html.light .text-slate-400 {
  color: #64748B !important;
}

html.light .shadow-glass {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}

html.light .bg-white\/5 {
  background-color: rgba(15, 23, 42, 0.04) !important;
}

html.light .hover\:bg-white\/5:hover {
  background-color: rgba(15, 23, 42, 0.06) !important;
}

/* Safe area for mobile bottom nav */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Nav active states */
.nav-btn.active,
.nav-btn-mobile.active {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.12);
}

html.light .nav-btn.active,
html.light .nav-btn-mobile.active {
  color: #4F46E5;
  background: rgba(99, 102, 241, 0.1);
}

/* Radio cards */
.radio-card input:checked + div {
  border-color: #6366F1;
  background: rgba(99, 102, 241, 0.12);
  color: #A5B4FC;
}

html.light .radio-card input:checked + div {
  color: #4F46E5;
  background: rgba(99, 102, 241, 0.08);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6366F1, #818CF8);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
html.light .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0F172A;
}
html.light .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.07);
}

/* Smooth view enter */
.animate-in {
  animation: fadeInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress bar shimmer */
#progress-bar {
  background-size: 200% 100%;
}

/* Dropzone active */
#dropzone.dragover {
  border-color: #6366F1;
  background: rgba(99, 102, 241, 0.08);
}

/* Theme / model active */
.theme-btn.active,
.model-btn.active {
  border-color: #6366F1;
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
html.light ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
}
