/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    /* Base font size */
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    height: 100vh;  /*636ch*/
    /* Full viewport height */
    /* overflow: hidden; /*636ch this had an effect*/
    /* Prevent body scrolling, handle scrolling within containers */

}

/* Header and Navbar */


.site-brand {
    /* Optional: Add flex/grid properties here if needed for alignment within the nav */
    /* For example, if the nav is a flex container */
    /* display: flex; */
    /* flex-direction: column; */
    justify-content: center;
    align-items: flex-start;
    /* Or center, depending on desired alignment */
    font-size: 1.8em;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
 }
 
 
 .site-brand h1 {
    /* Your existing h1 styles... */
    font-family: 'Permanent Marker', sans-serif;
    font-size: 1em;
    color: var(--accent-color);
    margin-bottom: 0;
    /* Remove default bottom margin if it creates too much space */
 }
 
 /* Target the link specifically within the h2 in the site-brand div */
 .site-brand h1 a {
    text-decoration: none;
    /* Removes the underline */
    color: inherit;
    /* Makes the link inherit the color of its parent (the h2) */
 }
 
 /* Optional: Ensure no change on hover, active, or visited states */
 .site-brand h1 a:hover,
 .site-brand h1 a:active,
 .site-brand h1 a:visited {
    text-decoration: none;
    /* Keep underline off */
    color: inherit;
    /* Keep color inherited */
 }
 
 .site-brand .tagline {
    display: block;
    /* Makes the span behave like a block element, putting it on a new line */
    font-size: 0.72em;
    /* Adjust this value (e.g., 0.7em, 14px) to make the text smaller */
    margin-top: 0;
    /* Adjust top margin if needed */
    /* Optional: Change color */
    color: var(--secondary-color);
 }
 
 
 
 .site-header {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5em;
 }
 
 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px 0 20px;
    min-height: 50px;
    position: relative;
    /* Needed for submenu positioning on desktop */
 }
 
 /* Logo */
 .navbar-brand {
    display: flex;
    align-items: center;
 }
 
 .navbar-logo {
    width: 180px;
    height: auto;
    display: block;
 }
 
 /* Navigation Menu - Desktop */
 .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
 }
 
 .nav-menu li {
    padding-right:60px;
    margin-right: 10px;
    position: relative;
  /* For submenu positioning */
 }
 
 .nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.2s ease;
 }
 
 .nav-menu a:hover,
 .nav-menu a:focus {
    /* Added focus for accessibility */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
 }
 
 /* Submenu - Desktop */
 .submenu {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    list-style: none;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 4px 4px;
    z-index: 1110;
 }
 
 .submenu li {
    margin-left: 0;
 }
 
 .submenu a {
    padding: 8px 15px;
    white-space: nowrap;
 }
 
 /* Show submenu on hover/focus */
 .dropdown:hover .submenu,
 .dropdown:focus-within .submenu {
    /* Focus-within is great for keyboard nav */
    display: block;
 }
 
 
 /* Hamburger Button */
 .nav-toggle-button {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    /* Position it similar to the label before */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    /* Ensure it's above overlay menu if one was used */
 }
 
 .nav-toggle-button .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
 }
 
 /* Hamburger Animation (X) - controlled by JS adding .is-active */
 .nav-toggle-button.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
 }
 
 .nav-toggle-button.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
 }
 
 .nav-toggle-button.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
 }
 
 
 

#audio-mixer-app {
    display: flex;
    /* Use Flex for sidebar + main content */
    height: 100%;
    background-color: var(--bg-color);
}

/* --- Left Sidebar (Song List) --- */

#song-list-container {
    width: 25%;
    /* Fixed 25% width on large screens */
    flex-shrink: 0;
    padding: 15px;
    border-right: 2px solid var(--accent-color);
    background-color: var(--bg-color);
    overflow-y: auto;
    /* Allow song list scrolling */
    height: 100%;
    /* Fill height */
}

