@charset "UTF-8";

/* ── Page ──────────────────────────────────────────────────────────── */

body {
  padding-top: 48px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 15px 6px;
}

.site-credit {
  color: #aaa;
  font-size: 11px;
}
.site-credit a { color: #aaa; text-decoration: underline; }

.orient-switch label {
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
}


/* ── Problem display ───────────────────────────────────────────────── */

#problemset {
  margin-top: 5px;
  margin-left: 20px;
}

.answer {
  display: none;
  color: #ff0000;
}

.horprob-container {
  width: 140px;
  height: 50px;
  font-size: 12px;
  float: left;
  display: block;
  border: 1px #cccccc solid;
  margin-right: 5px;
  margin-top: 5px;
}

.horprob-num, .vertprob-num {
  background-color: #efefef;
  font-size: 10px;
  width: 40px;
  position: relative;
  top: 0;
  left: 0;
  padding-left: 5px;
}

.horprob-prob {
  color: #000;
  font-size: 16px;
  padding-left: 5px;
  padding-top: 10px;
}

.vertprob-container {
  position: relative;
  width: 70px;
  height: 120px;
  font-size: 12px;
  float: left;
  display: block;
  border: 1px #cccccc solid;
  margin-right: 5px;
  margin-top: 5px;
}

.vertprob-digit {
  color: #000;
  font-size: 16px;
  padding-left: 5px;
  padding-top: 5px;
  float: none;
  text-align: right;
  margin-left: 5px;
  margin-right: 15px;
}

.vertprob-digit + .vertprob-digit {
  border-bottom: 1px #000 solid;
}

.vertprob-op {
  position: absolute;
  left: 10px;
  top: 48px;
  font-size: 16px;
}


/* ── Settings modal ────────────────────────────────────────────────── */

.settings-section {
  margin-bottom: 18px;
}

.settings-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  margin-bottom: 8px;
}

/* Operation toggle buttons */
.op-toggles {
  display: flex;
  gap: 6px;
}

.op-toggle {
  border: 2px solid var(--op-color);
  background: transparent;
  color: var(--op-color);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.5;
}

.op-toggle.active {
  background: var(--op-color);
  color: #fff;
}

.op-pct {
  font-size: 11px;
  opacity: 0.85;
  margin-left: 3px;
}

/* noUISlider */
#distribution-slider {
  margin-top: 12px;
}

.noUi-target.noUi-horizontal {
  height: 18px;
  background: #dee2e6;
  border: none;
  box-shadow: none;
  border-radius: 4px;
}

.noUi-connects {
  border-radius: 4px;
}

.noUi-horizontal .noUi-handle {
  width: 22px;
  height: 24px;
  right: -11px;
  top: -3px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  background: #fff;
  border: 1px solid #bbb;
  cursor: ew-resize;
}

.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

/* Number ranges */
.number-ranges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7ff;
  border: 1px solid #dde2f0;
  border-radius: 6px;
  padding: 7px 12px;
}

.range-label {
  font-size: 12px;
  color: #555;
  min-width: 72px;
  padding-right: 10px;
  border-right: 1px solid #dde2f0;
}

.range-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #666;
  gap: 2px;
  margin: 0;
}

.range-field input.form-control {
  width: 62px;
}

/* Answer key button active state */
#calc.answers-on {
  background-color: #4CAF50 !important;
  border-color: #4CAF50 !important;
  color: #fff !important;
}



/* ── Print ─────────────────────────────────────────────────────────── */

@media print {
  .navbar,
  .top-bar,
  .floating-chat-kofi-popup-iframe,
  [id^="kofi"] {
    display: none !important;
  }
  body { padding-top: 0; }
  #problemset { margin-top: 10px; }
}
