

/* Custom scrollbar for #results */
#results {
  scrollbar-width: thin;
  scrollbar-color: dodgerblue #fff;
  height: 100%;
  max-height: none;
  overflow-y: auto;
}
#results::-webkit-scrollbar {
  width: 20px;
  background: transparent;
}
#results::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 10px;
}
#results::-webkit-scrollbar-thumb {
  background: dodgerblue;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  border: 2px solid #f8f8f8;
  box-shadow: 0 0 8px rgba(30,144,255,0.18);
}
#results::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}
/* Hum voice input container en knoppenrij */
#hum-voice-input-container.hum-voice-input-container {
  display: none;
  margin-top: 6px;
}
.hum-voice-input-btn-row {
  display: flex;
  gap: 8px;
}
/* Cumulatieven blokken en labels */
.cumulatieven-label-bold {
  font-weight: bold;
}
.cumulatieven-label-block {
  display: block;
  cursor: pointer;
}
/* Popup voor Bach-analyse-info */
#Bach-analyse-info.info-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: 32px;
  z-index: 1000;
  max-width: 400px;
}

.info-popup-close {
  margin-top: 20px;
}
.hum-submenu {
    margin-left: 24px;
    padding-left: 8px;
    border-left: 2px solid #eee;
    background: #fafbfc;
  }
  .hum-subitem {
    margin: 0px 0;
    padding: 0px 0px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .hum-subitem:hover {
    background: #e6f0ff;
  }
/*analyse button dit werk of deel */

.hum-dropdown-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.hum-dropdown-btn:hover { 
  filter: brightness(.95); 
}

/* Styling voor klikbare noten in Stemomvang resultaten */
.klikbare-toon {
  color: dodgerblue;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.klikbare-toon:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* --------------------
   ALGEMENE STIJLEN
   -------------------- */
:root {
  --blue: #1e90ff;
  --muted: #f0f4f8;
  --card-bg: #fff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Source Sans Pro', 'Raleway', Arial, sans-serif;
  margin: 0;
  background: white;
  color: #222;
  -webkit-font-smoothing:antialiased;
}

h1 { margin: 0 0 10px 0; }

/* --------------------
   HEADER
   -------------------- */
#header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg,#ffffff,#f0f4f8);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 20px;
}

#header h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: dodgerblue;
}

/* Controls row inside header */
#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Groene indicator voor actieve selecties */
.selecteer-submenu-toggle {
  position: relative;
}

.selection-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: super;
  font-size: 0.6em;
}

/* Dropdown */
#dropdown { position: relative; display: inline-block; }
#dropdown button { padding: 8px 12px; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
#dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  z-index: 80;
  min-width: 240px;
}
#dropdown:hover #dropdown-content { display: block; }
#dropdown-content label { display: block; margin: 6px 0; font-size: 0.95rem; }


/* basic controls look */
select, input[type=number], input[type=text] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
button.primary {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor:pointer;
}
button.primary:hover { filter:brightness(.95); }

/* progress */
#progress-container { width: 100%; height: 16px; background:#eee; border-radius: 10px; overflow:hidden; margin-top:6px; }
#progress-bar { height:100%; width:0%; background:var(--blue); transition: width .25s ease; }

/* --------------------
   LAYOUT: MAIN (2 kolommen)
   -------------------- */
#main {
  display: flex;
  gap: 12px;
  margin: 0 20px 40px 20px;
}

/* twee kolommen naast elkaar op brede schermen */
#left-column, #right-column {
  flex: 1 1 50%;
  padding: 10px;
  min-width: 0;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* accent voor linker (tijdelijk zichtbaar) */
#left-column { /* achtergrond kleur kun je aanpassen / verwijderen */
  background-color: #fff;
}

#left-column {
  height: 100vh;
  /* geen overflow-y, zodat alleen #results scrollt */
}




