/* WorkingTG dashboard styles */
body { font-family: 'Inter', system-ui, sans-serif; }
.grad { background: linear-gradient(135deg,#4f46e5 0%,#7c3aed 50%,#db2777 100%); }
.grad-text { background: linear-gradient(135deg,#4f46e5,#7c3aed,#db2777); -webkit-background-clip:text; background-clip:text; color:transparent; }
.grad-soft { background: linear-gradient(135deg,#eef2ff 0%,#faf5ff 50%,#fdf2f8 100%); }
.glass { background: rgba(255,255,255,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
.float { animation: float 6s ease-in-out infinite; }
.nav-item { transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: rgba(99,102,241,.08); }
.nav-item.active { background: rgba(99,102,241,.12); color: #4f46e5; font-weight: 600; }
html.dark .nav-item:hover { background: rgba(148,163,184,.1); }
.qr-box { background-color: #ffffff !important; }

/* Dark mode overrides (guaranteed) */
html.dark body { background-color: #0b1220 !important; color: #e2e8f0 !important; }
html.dark .bg-white { background-color: #111827 !important; }
html.dark .bg-slate-50 { background-color: #1e293b !important; }
html.dark .bg-slate-100 { background-color: #1e293b !important; }
html.dark .text-slate-900 { color: #f1f5f9 !important; }
html.dark .text-slate-800 { color: #e2e8f0 !important; }
html.dark .text-slate-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600 { color: #94a3b8 !important; }
html.dark .text-slate-500 { color: #64748b !important; }
html.dark .text-slate-400 { color: #475569 !important; }
html.dark .border-slate-200 { border-color: #334155 !important; }
html.dark .border-slate-300 { border-color: #475569 !important; }
html.dark .border-slate-100 { border-color: #1e293b !important; }
html.dark .grad-soft { background: linear-gradient(135deg,#0b1220 0%,#1e1b4b 50%,#1e293b 100%) !important; }
html.dark .glass { background: rgba(15,23,42,.7) !important; border-color: rgba(51,65,85,.6) !important; }
html.dark .bg-white\/70 { background-color: rgba(15,23,42,.7) !important; }
html.dark .bg-white\/95 { background-color: rgba(15,23,42,.95) !important; }
html.dark .bg-slate-900\/70 { background-color: rgba(15,23,42,.7) !important; }
html.dark .divide-slate-200 > * + * { border-color: #334155 !important; }

/* Small utilities that are used by dash.js but were absent from the compiled Tailwind build */
.max-h-72 { max-height: 18rem; }
.min-w-\[480px\] { min-width: 480px; }
.w-32 { width: 8rem; }
.items-end { align-items: flex-end; }
.ml-7 { margin-left: 1.75rem; }
.pr-1 { padding-right: .25rem; }
.select-none { user-select: none; -webkit-user-select: none; }
.text-\[9px\] { font-size: 9px; line-height: 12px; }
.transition-all { transition: all .15s ease; }

/* Surface cards (used on some module pages) */
.surface { background-color: #ffffff; border: 1px solid #e2e8f0; }
html.dark .surface { background-color: #0b1220 !important; border-color: #1e293b !important; }

/* Form controls: never blend into white cards and stay readable in dark theme */
html { color-scheme: light; }
html.dark { color-scheme: dark; }
html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]),
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
  background-color: #ffffff !important;
  border-color: #7569f6 !important;
}
html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder { color: #64748b !important; }
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]),
html.dark select,
html.dark textarea {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder { color: #64748b !important; }
html.dark select option,
html.dark option { background-color: #0f172a !important; color: #f1f5f9 !important; }

/* Native date/time pickers follow the theme */
html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="time"]::-webkit-calendar-picker-indicator,
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.6); }


/* Shimmer/sparkle text effect for GRAM GPT */
.shimmer-text {
  position: relative;
  color: #94a3b8;
  display: inline-block;
}
.dark .shimmer-text {
  color: #64748b;
}
.shimmer-text::after {
  content: 'GRAM GPT';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 2.5s linear infinite;
  pointer-events: none;
}
.dark .shimmer-text::after {
  background: linear-gradient(90deg, transparent, rgba(200,220,255,0.6), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Trial/profile buttons */
.bg-green-600 { background-color: #16a34a; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.bg-red-600 { background-color: #dc2626; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