/* --- Cassette Display Area --- */
#cassette-display {
    width: 100%;
    position: relative; /* For absolute positioning of title */
    margin-bottom: 25px; /* Space below cassette */
    overflow: hidden; /* Needed for small screen truncation */
    background-color: var(--bg-color); /* Fallback background */
}

#cassette-image,
#cassette-video {
    display: block;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure it covers the area */
}

#cassette-title {
    position: absolute;
    top: 5%; /* 20% from the top of the cassette-display container */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Ensure it's above the image/video */
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 20px 10px;
    background-color: rgba(0 ,0,0, 0.5); /* Slight background for readability */
    border-radius: 4px;
    font-size: 1.1em;
    text-align: center;
    width: 90%; /* Prevent text overflowing excessively */
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



#song-list-container h2 {
    margin-bottom: 1px;
    font-size: 1rem;
    font-family: Permanent Marker; 
    color: var(--label-color);
    text-align: center;
}

#song-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Vertical scroll on large screens */
    flex-grow: 1; /* Takes remaining space */
    max-height: calc(100% - 100px); /* Example max height, adjust as needed */
}

#song-list li {
    padding: 4px 10px;
    border: 2px solid var(--label-color); 
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1rem;
    white-space: nowrap; /* these last 3 lines came from graphic refactoring */
    overflow: hidden;
    text-overflow: ellipsis;
}

#song-list li:hover {
    background-color: var(--secondary-color);
}

#song-list li.active {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: bold;
}

#song-list li.loading {
    cursor: default;
    color: var(--accent-color);
    font-style: italic;
}
/* Came from graphic refactoring
 #song-list li:last-child {  
    border-bottom: none;
} */


/* --- Right Main Content Area --- */
#main-content-area {
    flex-grow: 1;
    /* Takes remaining 75% */
    display: flex;
    flex-direction: column;
    /* Stack player, mixer/info area */
     overflow: hidden;   /* 636ch*/
    /* Prevent overall scrolling */
    height: 100%;   /*636ch*/
}

/* --- Player Container (Top Row) --- */
#player-container {
    padding: 10px 15px;
    /* Adjusted padding */
    border-bottom: 2px solid var(--accent-color);
    background-color: var(--bg-color);
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Wrapper for Title and Master Volume */
#title-volume-wrapper {
    display: flex;
    justify-content: space-between;
    /* Title left, Volume right */
    align-items: center;
    margin-bottom: 2px;
    /* Space below title/volume */
    gap: 15px;
    /* Space between title and volume if they get close */
}

#song-title {
    font-family: permanent marker;
    margin: 5px 0 0 0;
    /* Remove default bottom margin */
    font-size: 2.2em;
    min-height: 1.4rem;
    flex-grow: 1;
    /* Allow title to take space */
    text-align: left;
    /* Justify left */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--label-color);
  
}

/* Master Volume Control Styling */
#master-volume-control {
    margin-top: 15px;    
    display: flex;
    align-items: right;
    gap:50px;
    /* flex-shrink: 0; */
    /* Don't let it shrink */
}


#master-volume-control label {
    font-size: 1rem;
    /* Adjust icon/label size */
    cursor: auto;
  }

#master-volume-slider {
    width: 180px;
    /* Adjust width as needed */
    cursor: pointer;
    accent-color: var(--secondary-color);
    /* Or your theme color */
    align-items: right;
    vertical-align: middle;
    /* Match vertical alignment if needed */
}

#player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center buttons below title/volume */
    flex-wrap: wrap;
    gap: 10px;
}

#player-controls button {
    background-color: var(--secondary-color);
    color: var(--label-color);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

#player-controls button:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.3;
}

#player-controls button:not(:disabled):hover {
    background-color: var(--accent-color);
}

#play-pause-button.playing:not(:disabled) {
    background-color: var(--solo-color);
}

#play-pause-button.playing:not(:disabled):hover {
    background-color: #218838;
}

#time-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    min-width: 180px;
}

#current-time,
#total-duration {
    font-size: 0.85rem;
    color: var(--label-color);
    min-width: 35px;
    text-align: center;
}

#progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--label-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    position: relative;
}

