/* =============================
   CONSOLE STYLE
============================= */
.resize-handle {
  background: var(--handle-bg);
  color: var(--handle-color);
  padding: 0.2rem;
  cursor: ns-resize;
  text-align: left;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

/* Textarea */
.text-container textarea,
.bottom-pane textarea {
  flex: 1;
  resize: none;
  border: none;
  padding: 0.5rem;
  outline: none;
  width: 100%;
  background-color: var(--textarea-bg);
  color: var(--textarea-color);
  font-family: inherit;
  font-size: inherit;
  transition: background 0.2s, color 0.2s;
}

.text-container textarea {
  flex: 1;
  resize: none;
  border: none;
  padding: 0.5rem;
  outline: none;
  width: 100%;
  
}

.bottom-pane textarea {
  background-color: var(--Kindowlichtgrijs);
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  flex: 1;
  width: 100%;
  border: none;
  padding: 0.5rem;
  resize: none;
  outline: none;
}

#console-custom-content {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--Kindowlichtgrijs);
}

body.console-custom-active #console-custom-content {
  display: block;
}

body.console-custom-active #console-textarea {
  display: none;
}



/* =============================
   BUTTON BAR
============================= */
.button-bar {
  display: flex;
  justify-content: space-between; /* buttons apart */
  align-items: center;
  padding: 5px;
  background: var(--background);
  transition: background 0.2s;
}

.button-bar button {
  padding: 5px 10px;
}


/* --- speciaal voor de start/end regel --- */
.range-group {
  display: flex;
  justify-content: space-between;
  gap: 16px; /* ruimte tussen Start en End kolommen */
}

.range-field {
  flex: 1; /* beide kolommen even breed */
  display: flex;
  flex-direction: column;
}

.range-field label {
  margin-bottom: 4px;
}

.button-bar .button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.button-bar .button:hover:not(:disabled) {
  opacity: 1;
}