/* resultaten */
.result-box { margin: 8px 0; padding: 10px; border-left: 5px solid #333; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.result-box h3 a { color: var(--blue); text-decoration: none; }

/* HUMDRUM svg responsief */
#humdrum-wrapper svg { width: 100% !important; height: auto !important; }

/* --------------------
   RESPONSIVE: klein scherm
   → we willen: rechterkolom boven, linkerkolom onder
   -------------------- */
@media (max-width: 482px) {
  #main { flex-direction: column-reverse; } /* RECHTER boven, LINKER onder */
  #left-column, #right-column { flex: 1 1 100%; }
}

/* --------------------
   GEAVANCEERD ZOEKEN (rechterkolom paneel)
   -------------------- */
#advanced-search {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

#adv-search-container { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }

#adv-controls { display:flex; flex-direction:column; gap:8px; min-width:220px; }

.adv-field-row { display:flex; flex-direction:column; gap:6px; }

.adv-select, #adv-input { padding:8px; border-radius:6px; border:1px solid #ccc; width:100%; }

.adv-piano-box {
  width: 360px;
  height: 100px;
  background: #000;
  border-radius:6px;
  padding:5px 5px 25px 5px;
  position: relative;
  overflow: hidden;
}

/* little piano CSS (keystep calculations) */
.adv-keyboard {
  display:flex;
  height:100%;
  --num_white_keys:15;
  --w_key: calc(360px / var(--num_white_keys));
}
.adv-white-key { width: var(--w_key); height:100%; background:#f8f9fa; border:1px solid #333; border-right:none; }
.adv-white-key:last-child { border-right:1px solid #333; }
.adv-black-key { position:absolute; width:calc(var(--w_key)*0.65); height:45%; background:#000; border:1px solid #000; z-index:10; margin-left: calc(-0.5*var(--w_key)*0.65); }
.adv-scroll-arrow { position:absolute; top:50%; transform:translateY(-50%); width:20px; height:20px; background:#fff; border:1px solid #ccc; border-radius:4px; text-align:center; line-height:18px; font-size:14px; z-index:20; cursor:pointer; }
.adv-scroll-arrow.left { left:-28px; }
.adv-scroll-arrow.right { right:-28px; }

/* black key positions defined relative to var(--w_key) */
.c-sharp { left: calc(1.5 * var(--w_key)); }
.d-sharp { left: calc(2.5 * var(--w_key)); }
.f-sharp { left: calc(4.5 * var(--w_key)); }
.g-sharp { left: calc(5.5 * var(--w_key)); }
.a-sharp { left: calc(6.5 * var(--w_key)); }
.C-sharp { left: calc(8.5 * var(--w_key)); }
.D-sharp { left: calc(9.5 * var(--w_key)); }
.F-sharp { left: calc(11.5 * var(--w_key)); }
.G-sharp { left: calc(12.5 * var(--w_key)); }
.A-sharp { left: calc(13.5 * var(--w_key)); }
.CC-sharp { left: calc(15.5 * var(--w_key)); }

/* small utilities */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

  .hum-dropdown {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

.hum-dropdown-btn {
  padding: 6px 12px;
  cursor: pointer;
}

.hum-dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  min-width: 250px; /* verbreed voor langere label met pijltje */
  z-index: 50;
}

.hum-item,
.hum-subitem {
  padding: 6px 12px;
  cursor: pointer;
}

.hum-item:hover,
.hum-subitem:hover {
  background: #eee;
}

.hum-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
}


  #cumulatief-toon-btn, .adv-btn {
    display: block;
    width: auto;
    min-width: unset;
    padding: 4px 24px 4px 24px;
    margin: 4px 0 12px 0;
    background: dodgerblue;
    color: #fff;
    border: none;
    border-top: 1px solid #eee;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    font-size: 0.95em;
    transition: background 0.2s;
  }
  #cumulatief-toon-btn:hover, .adv-btn:hover {
    background: #0056b3;
  }

  /* RESPONSIEVE POPUP-BREEDTES */
@media (max-width: 901px) {
  #cumulatief-popup {
    width: 95vw !important;
    min-width: 0 !important;
  }
}
@media (min-width: 719px) {
  #cumulatief-popup {
    width: 901px !important;
  }
}

#cumulatief-popup-content {
  position: relative;
  overflow: hidden !important;
  height: 95vh;              /* voorkómt popup-scrollbar */
  box-sizing: border-box;
}

.timeline-table-wrapper {
  overflow:hidden;
  width: 100%;
  height: calc(95vh - 20px);
  margin: 0 10px 10px 10px;
  box-sizing: border-box;
}



/* Scrollbar zichtbaar in Chrome / Edge / Safari */
.timeline-table-wrapper::-webkit-scrollbar {
  width: 12px;     /* verticale balk */
  height: 12px;    /* horizontale balk */
}
.timeline-table-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.timeline-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(120,120,120,0.6);
  border-radius: 6px;
}
.timeline-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(80,80,80,0.8);
}

.timeline-table-wrapper table {
  border-collapse: collapse;
  width: max-content;      /* tabel wordt zo breed als nodig → horizontale scrollbar werkt */
  margin: 0;               /* veilige standaard, voorkomt extra scrollbars */
}



/* MOBIEL: verberg scrollbar visueel (maar scrollen blijft mogelijk via vegen) */
@supports (-webkit-overflow-scrolling: touch) {
  @media (max-width: 900px) {
    .timeline-table-wrapper {
      -ms-overflow-style: none; /* IE/Edge */
      scrollbar-width: none;    /* Firefox */
    }
}
}


/* Sticky header */
.timeline-table-wrapper th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f8f8;
  box-shadow: 0 2px 2px -2px rgba(0,0,0,0.15);
}

