/* .ui-bar{
  display: flex;
} */

.vertical-alignment {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 1.5vh;
}

.left-widget {
  display: flex;
  flex-direction: row;
  width: 24vh; /* 4 * (1.5 + 3 + 1.5) */
}

.right-widget {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 24vh; /* Must match left-widget */
}

.timeline-slider {
  position: relative;
  height: 2vh;
  margin: 1.5vh;
  border-color: transparent;
}

.noUi-origin {
  height: 100% !important;
}

.noUi-connect {
  background: var(--secondary-color);
}

/* Style for the slider handles */
.noUi-handle {
  aspect-ratio: 1 / 1 !important;
  width: unset !important;
  height: 100% !important;
  right: -1vh !important; /*  must be (width / 2) * -1 */
  top: 0 !important;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: unset;
  border-color: transparent;
}

.noUi-handle:hover {
  background: var(--darken-accent-color);
}

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

iconify-icon {
  display: inline-block; /* Ensure the style applies */
  width: 3vh;
  height: 3vh;
  font-size: 3vh; /* Make the icon itself scale with the container */
  line-height: 3vh;  /* Important for vertical centering */
  color: var(--primary-color);
  padding-left: 1.5vh;
  padding-right: 1.5vh;
  cursor: pointer; /* Indicate it's clickable */
}

iconify-icon:hover {
  color: var(--darken-primary-color);
}

.tempo-display {
  display: inline-block;
  width: 3vh;
  height: 3vh;
  font-size: 2vh; /* Make the text itself scale with the container */
  margin: 0;
  color: var(--primary-color);
  padding-left: 0;
  padding-right: 1.5vh;
  text-align: center;
  bottom: -0.5em;
}

/* Basic styling for the tempo modal */
.tempo-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5em; /* Slightly increased padding for better spacing */
  background-color: var(--darken-primary-color);
  border-radius: 0.5em;
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  z-index: 1010; /* Ensure it's above the modal overlay if you have one */
}

/* Style the form within the modal */
.tempo-modal form {
  display: flex;
  flex-direction: column; /* Arrange labels and inputs vertically */
  gap: 0.8em; /* Spacing between form elements */
}

/* Style the label */
.tempo-modal label {
  font-weight: bold;
  color: var(--background-color);
}

/* Style the text input */
.tempo-modal input[type="text"] {
  padding: 0.6em;
  border: 1px solid var(--primary-color);
  border-radius: 0.3em;
  font-size: 1em;
}

.tempo-modal input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-color); /* Highlight on focus */
  box-shadow: 0 0 0.2em var(--accent-color);
}

/* Style the submit button */
.tempo-modal input[type="submit"] {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 0.3em;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tempo-modal input[type="submit"]:hover {
  background-color: var(--darken-accent-color);
}

.tempo-modal input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0.2em var(--accent-color);
}

/* Optional: Style for the line break (you might want to handle spacing with CSS instead) */
.tempo-modal br {
  display: none; /* Hide the <br> if using flexbox for layout */
}

.filename-display {
  margin: 0;
  color: var(--primary-color);
  text-align: center;
  cursor: pointer; /* Indicate it's clickable */
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  bottom: -0.5em;
  position: relative;
}

.filename-display:hover {
  color: var(--darken-primary-color);
}