/* WFM Labs — ecosystemcapacity | Dark Theme Only */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

*, body, html { font-family: 'Montserrat', sans-serif !important; }
body { background-color: #0a0f1a !important; color: #f3f4f6 !important; }

:not(.bg-clip-text)[class*="bg-gradient"] { background-image: none !important; }
.bg-clip-text.text-transparent {
  background-image: linear-gradient(to right, #FF8C40, #00A3A1) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}

/* Backgrounds */
.bg-amber-500 { background-color: #FF6D00 !important; }
.bg-blue-500 { background-color: #FF6D00 !important; }
.bg-blue-600 { background-color: #CC5700 !important; }
.bg-blue-700 { background-color: #994100 !important; }
.bg-emerald-500 { background-color: #00A3A1 !important; }
.bg-gray-600 { background-color: #374151 !important; }
.bg-gray-700 { background-color: #2a3444 !important; }
.bg-gray-900 { background-color: #0a0f1a !important; }
.bg-green-500 { background-color: #10b981 !important; }
.bg-purple-500 { background-color: #a855f7 !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.bg-white { background-color: #1a2332 !important; }
.bg-yellow-500 { background-color: #f59e0b !important; }

/* Text */
.text-blue-400 { color: #FF8C40 !important; }
.text-gray-300 { color: #D1D5DB !important; }
.text-gray-400 { color: #9CA3AF !important; }
.text-gray-500 { color: #6B7280 !important; }
.text-white { color: #ffffff !important; }

/* Borders */
.border-blue-500 { border-color: #FF6D00 !important; }
.border-gray-600 { border-color: #374151 !important; }
.border-green-500 { border-color: #00A3A1 !important; }
.border-red-500 { border-color: #ef4444 !important; }

/* ── INPUTS: Critical fix ── */
/* Dark bg inputs with LIGHT readable text */
input, select, textarea {
  background-color: #0f1724 !important;
  border: 1px solid #374151 !important;
  color: #f3f4f6 !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
}
input::placeholder, textarea::placeholder {
  color: #6B7280 !important;
  opacity: 1 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #FF6D00 !important;
  box-shadow: 0 0 0 2px rgba(255,109,0,0.2) !important;
  outline: none !important;
}
/* Number input spin buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ── RANGE SLIDERS: Visible track + orange thumb ── */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 6px !important;
  border-radius: 3px !important;
  background: #374151 !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 18px !important; height: 18px !important;
  border-radius: 50% !important;
  background: #FF6D00 !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 4px rgba(255,109,0,0.4) !important;
}
input[type="range"]::-moz-range-thumb {
  width: 18px !important; height: 18px !important;
  border-radius: 50% !important;
  background: #FF6D00 !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px !important;
  border-radius: 3px !important;
  background: #374151 !important;
}
input[type="range"]::-moz-range-track {
  height: 6px !important;
  border-radius: 3px !important;
  background: #374151 !important;
}

/* ── TABLES ── */
table { border-color: #2a3444 !important; }
thead { background-color: #0f1724 !important; }
th { color: #9CA3AF !important; border-color: #2a3444 !important; }
td { color: #E5E7EB !important; border-color: #2a3444 !important; }
tbody tr { border-color: #2a3444 !important; }
tr:hover { background-color: rgba(255,109,0,0.04) !important; }

/* ── BUTTONS ── */
button[class*="bg-blue"], button[class*="bg-indigo"],
[class*="bg-blue-600"], [class*="bg-blue-700"], [class*="bg-indigo-600"],
[class*="bg-indigo-700"] {
  background-color: #FF6D00 !important; color: #fff !important;
}
button[class*="bg-blue"]:hover, button[class*="bg-indigo"]:hover,
[class*="hover\:bg-blue"]:hover, [class*="hover\:bg-indigo"]:hover {
  background-color: #CC5700 !important;
}
/* Outline/secondary buttons */
button[class*="border-blue"], button[class*="border-indigo"] {
  border-color: #FF6D00 !important;
}
button[class*="text-blue"], button[class*="text-indigo"] {
  color: #FF8C40 !important;
}

/* ── FOCUS RINGS ── */
[class*="ring-blue"], [class*="ring-indigo"],
[class*="focus\:ring-blue"], [class*="focus\:ring-indigo"] {
  --tw-ring-color: rgba(255,109,0,0.5) !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0f1a; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ── DIVIDE ── */
[class*="divide-gray"] > * + * { border-color: #2a3444 !important; }

/* ── MISC ── */
[class*="shadow-"] { --tw-shadow-color: rgba(0,0,0,0.3) !important; }
hr { border-color: #2a3444 !important; }
label { color: #E5E7EB !important; }
p, span, li, h1, h2, h3, h4, h5, h6 { color: inherit; }

/* ── BADGE ── */
#wfm-badge {
  position: fixed; bottom: 12px; right: 16px; z-index: 9999;
  font-family: 'Montserrat', sans-serif !important; font-size: 10px;
  color: #6b7280; background: rgba(10,15,26,0.9); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 4px; border: 1px solid #2a3444;
}
#wfm-badge a { color: #FF6D00; text-decoration: none; }


/* ── HEADER (Monte Carlo style) ── */
#wfm-header {
  background-color: #1a2332;
  border-bottom: 1px solid #2a3444;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}
#wfm-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
#wfm-header .header-icon {
  width: 40px; height: 40px;
  background: rgba(255,109,0,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
#wfm-header .header-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
#wfm-header .header-subtitle {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}
#wfm-header .header-subtitle a {
  color: #FF6D00;
  text-decoration: none;
}
#wfm-header .header-subtitle a:hover { color: #FF8C40; }

/* ── FOOTER (Monte Carlo style) ── */
#wfm-footer {
  background-color: #111827;
  border-top: 1px solid #2a3444;
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
}
#wfm-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
#wfm-footer .footer-copyright {
  font-size: 13px;
  color: #9CA3AF;
}
#wfm-footer .footer-copyright a {
  color: #FF6D00;
  text-decoration: none;
}
#wfm-footer .footer-links {
  display: flex;
  gap: 20px;
}
#wfm-footer .footer-links a {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}
#wfm-footer .footer-links a:hover { color: #FF6D00; }
#wfm-footer .footer-disclaimer {
  font-size: 11px;
  color: #6B7280;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Push the app content between header and footer */
#wfm-app-wrap {
  min-height: calc(100vh - 130px);
}