/* Celstijl */
.timeline-table-wrapper td,
.timeline-table-wrapper th {
  border: none;
  padding: 6px 8px;
  text-align: center;
  vertical-align: bottom;
  font-size: 15px;
}

/* Balkjes */
.timeline-table-wrapper .bar {
  display: inline-block;
  width: 18px;
  border-radius: 3px 3px 0 0;
  background: #bcd;
  margin: 0 2px;
  vertical-align: bottom;
}

/* Verticale labels */
.timeline-table-wrapper .timeline-label {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 13px;
  color: #333;
  padding: 0 2px;
  white-space: nowrap;
}

/* MOBIEL: iets kleinere tekst */
@media (max-width: 900px) {
  #cumulatief-popup-content { padding: 8px; }
  .timeline-table-wrapper table { font-size: 13px; }
}

/* Popup */

  .modal-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border: none;
    border-radius: 8px;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
  }
  
  .modal-header {
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
  }
  
  .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
  }
  
  .modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
  }
  
  .modal-close:hover {
    background: #e9ecef;
    color: #212529;
  }
  
  .modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
  }
  
  .modal-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-radius: 0 0 8px 8px;
  }
  
  .btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
  }
  
  .btn-primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
  }
  
  .btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
  }
  
  .btn-secondary {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
  }
  
  .btn-secondary:hover {
    background: #545b62;
    border-color: #4e555b;
  }
  
  .modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    animation: fadeIn 0.2s;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @media (max-width: 768px) {
    .modal-popup {
      width: 95vw !important;
      max-width: 95vw;
      min-width: 0;
    }
    
    .modal-body {
      padding: 16px;
    }
  }


    @media (max-width: 901px) {
      #cumulatief-popup { width: 95vw !important; min-width:0 !important; }
    }
    @media (min-width: 902px) {
      #cumulatief-popup { width: 901px !important; }
    }
    #cumulatief-popup-content {
      max-height: 80vh;
      width: 100%;
    }



    .timeline-table-wrapper table {
      border-collapse: collapse;
      width: max-content;
      min-width: 100%;
    }
    .timeline-table-wrapper th {
      position: sticky;
      top: 0;
      background: #f8f8f8;
      z-index: 2;
      box-shadow: 0 2px 2px -2px rgba(0,0,0,0.15);
    }
    .timeline-table-wrapper td, .timeline-table-wrapper th {

      padding: 6px 8px;
      text-align: center;
      vertical-align: bottom;
      font-size: 15px;
    }
    .timeline-table-wrapper .bar {
      display: inline-block;
      width: 18px;
      border-radius: 3px 3px 0 0;
      background: #bcd;
      margin: 0 2px;
      vertical-align: bottom;
    }
    .timeline-table-wrapper .timeline-label {
      writing-mode: vertical-lr;
      transform: rotate(180deg);
      font-size: 13px;
      color: #333;
      padding: 0 2px;
      min-width: 20px;
      max-width: 30px;
      white-space: nowrap;
    }
    @media (max-width: 900px) {
      .timeline-table-wrapper table {
        font-size: 13px;
      }
    }

    /* Dissonant-popup styling uit HTML verplaatst */
    .dissonant-popup {
      display: none;
      position: fixed;
      left: 50%;
      top: 20%;
      transform: translate(-50%, 0);
      background: #fff;
      color: #222;
      border: 2px solid #007bff;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      padding: 24px 32px;
      z-index: 99999;
      font-size: 1.15em;
      min-width: 220px;
      text-align: center;
    }
    .dissonant-popup-close {
      background: #007bff;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 8px 24px;
      font-size: 1em;
      cursor: pointer;
    }

    /* Bach-analyse info sup styling */
.bach-analyse-info {
  color: #007bff;
  cursor: help;
  font-weight: bold;
  margin-left: 4px;
}

/* Selecteer Dropdown */
.selecteer-dropdown {
  display: inline-block;
  position: relative;
}
.selecteer-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.selecteer-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 100;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
}

