/* ===================================================== */
/* General Reset */
/* ===================================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ===================================================== */
/* Buttons */
/* ===================================================== */

/* Minimal square icon button */
.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;

  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 10;
}

/* Remove image sizing repetition */
.btn-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Optional hover feedback */
.btn-icon:hover {
  opacity: 0.8;
}

.btn-icon svg {
  width: 28px;
  height: 28px;
  color: #3672ff;
}

.btn-icon:hover svg {
  fill: #2a6df4;
}

/* ===================================================== */
/* Modern visible checkboxes (unchanged, just slightly tightened) */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #3d4449;
  border-radius: 0.25em;
  background-color: white;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-right: 0.35em;  
  
 }

.custom-checkbox:checked {
  background-color: #3d4449;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 0.32em;
  top: 0.08em;
  width: 0.25em;
  height: 0.6em;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9em;
  margin-right: 0.75em;
  cursor: pointer;
}

/* ===================================================== */
/* Parameter row layout (THIS FIXES SQUISHING) */
/* ===================================================== */
/* Row layout */
.parameterRow {
  display: flex;
  align-items: top;   /* KEY: vertical alignment */
  gap: 0.75em;
  margin-bottom: 6px;
  padding-top: 6px;
}

/* Prevent children from overflowing */
.parameterRow > * {
  min-width: 0;
}

/* Parameter name */
.parameterRow .paramName {
  flex: 1;
}

/* Number input — DON'T let it force full width */
.parameterRow input[type="number"] {
  flex: 0 5px 120px;   /* fixed, clean width */
  width: auto;       /* override 100% */
}

/* Checkbox group */
.parameterRow .checkboxGroup {
  display: flex;
  align-items: center;   /* vertical centering */
  gap: 0.35em;
}
/* ===================================================== */
/* Number input styled like textarea (WITH ARROWS) */
input[type="number"] {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;

  background: #ffffff;
  border-radius: 0.375em;
  border: solid 1px rgba(210, 215, 217, 0.75);
  color: inherit;

  display: block;
  outline: 0;

  /* MATCH OTHER INPUTS (no fixed height!) */
  padding: 0 0 0 1em;
  line-height: 1.65;
  font: inherit;

  width: 100%;
  box-sizing: border-box;
}

/* Focus state (consistent with your theme) */
input[type="number"]:focus {
  border-color: #0038b8;
  box-shadow: 0 0 0 1px #0038b8;
}

/* what's new modal */
/* ===================== What's New Modal ===================== */

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  width: 90%;
  max-width: 600px;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-content {
  background: #fff;
  border-radius: 6px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.25em;
  border-bottom: 1px solid #e5e5e5;
}

.modal-title {
  margin: 0;
  font-size: 1.3em;
}

.modal-body {
  padding: 1.25em;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75em;
  padding: 1em 1.25em;
  border-top: 1px solid #e5e5e5;
}

.modal-footer .btn {
  padding: 0.5em 1.1em;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  background: #2563eb;
  color: #fff;
}



.modal-footer .btn-link {
  background: none;
  color: #2563eb;
  border: none;
}

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

.text-muted {
  color: #888;
}

/* individual whats-new entries inside the modal body */
.whats-new-entry {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}

.whats-new-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mt-2 {
  margin-top: 0.5em;
}

.badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-secondary {
  background: #2d2d2d;
  color: #f0f0f0;
}

.mr-1 {
  margin-right: 0.4em;
}


/* Remove focus outline on Plotly modebar buttons */
.modebar-btn,
.modebar-btn:focus,
.modebar-btn:active,
.js-plotly-plot .modebar-btn {
  outline: none !important;
  box-shadow: none !important;
}