#progress-handle {
    width: 10px;
    height: 28px;
    background-color: var(--accent-color);
    border-radius: 30%;
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#progress-bar-container:hover #progress-handle {
    opacity: 1;
}

#loading-indicator {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    min-height: 1.2em;
    /* Prevent layout jump when text appears */
}

#loading-indicator .progress-text {
    display: block;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* --- Mixer & Info Area (Below Player) --- */
#mixer-and-info-area {
    flex-grow: 1;
    /* Take remaining vertical space */
    display: flex;
    /* Use flex for horizontal split */
    overflow: hidden;
    /* Clip content */
}



/* --- Mixer Tracks Container (Left 2/3) --- */
#mixer-tracks-container {
    width: 58%;
    /* Takes 2/3 of the horizontal space */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow scrolling ONLY for tracks */
    padding: 15px;
    border-right: 2px solid var(--accent-color);
    background-color: var(--modal-color);
}

#mixer-tracks {
    width: 100%;
}

/* --- Individual Track Row Styling --- */
.track-control {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-bottom: 2px solid var(--secondary-color);
    gap: 10px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    /* Added background transition */
}

/*.track-control:last-child {
     border-bottom: none;  /*set to none if last border not needed } */


.track-control.disabled {
    opacity: 0.5;
    background-color: #f8f8f8;
    /* Subtle disabled background */
    pointer-events: none;
}

.track-label {
    font-family: Permanent Marker;
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: help;
    /* Indicate tooltip */
    position: relative;
    /* Needed for tooltip */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 5px;
    /* Ensure space before buttons */
}

/* Tooltip for Track Notes */
.track-label::after {
    content: attr(data-tooltip);
    /* Get text from data-tooltip attribute */
    position: absolute;
    left: 0;
    top: 110%;
    /* Position slightly below the label */
    transform: translateX(0);
    /* Adjust as needed */
    background-color: rgba(0, 0, 0, 0.85);
    /* Slightly darker tooltip */
    color: white;
    padding: 6px 10px;
    /* Slightly more padding */
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
    /* Reset font weight from bold label */
    line-height: 1.3;
    /* Adjust line height */
    white-space: normal;
    /* Allow wrapping */
    width: max-content;
    /* Adjust width to content */
    max-width: 280px;
    /* Limit width */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10;
    pointer-events: none;
    /* VERY IMPORTANT: Prevent tooltip from blocking hover */
}

/* Show tooltip on hover */
.track-label:hover::after {
    opacity: 1;
    visibility: visible;
}


.track-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.mute-button,
.dim-button,
.solo-button {
    font-family: "lexend";
    font-weight: bold;
    font-size: 0.7rem;
    /* border: 2px solid var(--secondary-color); */
    margin: 0, 50px;
    border-radius: 4px;
    /* Square buttons */
    width: 45px;
    height: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

.mute-button {
    border: 2px solid var(--mute-color);


}

.dim-button {
    border: 2px solid var(--dim-color);


}

.solo-button {
    border: 2px solid var(--solo-color);

}

.mute-button:disabled,
.dim-button:disabled,
.solo-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.mute-button.active,
.dim-button.active,
.solo-button.active {
    color: var(--bg-color);
    font-weight: bold;
}

.mute-button.active {
    background-color: var(--mute-color);
}

.dim-button.active {
    background-color: var(--dim-color);
}

/* Yellow for Dim */
.solo-button.active {
    background-color: var(--solo-color);
}

.mute-button:hover:not(:disabled),
.dim-button:hover:not(:disabled),
.solo-button:hover:not(:disabled) {
    border: 4px solid;
    /* border-color: #aaa;
    background-color: #e5e5e5; */
}

.mute-button.active:hover:not(:disabled) {
    background-color: var(--mute-color);
}

.dim-button.active:hover:not(:disabled) {
    background-color: var(--dim-color);
}

.solo-button.active:hover:not(:disabled) {
    background-color: var(--solo-color);
}

/* --- Mixer Sidebar (Below Mixer Track Container) --- */
#mixer-sidebar {
    width: 100%;
    /* Takes 1/3 of the horizontal space */
    flex-shrink: 0;
    padding: 10px 4px;
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;
    background-color: var(--modal-color);
    height: auto;
    /* Allow internal scrolling if needed */
    overflow-y: auto;
}

