/* oh.goalgotrade.com - dark theme matching the "Overnight Harvester"
   landing page's palette (navy bg, cyan/blue/purple accents). Hand-
   authored, same architecture as the main app's own style.css (plain
   class names, no utility-framework build step needed for the actual
   logged-in app pages - Tailwind stays scoped to the marketing
   landing.html only, same split the main app itself uses). */

:root {
  --bg: #0b0f19;
  --card: #131c31;
  --card-hover: #172140;
  --border: #1f2a44;
  --text: #f3f4f6;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #f43f5e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(600px 400px at 50% -10%, rgba(59, 130, 246, 0.12), transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--cyan); }

.oh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.oh-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}
.oh-brand .oh-logo {
  width: 2.1rem; height: 2.1rem; border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 1.1rem;
}
.oh-brand span.accent { color: var(--cyan); }

.oh-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.oh-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.oh-nav a:hover, .oh-nav a.active { color: var(--cyan); }

.oh-container { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.oh-container.wide { max-width: 1200px; }

h1, h2, h3 { color: #fff; font-weight: 700; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.hint { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
}

.oh-auth-card { max-width: 420px; margin: 3rem auto; }

label { display: block; margin: 1rem 0 0.35rem; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
label:first-child { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #0e1526;
  color: var(--text);
  font-size: 0.95rem;
}
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 0.7rem;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1.25rem;
  text-decoration: none;
}
button:hover, .btn:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  font-weight: 600;
}
.btn-outline:hover { background: rgba(6, 182, 212, 0.08); opacity: 1; }

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: var(--red);
  font-weight: 600;
}
.btn-danger-outline:hover { background: rgba(244, 63, 94, 0.1); opacity: 1; }

.toggle { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; margin-top: 0; }
.toggle input { width: auto; margin: 0; }

.param { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.2rem; margin: 1rem 0; background: rgba(19, 28, 49, 0.5); }
.param-header { display: flex; justify-content: space-between; align-items: center; }
.param-header strong { color: #fff; }
.param-desc { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; line-height: 1.5; }

.info-box { border: 1px solid var(--border); border-radius: 0.85rem; margin: 1rem 0; background: rgba(19, 28, 49, 0.4); overflow: hidden; }
.info-box-title { font-weight: 600; color: var(--cyan); padding: 1rem 1.25rem; display: block; }
.info-box > .card { border: none; margin: 0; border-top: 1px solid var(--border); border-radius: 0; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.85rem; overflow: hidden; font-size: 0.88rem; }
.data-table th, .data-table td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(139, 92, 246, 0.15); color: var(--purple); vertical-align: middle; }
.badge-paper { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.badge-live { background: rgba(244, 63, 94, 0.15); color: var(--red); }
.badge-role-super_admin { background: rgba(244, 63, 94, 0.15); color: var(--red); }
.badge-role-admin { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.badge-role-user { background: rgba(148, 163, 184, 0.15); color: var(--muted); }

.text-pass { color: var(--green); }
.text-fail { color: var(--red); }
.text-na { color: var(--muted); }
.pnl.positive { color: var(--green); }
.pnl.negative { color: var(--red); }

.flash { padding: 0.85rem 1.1rem; border-radius: 0.7rem; margin-bottom: 1rem; font-size: 0.9rem; }
.flash.success { background: rgba(34, 197, 94, 0.12); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.flash.error { background: rgba(244, 63, 94, 0.12); color: var(--red); border: 1px solid rgba(244, 63, 94, 0.3); }
.flash.info { background: rgba(59, 130, 246, 0.12); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }

.error-text { color: var(--red); font-size: 0.88rem; margin-top: 0.75rem; }
.info-text { color: var(--cyan); font-size: 0.88rem; margin-top: 0.75rem; }

code { background: rgba(255,255,255,0.06); padding: 0.1rem 0.4rem; border-radius: 0.35rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
