/* Mega Random Number Generator - scoped (mega-rng BEM)
   - UI font: Arial
   - Buttons use #4CAF50
   - Mobile-first responsive
*/

.mega-rng {
  --btn-green: #4CAF50;
  --ui-font: Arial, Helvetica, sans-serif;
  --bg: #ffffff;
  --panel-bg: #f7f9fb;
  --muted: #557;
  font-family: var(--ui-font);
  color: #17202a;
  max-width: 980px;
  margin: 18px auto;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 8px 26px rgba(16,24,40,0.06);
}

/* Header */
.mega-rng__header { text-align: left; margin-bottom: 10px; }
.mega-rng__title { margin: 0; font-size: 20px; color: #0f1720; }
.mega-rng__desc { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* Shell layout */
.mega-rng__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Pane */
.mega-rng__pane {
  background: var(--panel-bg);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(7,10,14,0.04);
}

/* Labels */
.mega-rng__label { font-size: 14px; color: #28343a; margin-bottom: 8px; display: block; }

/* rows */
.mega-rng__row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mega-rng__field { flex: 1 1 140px; min-width: 120px; }
.mega-rng__field-label { display: block; font-size: 13px; color: #2b3a3f; margin-bottom: 6px; }

/* inputs */
.mega-rng__input, .mega-rng__select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid rgba(12,17,23,0.06);
  background: #fff;
  box-sizing: border-box;
  font-family: var(--ui-font);
}

/* checkbox */
.mega-rng__checkbox { display: inline-flex; gap:8px; align-items: center; font-size: 13px; color:#273437; cursor: pointer; }
.mega-rng__checkbox-input { width: 18px; height: 18px; }

/* buttons */
.mega-rng__controls, .mega-rng__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mega-rng__btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--ui-font);
  transition: transform .12s ease, box-shadow .12s ease;
}
.mega-rng__btn--primary { background: var(--btn-green); color: #fff; box-shadow: 0 8px 20px rgba(76,175,80,0.12); }
.mega-rng__btn--muted { background: #eef3f7; color: #17202a; }
.mega-rng__btn:hover { transform: translateY(-2px); }

/* output */
.mega-rng__output {
  min-height: 160px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px dashed rgba(34,50,60,0.06);
  overflow: auto;
  font-family: var(--ui-font);
  font-size: 16px;
  color: #0b1720;
  white-space: pre-wrap;
}
.mega-rng__placeholder { color: #6b7b84; font-style: italic; }

/* meta & notes */
.mega-rng__meta { display:flex; gap:12px; margin-top:10px; font-size:13px; color:#375156; }
.mega-rng__meta-item strong { color:#0d2730; }
.mega-rng__note { margin-top:10px; font-size:12px; color:#4a5560; }

/* responsive: two-column on wider screens */
@media (min-width: 820px) {
  .mega-rng__shell { grid-template-columns: 420px 1fr; align-items: start; }
}

/* small screens tuning */
@media (max-width: 420px) {
  .mega-rng__input, .mega-rng__select { font-size: 14px; padding: 10px; }
  .mega-rng__title { font-size: 18px; }
}

/* safety: ensure no global tag overrides */
.mega-rng * { box-sizing: border-box; }
