.sidebar {
    width: 100%;
    max-width: 300px;
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
    transition: transform 1s ease;
    transform: translateX(0); /* Visas som standard */
    margin-top: 110px;
}


.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Gör header till en flex-container med en fast höjd (bannerhöjd) */
#banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 300px;
    height: 100px;
    margin-right: auto;
    background: none;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}
  
/* Behållaren för logotypen – ligger längst till vänster */
.header-logo {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

  
  /* Logotypen själv */
  .logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto;
  }
  
  /* Container för titeln och undertiteln – tar upp resterande utrymme */
  .header-text {
    flex: 1;                   /* Tar upp resterande horisontellt utrymme */
    padding-left: 20px;        /* Lite marginal från logotypen, justera efter behov */
  }
  
  /* Existerande stilar för titel och undertitel */
  .title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1f1d1d;
  }
  
  .sub-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
  }

.filter-section {
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #02773a;
    margin: 6px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-section {
    padding: 1px 15px 15px 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #02773a;
    margin-bottom: 6px;
    margin-top: 6px;
}

/* Stil för stycken i info-sektion */
.info-section p {
    margin: auto;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

#volume-value {
    font-weight: bold;
}

 #market-filter .checkbox-list ol {
     list-style: none;
     list-style-type: none;
     width: 90%;
     margin: 0 auto;
     padding-left: 0;
 }
  
#market-filter .checkbox-list li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#market-filter .checkbox-list li label {
    margin-left: 4px;
}

/* Create a custom checkbox */
.market-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #02773a;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 8px;
}
.market-checkbox:checked {
    background-color: #02773a;
}
.market-checkbox:checked::after {
    content: '✔';
    color: #fff;
    position: absolute;
    top: 1px;
    left: 4px;
    font-size: 12px;
}

.reset-button {
    background-color: white;
    color: #02773a;
    padding: 10px;
    margin-top: 10px;
    border: 3px solid currentColor;  /* ← här! */
    border-radius: 4px;               /* valfritt, rundar hörnen */
    cursor: pointer;
    outline: none;
    width: 100%;
    font-weight: bold;
}

.reset-button:hover {
    background-color: #02773a;
    color: white;
}

#banner-container .banner-btn {
    width: 100%;
    display: flex;
    gap: 10px;           /* mellanrum mellan knapparna */
    margin-top: 10px;
  }
  
  #banner-container .banner-btn button {
    flex: 1;             /* båda knapparna fyller lika mycket */
    padding: 8px 0;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #02773a;
    font-weight: bold;
    border: 2px solid currentColor;
    cursor: pointer;
    transition: background-color .3s, color .3s;
  }
  
  #banner-container .banner-btn button:hover {
    background-color: #02773a;
    color: #ffffff;
  }


/* Unified slider styling */
#date-slider,
#volume-slider {
    width: 90% !important;
    height: 12px;
    margin: 0.5em auto !important;
    display: block !important;
}

/* Slider track and thumb styling */
input[type="range"],
#date-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}

/* Volume slider (native) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #02773a;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-top: -4px;
    transition: background 0.2s;
}
input[type="range"]:hover::-webkit-slider-thumb {
    background: #065f30;
}

/* Date slider (noUiSlider) */
#date-slider .noUi-base {
    background: #ddd;
    border-radius: 4px;
    height: 8px;
    margin: 1px 0;
}
#date-slider .noUi-connect {
    background: #02773a;
}
#date-slider .noUi-handle {
    width: 16px;
    height: 16px;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #02773a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background 0.2s;
}
#date-slider .noUi-handle:hover {
    background: #065f30;
}

/* Remove any residual pips/markers on the noUi date slider */
#date-slider .noUi-pips,
#date-slider .noUi-marker,
#date-slider .noUi-value {
    display: none !important;
}

/* Ensure the slider track is a solid color without stripes */
#date-slider .noUi-base {
    background: #ddd !important;
    background-image: none !important;
}

/* Placera variant-toggle-knappar under logotypen */
#banner-container .variant-toggle-btns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
