/* Bottom panels */
.tab-panel{
  display:none; align-items: center;  gap: 1rem; 
  position:absolute; left:12px; right:12px; bottom:12px; padding:12px;
  background:#1b1b1bcc; color:#eee; border:1px solid #2a2a2a; border-radius:10px;
  backdrop-filter:saturate(140%) blur(4px);
  max-height:45%; overflow:auto; z-index:1;
}
.tab-panel.active{display:flex}

/* Opacity */
.opacity-row {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  gap: 8px;
}

.opacity-label {
  border-left: 3px solid var(--accent-yellow);
  padding-left: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}

.opacity-row input[type="range"] {
  flex: 1 1 auto;
  accent-color: var(--accent-yellow);
}

/* optioneel: wat nettere track (werkt in moderne browsers) */
.opacity-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.opacity-row input[type="range"]::-webkit-slider-thumb {
  margin-top: -6px;
}

.opacity-value {
  min-width: 40px;    /* smaller, so it's closer */
  text-align: left;   /* move text to the left */
  font-size: 0.95rem; /* same size as labels */
  color: var(--muted);
  padding-left: 4px;
}

/* Iets compacter op mobiel */
@media (max-width: 600px) {
  .opacity-panel {
    bottom: 8px;
    padding: 8px 10px 10px;
  }

  .opacity-row {
    flex: 1 1 100%;
  }
}

/* Filter */
.filter-panel{
  padding:10px;
  font-size:0.9rem;
}

.filter-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:8px;
}

.filter-row label{
  font-weight:600;
}

.filter-row select,
.filter-row input{
  padding:6px 8px;
  border-radius:4px;
  border:1px solid #444;
  background:#1c1c1c;
  color:#f0f0f0;
}

.filter-actions{
  display:flex;
  gap:8px;
  margin-top:6px;
}

.filter-actions button{
  padding:8px 12px;
  border-radius:4px;
  border:none;
  cursor:pointer;
  font-weight:700;
}

#btn-apply-filter{
  background:var(--accent-yellow, #ffd700);
  color:#000;
}

#btn-clear-filter{
  background:#444;
  color:#f0f0f0;
}

/* Style */
.style-panel{
  padding:10px;
  font-size:0.9rem;
}

.style-panel h3{
  margin:0 0 8px;
  color:var(--accent-yellow, #ffd700);
}

.style-options{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.style-options label{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  color:var(--text-light, #f0f0f0);
  font-size:0.9rem;
}

.style-options input[type="radio"]{
  accent-color:var(--accent-yellow, #ffd700);
}
