#mixer {
    display: flex;
    justify-content: center;
}

/* .mixer_sonificator-container {
    padding: 10px;
} */

.mixer-hyperContainer{
    display: flex;
    flex-direction: row;
}

/* Adjust the slider container layout */
.mixer-container {
    display: flex;
    flex-direction: row; /* Change from column to row for vertical sliders */
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: auto;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.mixer-subcontainer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

/* Each Audio Slider Wrapper */
.mixer-item {
    display: flex;
    flex-direction: column; /* Vertical alignment for label and slider */
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    /* margin: 30px; */
    margin-left: 10px; /* //! Added this */
    margin-right: 10px; /* //! Added this */
    width: fit-content;
    text-align: center;
}

/* Label Styling */
.mixer-item label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px; /* Add some spacing above the slider */
}

/* Vertical Slider Styling */
.mixer-item input[type="range"] {
    -webkit-appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    vertical-align: middle;
    appearance: none;
    height: 150px;
    width: 8px; /* Narrower width for a vertical slider */
    /* height: 150px; Adjust height for vertical orientation */
    background: linear-gradient(to top, #68a5a6, #7dd2d4); /* Gradient in vertical direction */
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

.mixer-item input[type=range][orient=vertical] {
    writing-mode: vertical-lr;
    direction: rtl;
    appearance: slider-vertical;
    width: 8px;
    vertical-align: bottom;
}

/* Customize Slider Thumb for Vertical Sliders */
.mixer-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #45797a;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.mixer-item input[type="range"]::-webkit-slider-thumb:hover {
    background: #45797a;
}

.mixer-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #45797a;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.mixer-item input[type="range"]::-moz-range-thumb:hover {
    background: #45797a;
}

/* Color picker button */
.color-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-button {
  width: 20px;
  height: 20px;
  border: solid 1px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  padding: 0;
  /* transition: background 0.1s; */
}

.popup {
  display: none;
  position: absolute;
  padding: 10px;           /* keeps inner space for the popup */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  z-index: 9999;
  box-sizing: border-box;
  text-align: center;       /* horizontal center the slider */
}

.popup input[type="range"] {
    writing-mode: vertical-lr;
    appearance: slider-vertical;
  width: 15px;
  height: 175px;             /* track height */
  box-sizing: content-box;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 6px;
  background: linear-gradient(to bottom, red, yellow, lime, cyan, blue, magenta, red);
  margin: 0 auto;           /* horizontal center */
  display: block;
}

.popup input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 2px solid #000;
  background: currentColor;
  cursor: pointer;
  box-sizing: border-box;
}

.popup input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid #000;
  background: currentColor;
  cursor: pointer;
}