/* BWV blok en submenu */
.selecteer-bwv-block {
  position: relative;
  border-bottom: 1px solid #eee;
}
.selecteer-bwv-toggle {
  padding: 10px;
  cursor: pointer;
  user-select: none;
}
.selecteer-bwv-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  padding-bottom: 8px;
}
.selecteer-bwv-inner {
  padding: 6px 12px;
}
.selecteer-bwv-label {
  font-weight: bold;
}
.selecteer-bwv-input {
  width: 160px;
  margin-top: 6px;
}
.selecteer-bwv-clear {
  margin-top: 10px;
  width: 100%;
  padding: 6px 20px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Instrument dropdown submenu styling */
.selecteer-instr-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-instr-dropdown {
  padding: 6px 12px;
}

/* Selecteer blokken algemeen */
.selecteer-block {
  position: relative;
}
.selecteer-block-toggle {
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

/* Thon submenu */
.selecteer-thon-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-thon-dropdown {
  padding: 6px 12px;
}

/* Stemmen submenu */
.selecteer-stemmen-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-stemmen-dropdown {
  padding: 6px 12px;
}

/* Datum submenu */
.selecteer-datum-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-datum-dropdown {
  padding: 6px 12px;
}

/* BWV-genre submenu */
.selecteer-bwvgenre-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-bwvgenre-dropdown {
  padding: 6px 12px;
}

/* ivgenre submenu */
.selecteer-ivgenre-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-ivgenre-dropdown {
  padding: 6px 12px;
}

/* naam submenu */
.selecteer-naam-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-naam-dropdown {
  padding: 6px 12px;
}

/* maatsoort submenu */
.selecteer-maatsoort-submenu {
  display: none;
  margin-left: 16px;
  border-left: 1px dotted #aaa;
  padding-left: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.selecteer-maatsoort-dropdown {
  padding: 6px 12px;
}

/* cumulatieven dropdown */
.cumulatieven-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 100;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cumulatieven-label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  margin: 8px;
}
.cumulatieven-block {
  padding: 8px 12px;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  margin: 8px;
}
.cumulatieven-inner {
  margin-left: 12px;
}
.cumulatieven-btn-row {
  margin-left: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}
.cumulatief-toon-btn {
  width: auto;
  min-width: unset;
  padding: 4px 24px;
  font-size: 0.95em;
  text-align: center;
  border-radius: 6px;
}
.cumulatief-sluit-btn {
  width: auto;
  min-width: unset;
  padding: 4px 24px;
  font-size: 0.95em;
  text-align: center;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* extra styles toegevoegd */
.progress-bar {
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #007bff 60%, #6c757d 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.hum-flex-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.info-icon {
  color: #007bff;
  cursor: help;
  font-weight: bold;
  margin-left: 4px;
}

.hum-voice-go {
  display: block;
  margin-bottom: 2px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s;
  font-weight: normal;
}
/* Zorg dat hover hetzelfde is als andere menu-items */
.hum-voice-go:hover {
  background: #e6f0ff;
}
.hum-voice-input {
  width: 90%;
  padding: 6px;
  box-sizing: border-box;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 14px;
}
.hum-voice-apply {
  padding: 6px 12px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-left: 14px;
  margin-bottom:4px;
}
.hum-voice-remove {
  padding: 6px 12px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom:4px;
}
.modulatie-toggle {
  margin-left: 14px;
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  margin-top: 12px;
  padding:0px;
}
 .modulatie-toggle:hover {
    background: #e6f0ff;
   
  }
.modulatie-options {
  margin-left: 16px;
  display: none;
}
.modulatie-label {
  font-weight: 500;
  cursor: pointer;
}
.modulatie-label-desc {
  font-size: 10px;
  color: #666;
  margin-left: 22px;
}
.modulatie-apply-btn {
  margin-top: 6px;
}

.dissonant-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translate(-50%, 0);
  background: #fff;
  color: #222;
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 24px 32px;
  z-index: 99999;
  font-size: 1.15em;
  min-width: 220px;
  text-align: center;
}
.dissonant-popup-close {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 1em;
  cursor: pointer;
}
.selecteer-block-toggle {
  padding: 10px;
  cursor: pointer;
  user-select: none;
}
.hidden {
  display: none;
}
.inline-block-rel {
  display: inline-block;
  position: relative;
  margin-left: 12px;
}
.fw-bold {
  font-weight: bold;
}
.modulatie-block {
  margin-bottom: 8px;
}

.zoom-level {
  font-size: 0.9em;
  color: #666;
}

#cumulatief-resultaat {
    margin-top:8px;
}

#sort-select {
  width:250px;
}

.adv-piano-box {
  height: 100px;
  background: #000;
  border-radius: 6px;
  padding: 5px 5px 25px 5px;
  position: relative;
  overflow: hidden;
}

.adv-keyboard {
  display: flex;
  height: 100%;
  --num_white_keys: 15;
  --w_key: 24px;
}

.adv-piano-box {
  width: calc(var(--num_white_keys) * 24px);
}

.adv-white-key {
  width: var(--w_key);
  height: 100%;
  background: #f8f9fa;
  border: 1px solid #333;
  border-right: none;
}

.adv-white-key:last-child {
  border-right: 1px solid #333;
}

.adv-black-key {
  position: absolute;
  width: 15px;
  height: 45%;
  background: #000;
  border: 1px solid #000;
  z-index: 10;
}

.adv-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  line-height: 18px;
  font-size: 14px;
  z-index: 20;
  cursor: pointer;
}
     