body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
  padding: 20px;
  background: #f9f9f9;
}

h2 {
  text-align: center;
}

label,
input,
button {
  font-size: 1.1rem;
  margin-top: 10px;
  display: block;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox input {
  margin-right: 10px;
}

button {
  background: #007aff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  cursor: pointer;
}

button:hover {
  background: #005ecb;
}

/* Results Output */
.result {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  white-space: pre-line;
  font-family: monospace;
}

.hidden {
  display: none;
}

/* Tabs */
.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.tab-buttons button {
  flex: 1;
  max-width: 150px;
  margin: 0 5px;
  padding: 10px;
  background: #eee;
  border: 1px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
}

.tab-buttons button.active {
  background: #007aff;
  color: white;
  border-color: #005ecb;
}

.tab-content {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 0 6px 6px 6px;
  background: white;
}

/* Download Button Section */
.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.download-buttons button {
  flex: 1;
}

#visual-container {
  margin-bottom: 1em;
}


.visual-bar {
  position: relative;
  background: #f1f1f1;
  border: 1px solid #ccc;
  overflow-x: hidden;
  border-radius: 6px;
}

.segment-container {
  margin-bottom: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.segment-label {
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 4px;
}

.visual-track {
  position: relative;
  height: 40px;
  background-color: #eee;
  border: 1px solid #aaa;
  margin: 1em auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Markpoints and Labels */
.markpoint {
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: red;
  bottom: 0;
  transform: translateX(-50%);
}

.markpoint-label {
  position: absolute;
  top: 45px;
  font-size: 12px;
  color: #222;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.markpoint-label.align-left {
  transform: translateX(0);
  text-align: left;
}

.markpoint-label.align-right {
  transform: translateX(-100%);
  text-align: right;
}

/* Splice Segments */
.splice-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 128, 255, 0.3);
  border-left: 1px solid #0080ff;
  border-right: 1px solid #0080ff;
}

.bay-input-field {
  display: flex;
flex-direction: column;
  min-width: 120px;
}

#bayInputsT14000,
#bayInputsT24650 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.bay-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Results Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  width: 80vw;
  max-height: 80vh;
  overflow-y: scroll;
  position: relative;
}

.modal-close {
  /* position: absolute; */
  bottom: 10px;
  right: 10px;
  left: 10px;
}

.modal-hidden {
  display: none;
}