#reset-mixer-button {
    padding: 0px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

#reset-mixer-button:hover {
    background-color: #5a6268;
}

#master-dim-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#master-dim-container label {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

#master-dim-value {
    font-weight: bold;
}

#master-dim-slider {
    width: 100%;
    cursor: pointer;
    accent-color: #ffc107;
    /* Match Dim button color */
}

/* --- Song Info Panel (Below Mixer/Sidebar) --- */
#song-info-panel {
    padding: 15px 30px;
    /* border-top: 1px solid #e0e0e0; */
    background-color: var(--bg-color);
    overflow-y: auto;
    /* Allow scrolling */
    /* Takes remaining vertical space in #main-content-area on large screens */
    flex-grow: 1;
    /* Initially hidden/placed by the parent flexbox */
}

#song-info-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--label-color);
}

#song-info-panel li {
    list-style-type: none;
}

#song-info-content {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Add space below paragraphs/breaks inside song info */
#song-info-content p,
#song-info-content br {
    margin-bottom: 0.5em;
}

/* --- Responsive Design --- */

@media (max-width: 576px) {


    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 30px 0 20px;
        min-height: 40px;
        position: relative;
        /* Needed for submenu positioning on desktop */
     }

     .site-header {
              font-size: 1.25em;
     }

     .nav-menu li {
        padding-right:10px;
        margin-right: 10px;
        position: relative;
      /* For submenu positioning */
     }


    /* Smaller screens / tablets */
    #audio-mixer-app {
        flex-direction: column;
        /* Stack sidebar and main content */
        overflow: hidden;
        max-width: 100%;
        border-radius: 0;
    }

    .site-brand {
        /* Optional: Add flex/grid properties here if needed for alignment within the nav */
        /* For example, if the nav is a flex container */
        /* display: flex; */
        /* flex-direction: column; */
        justify-content: center;
        align-items: flex-start;
        /* Or center, depending on desired alignment */
        font-size: 0.85em;
        line-height: 1;
        background-color: var(--bg-color);
     }
     
    

    #song-list-container {
        width: 100%;
        height: 25vh;
        /* Approx 15% */
        /* max-height: 150px; */
        border-right: none;
        /* border-bottom: 1px solid #e0e0e0; */
        flex-shrink: 0;
        order: -1; /* Move this section to the top */
        display: flex;
        flex-direction: row; /* column to Stack cassette and list vertically */
    }

    #song-list-container h2 {
        margin-bottom: 1px;
        font-size: 0.9rem;
        font-family: Permanent Marker; 
        color: var(--label-color);
        text-align: center;
    }

    #song-list li {
        padding: 0px;
        margin: 0px;
        border: 2px solid var(--label-color); 
        margin-bottom: 10px;
        cursor: pointer;
        border-radius: 40px;
        transition: background-color 0.2s ease, color 0.2s ease;
        font-size: 0.75rem;
        white-space: nowrap; /* these last 3 lines came from graphic refactoring */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #cassette-display {
        width: 65%; 
        /* Takes left 50% of the song-list-container */
        margin-bottom: 0; /* Smaller margin */
        position: relative; /* Ensure positioning context */
        overflow: hidden; /* Crucial for truncation effect */
    }

  /* Truncation Styling for Cassette Image/Video on Small Screens */
  #cassette-image,
  #cassette-video {
      position: absolute;
      width: 100%;
      /*
       * Calculate height to show only middle 50% (hiding top 10%, bottom 40%):
       * Visible height = 100% - 10% - 40% = 50% = 0.5
       * Required element height = 100% / 0.5 = 200% (of the container height)
       */
      height: 96%;
      /*
       * Calculate top offset to hide the top 10%:
       * Offset = -10% / 0.5 = -20% (of the container height)
       */
      top: 0%;
      left: 0%;
      object-fit: cover; /* Ensure it covers the scaled area */
  }

  #cassette-title {
      top: 10%; /* Adjust vertical position slightly for truncated view */
      font-size: 0.7em; /* Slightly smaller font */
      padding: 3px 2px;
      max-width: 100%; /* Adjust width */
  }

  #song-list {
      width: 35%; 
      /* Remaining 50% of the song-list-container */
      /* overflow-y: auto;  */
      /* hidden to Hide vertical scroll */
      /* overflow-x: hidden;  */
      /* auto to Enable horizontal scroll */
      /* white-space: nowrap;  */
      /* Keep items in a single line */
      /* display: flex;  */
      /* Use flexbox for alignment */
      /* align-items: center;  */
      /* Center items vertically */
      max-height: 100%;
      padding: 0px 0 0 20px;
      position: relative; /* For scroll indicators */
      /* scrollbar-width: thin;  */
      /* Optional: thinner scrollbar */
      scrollbar-color: var(--accent-color) var(--mute-color); /* Optional: scrollbar colors */
  }




  #song-list li {
      /* display: inline-block;  */
      /* Display items horizontally */
      border: 1px solid var(--accent-color); /* Remove bottom border */
      margin-right: 2px; /* Remove right margin */
      padding: 5px 8px; /* Adjust padding */
      /* vertical-align: middle;  */
      /* Align items nicely */
      white-space: normal; /* Allow text wrapping within item if needed */
      min-width: 100px; /* Minimum width for each item */
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  
  #song-list li:last-child {
      border-right: none;
  }

     /* Add simple text-based scroll indicators */
  /* #song-list::before,
  #song-list::after {
      content: '◀️' / '▶️'; 
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.6);
      color: white;
      padding: 5px 2px;
      border-radius: 3px;
      z-index: 5;
      font-size: 0.8em;
      opacity: 0.7;
      pointer-events: none; 
  }

  #song-list::before {
      content: '◀️';
      left: 2px;
  }

  #song-list::after {
      content: '▶️';
      right: 2px;
  } */

    #main-content-area {
        height: 80vh;
        /* Remaining height */
        overflow-y: auto;
        /* Allow main area to scroll */
    }

    #player-container {
        padding: 10px;
    }

    #song-title {
        display: none;
    }

    #mixer-and-info-area {
        flex-direction: column;
        /* Stack mixer/sidebar and info panel */
        height: auto;
        /* Let content determine height */
        overflow: visible;
    }

    #mixer-tracks-container {
        width: 100%;
        border-right: none;
        /* border-bottom: 1px solid #e0e0e0; */
        max-height: 45vh;
        /* Approx 50-60% aim */
        padding: 10px;
        overflow-y: auto;
        scrollbar-color: var(--accent-color);
        flex-shrink: 0;
        /* Prevent shrinking when info panel grows */
    }

    #mixer-sidebar {
        width: 100%;
        flex-direction: row;
        /* Reset/Dim side-by-side */
        align-items: center;
        justify-content: space-around;
        padding: 10px;
        border-bottom: 2px solid var(--accent-color);
        height: auto;
        overflow: visible;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    #master-dim-container {
        flex-grow: 1;
        margin-left: 15px;
        align-items: center;
    }

    #master-dim-slider {
        max-width: 200px;
    }


    #song-info-panel {
        width: 100%;
        padding: 10px;
        height: fit-content;
        flex-grow:1;
        /* overflow: visible; */
        /* Takes remaining space */
    }

    /* Tooltips are generally okay on tablets but might be hidden on phones */
    .track-label::after {
        display: none;
        /* Option: hide tooltips if needed */
    }

}



/* Class for temporary messages */
.temp-error-message {
    text-align: center;
    font-size: 0.9em;
    margin: 8px 0;
    /* Adjust margin */
    padding: 5px 10px;
    /* Adjust padding */
    border-radius: 4px;
    border: 1px solid transparent;
    /* Base border */
}

.temp-error-message[data-type="orange"] {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.temp-error-message[data-type="red"] {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.temp-error-message[data-type="info"] {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Added info style */