/* ========== GLOBAL RESET + BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
header {
  background: linear-gradient(to right, #660000, #ff6600);
  box-shadow: 0 0 12px #ff3300;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 6px #ffcc00;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #ffe;
  opacity: 0.8;
}

.brand-logo img {
  max-height: 80px;
  filter: drop-shadow(0 0 6px #ffcc00);
}

/* ========== NAVIGATION ========== */
nav {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.nav-item {
  background: linear-gradient(to right, #cc3300, #ff9900);
  box-shadow: 0 0 6px #ff6600;
}
.nav-item:hover {
  box-shadow: 0 0 12px #ff3300;
}
.nav-active {
  background: linear-gradient(to right, #ff6600, #cc3300);
  box-shadow: 0 0 10px #ff3300;
}

/* ========== PANELS ========== */
main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.panel {
  border: 2px solid #ff3300;
  box-shadow: 0 0 12px #ff3300;
}
.panel-title {
  color: #ff6600;
  text-shadow: 0 0 4px #cc3300;
}

.panel-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #ccc;
}

/* ========== FORM STYLING ========== */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 0.85rem;
  color: #ffcc00;
  margin-bottom: 4px;
}

/* original input styling retained */
.form-input {
  padding: 8px 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 4px #ff6600 ;
}

.form-input:focus {
  outline: none;
  border-color: #ffcc00;
  box-shadow: 0 0 6px #ffcc00;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(to right, #cc3300, #ff6600);
  box-shadow: 0 0 8px #ff3300;
}
.btn-primary:hover {
  box-shadow: 0 0 12px #ff6600;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #ff6600;
}

/* ========== RESULTS ========== */
.results {
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 12px;
}

.results-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #fff;
}

.results-value {
  color: #ff6600;
}

/* ========== FOOTER ========== */
footer {
  margin-top: auto;
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.75rem;
  border-top: 1px solid #333;
}

.footer-link {
  color: #ffcc00;
  text-decoration: none;
  margin-left: 12px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ========== DISCLAIMER ========== */
.header-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.7;
  padding: 6px 10px;
  color: #ffe;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 8px #ff3300;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #ff6600;
}

/* TOOL CARDS */
.tool-card {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffcc00;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 0 8px #ff6600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #ffcc00;
}

.tool-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffcc00;
}

.tool-desc {
  font-size: 0.9rem;
  color: #ccc;
}

img {
  max-width: 100%;
  height: auto;
}

/* Stat Cards for reporting research */
.game-panel {
    background: #111;
    border: 2px solid #ff6600;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 0 20px #ff660055;
}

.glow-title {
    font-size: 28px;
    color: #ff6600;
    text-shadow: 0 0 10px #ff3300;
    margin-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px #000;
}

.stat-card .label {
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.stat-card .value {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.stat-card .big {
    font-size: 26px;
    color: #00ff88;
}

/* ===========================
   MOBILE-FIRST NAV BUTTON BAR
   =========================== */

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffcc00;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  min-width: 120px;
  transition: all 0.2s ease;
}

/* Hover / Touch feedback */
.nav-btn:hover,
.nav-btn:active {
  background: linear-gradient(180deg, #ff6600, #cc5200);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

/* Active page highlight */
.nav-active {
  background: linear-gradient(180deg, #ff6600, #cc5200);
  color: #fff !important;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

/* Mobile optimization */
@media (max-width: 600px) {
   .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .nav-btn {
    flex: 1 1 calc(50% - 10px);
    padding: 14px 0;
    font-size: 1.1rem;
  }
  main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .panel {
    padding: 16px;
  }

  .panel-title {
    font-size: 1.3rem;
  }

  body {
    font-size: 0.9rem;
  }
}

/*m ore*/

.tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #222;
    border: 2px solid #ff6600;
    padding: 10px 16px;
    color: #ff6600;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.tab-btn:hover {
    background: #ff6600;
    color: #000;
}
/* ===== JOB THE GAME: display goodies ===== */
.stat-small { font-size: 12px; color: #bbb; margin-top:6px; }
.range-wrap { margin-top:12px; }
.range-label { font-size:12px; color:#9aa; display:flex; justify-content:space-between; }
.range-bar {
  height: 12px;
  background: linear-gradient(90deg,#222,#111);
  border-radius: 8px;
  position:relative;
  overflow:hidden;
  border:1px solid #2b2b2b;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.6);
}
.range-fill {
  height:100%;
  width:0%;
  background: linear-gradient(90deg,#00ff88,#00b36a);
  transition: width 700ms cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 0 12px rgba(0,255,136,0.12);
}
.range-thumb {
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  width:10px;height:18px;border-radius:3px;
  background:#fff; opacity:0.95;
  box-shadow:0 2px 8px rgba(0,0,0,0.6);
  border:2px solid rgba(0,0,0,0.4);
}

/* Year range uses a different color */
.range-fill.year { background: linear-gradient(90deg,#ffcc33,#ff8c00); box-shadow:0 0 12px rgba(255,140,0,0.12); }

/* Power meter */
.power-meter {
  height: 14px;
  background: #111;
  border-radius: 10px;
  border:1px solid #2b2b2b;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:4px;
}
.power-fill {
  height:100%;
  width:0%;
  transition: width 900ms cubic-bezier(.2,.9,.2,1);
  border-radius:8px;
}
.power-fill.up { background: linear-gradient(90deg,#00ff88,#00b36a); box-shadow:0 0 12px rgba(0,255,136,0.12); }
.power-fill.down { background: linear-gradient(90deg,#ff6b6b,#ff3b3b); box-shadow:0 0 12px rgba(255,59,59,0.12); }
.power-label { font-size:12px; color:#ddd; margin-left:8px; }

/* Sparkline canvas */
.sparkline {
  width:100%;
  height:48px;
  display:block;
  background: linear-gradient(180deg,#0b0b0b,#0f0f0f);
  border-radius:6px;
  border:1px solid #222;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.6);
}

/* small utility */
.copy-btn {
  background:#222;border:1px solid #444;color:#ffcc66;padding:6px 8px;border-radius:6px;cursor:pointer;margin-left:8px;
}

/* increase padding inside text/number inputs and make sliders touch-friendly */
.form-input,
.input,
.npv-input {
  padding: 12px 14px;           /* more internal padding for readability */
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.2;
}

/* make range sliders larger on touch devices */
input[type="range"] {
  height: 36px;
  -webkit-appearance: none;
  background: transparent;
  margin-top: 8px;
}

/* track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg,#ffcc66,#ff6a28);
  border-radius: 8px;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg,#ffcc66,#ff6a28);
  border-radius: 8px;
}

/* thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  margin-top: -7px; /* center the thumb on the track */
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* ensure slider fills available width on small screens */
@media (max-width: 640px) {
  input[type="range"] { width: 100%; }
}

/* =========================
   NEW: Alignment & control-row fixes
   (appended so original styles are preserved)
   ========================= */

/* Unified control row wrapper for input + slider + optional display */
.control-row {
  display: flex;
  gap: 10px;
  align-items: center;        /* vertically center input and slider */
  width: 100%;
}

/* Numeric input visual consistency inside control-row */
.control-row .form-input,
.control-row .input,
.control-row input[type="number"],
.control-row input[type="text"] {
  padding: 12px 14px;        /* consistent inner padding */
  height: 44px;              /* consistent visual height */
  line-height: 1;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 140px;
  flex: 0 0 auto;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  font-size: 15px;
}

/* Slider fills remaining width and shares vertical center */
.control-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;              /* match numeric input height for alignment */
  margin: 0;                 /* remove default margins that cause offset */
  padding: 0;
  flex: 1 1 auto;            /* take remaining width */
  background: transparent;
}

/* Track styling (consistent with existing theme) */
.control-row input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg,#ffcc66,#ff6a28);
}
.control-row input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg,#ffcc66,#ff6a28);
}

/* Thumb styling centered on track */
.control-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  margin-top: -7px;
}
.control-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Small formatted value display to the right of controls */
.control-value {
  min-width: 96px;
  text-align: right;
  color: #c9a77a;
  font-size: 13px;
  flex: 0 0 auto;
}

/* Ensure control-row works on very small screens */
@media (max-width: 640px) {
  .control-row { gap: 8px; }
  .control-row .form-input { min-width: 110px; height: 42px; padding: 10px 12px; }
  .control-row input[type="range"] { height: 42px; }
  .control-value { min-width: 72px; font-size: 12px; }
}

/* Extra specificity fallback for inputs in form-field to ensure padding applies */
.form-field .form-input,
.form-field input[type="number"],
.form-field input[type="text"] {
  padding: 12px 14px;
  box-sizing: border-box;
}

/* Textarea adjustments */
textarea {
  min-height: 96px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 8px;
}

/* If any earlier rule still overrides, this selector increases specificity without !important */
.panel .form-field .form-input,
.panel .form-field input[type="number"],
.panel .form-field input[type="text"] {
  padding: 12px 14px;
}

/* === JOB THE GAME: QUESTION PANEL === */

.jg-question-panel {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.jg-question-panel h1,
.jg-question-panel h2 {
  margin-top: 0;
  text-align: center;
}

.jg-input-row {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jg-input-row input[type="text"],
.jg-input-row input[type="number"] {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.1rem;
}

.jg-submit-btn {
  margin-top: 20px;
  padding: 12px 18px;
  background: #ff5722;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.jg-submit-btn:hover {
  background: #ff784e;
}

/* End of file */
