/* cameraviewer-buttons */

.camera-label {
    position: absolute;
    right: 12px;
    top: 66px;
    background: rgba(209, 228, 179, 0.95);
    color: #222;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 6;
}

.cameraviewer-buttons button.active-view {
    background-color: #6a9e3f;
    color: white;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}

.camera-active {
    background-color: #d1e4b3 !important;
    border: 2px solid #6a9e3f !important;
}

.cameraviewer-buttons {
    position: absolute;
    top: 108px;
    right: 12px;
    display: flex;
    flex-direction: column; /* ⬅ verticaal */
    align-items: center;
    gap: 12px;
    background: rgba(209, 228, 179, 0.95);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 5;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.cameraviewer-buttons button {
    background-color: #f4f4f4;
    border: none;
    border-radius: 8px;
    padding: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cameraviewer-buttons button:hover {
    background-color: #e4e4e4;
}

.cameraviewer-buttons svg {
    stroke: #333;
    width: 20px;
    height: 20px;
}



/* Overzicht panel */


.custom-print-button {
    background-color: #6a9e3f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  .custom-print-button:hover {
    background-color: #4cae4c;
  }

#overzichtPanel {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    max-height: 90%;
    width: 90%;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
  }
  
  #overzichtPanel .controls {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 10px;
    margin-top: 10px;
    text-align: right;
    border-top: 1px solid #ccc;
  }
  

/* Color Picker */

.colorpicker-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kleurlabel {
    margin-right: auto; /* duwt icoon naar rechts */
}

.pcr-button 
{
    /* Maak de picker-knop rond */
    border-radius: 50% !important;
    width: 1.25rem !important;  
    height: 1.25rem !important; 
    overflow: hidden;
    border: 1px solid #ccc;
}

.kleuricoon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: none !important;
    pointer-events: none;
    margin-left: 12px;
}

.kleurregel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    background-color: white;
    transition: background 0.2s ease;
    cursor: pointer;

    gap: 12px;

}

.kleurregel:hover {
    background-color: #f2f8ed;
    border-color: #cde6b5;
    color: #3b7d3b;
    font-weight: 500;
}

.kleurlabel {
    flex-grow: 1;
    color: #222;
}


/* Buttons */

.custom-plugin-buttons .btn-primary:hover,
.custom-plugin-buttons .btn-primary:focus {
    background-color: #3c6f1d;
    border-color: #3c6f1d;
    color: white;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn svg {
    stroke: currentColor;
}

.btn-primary {
    background-color: #6a9e3f;
    color: white;
}

.btn-primary:hover {
    background-color: #3c6f1d;
}

.btn-secondary {
    background-color: white;
    color: #111;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #f4f4f4;
}

/* cameraview-switcher */

/* view-switcher */
.viewer-info {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(209, 228, 179, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


@media (max-width: 768px) {
  .viewer-info {
    bottom: 4px;
    top: auto;
  }
}

.viewer-buttons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(209, 228, 179, 0.95);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 5;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.viewer-buttons button {
    background-color: #f4f4f4;
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.viewer-buttons button:hover {
    background-color: #e4e4e4;
}

.viewer-buttons svg {
    stroke: #333;
    width: 20px;
    height: 20px;
}


/* Checkboxes in 2 kolommen */

/* Container in kolommen */
#paneelToggleList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px 12px;
    margin-top: 10px;
  }
  
  /* Grotere klikbare zone */
  .checkbox-label {
    /*background-color: #eef4e9;*/
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
    user-select: none;
  }
  
  /* Actieve checkbox achtergrond */
  .checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #6a9e3f;
    border-color: #6a9e3f;
  }
  
  /* Groen vinkje */
  .checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✔';
    color: white;
    font-size: 13px;
  }


/* Checkboxes */


.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 8px;
    cursor: pointer;
    flex-direction: row; /* <- belangrijk */
}

/* Verberg standaard checkbox */
.checkbox-label input[type="checkbox"] {
    display: none;
}

/* De custom checkbox vierkant */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #6a9e3f;
    border-radius: 4px;
    background-color: white;
    display: inline-block;
    position: relative;
    transition: background 0.2s ease;
}

/* Vinkje zichtbaar maken als checkbox aanstaat */
.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #6a9e3f;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✔';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



/* Model load status */
#viewer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5; /* optioneel */
    border-radius: 12px; /* zoals jouw stijl */
}

#loadStatus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    color: #333;
    pointer-events: none;
}

.spinner {
    margin: 0 auto 10px;
    width: 32px;
    height: 32px;
    border: 4px solid #cde6b5;
    border-top: 4px solid #6a9e3f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    font-size: 14px;
    color: #444;
}


.select-wrapper {
    position: relative;
    display: inline-block;
    width: 220px;
}

.select-wrapper select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    background-color: white;
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="12" viewBox="0 0 20 20" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a.625.625 0 0 1 .884-.884L10 10.264l3.6-3.6a.625.625 0 1 1 .884.884l-4.042 4.042a.625.625 0 0 1-.884 0L5.516 7.548z"/></svg>');
}

.dropdown {
    position: relative;
    /*width: 220px;*/
    font-family: sans-serif;
}

.dropdown-toggle {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 4px;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 4px 0;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.selected {
    background-color: #e6f4e6;
    color: #3b7d3b;
    font-weight: bold;
}


.boxviewer-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  /*max-width: 1200px;*/
  margin: 2rem auto;
  font-family: Lato, sans-serif;

  align-items: stretch;
}

/*.sidebar {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}*/

.sidebar h3 {
  margin-top: 0;
}

.sidebar label {
  display: block;
  margin-bottom: 1em;
  font-weight: 600;
}

.sidebar input[type="range"] {
  width: 100%;
}

.viewer {
  background: #eee;
  padding: 1rem;
  border-radius: 10px;
}

.viewer-container {

    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

#viewer {
    width: 100% !important;
    height: 100% !important;
    display: block;
    touch-action: none;
}

label {
    /*display: flex;*/
    flex-direction: column;
    font-family: sans-serif;
    font-size: 14px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 200px;
    height: 6px;
    border-radius: 5px;
    background: #eee;
    outline: none;
    margin: 0 8px;
    flex-grow: 1;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #6a9e3f;
        cursor: pointer;
        margin-top: -5px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #6a9e3f;
        cursor: pointer;
    }

    input[type="range"]::-webkit-slider-runnable-track {
        height: 6px;
        border-radius: 5px;
        /*background: linear-gradient(to right, #6a9e3f 0%, #6a9e3f 20%, #eee 20%, #eee 100%);*/
    }

    input[type="range"]::-moz-range-track {
        height: 6px;
        border-radius: 5px;
        background: #eee;
    }

/* Container voor min-knop, slider, plus-knop */
.slider-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

    /* Stijl voor min- en plus-knoppen */
    .slider-container button {
        width: 28px;
        height: 28px;
        border: 1px solid #ccc;
        background: white;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }

.slider-container button:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
  .boxviewer-layout {
    grid-template-columns: 1fr;
  }

  .feature-card { 
    width: 100%;
  }

  .viewer-container {
    height: auto;
  }

  #viewer {
    height: 40vh;
    min-height: 240px;
  }
}


@media (max-height: 800px) {
    .cameraviewer-buttons {
      scale: 0.8;
      top: 80px;
      right: 6px;
    }
  
    .viewer-buttons {
      scale: 0.9;
      top: 6px;
      right: 6px;
    }
  
    .camera-label {
      font-size: 12px;
      padding: 4px 8px;
      top: 50px;
      right: 12px;
    }
  }

  @media (max-height: 700px) {
    .boxviewer-layout {
      overflow-y: auto;
      max-height: 100vh;
    }
  }


  .boxviewer-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    max-height: 100vh;
    height: 100%;
    overflow: hidden;
}

.boxviewer-layout .viewer-container {
    display: flex;
    flex-direction: column;
    
    height: calc(100vh - 85px); 
    max-height: calc(100vh - 85px);

    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.boxviewer-layout .viewer-container canvas#viewer {
    flex-grow: 1;
    height: auto;
    width: 100%;
    display: block;
    background: #f5f5f5;
}

.boxviewer-layout .feature-card {
    height: calc(100vh - 85px);
    overflow-y: auto;
    /*padding: 1.5rem;*/
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .boxviewer-layout {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr;
      max-height: 100vh;
      height: 100%;
    }
  
    .boxviewer-layout .feature-card {
      max-height: 40vh;
      overflow-y: auto;
    }
  
    .boxviewer-layout .viewer-container {
      height: 60vh;
    }
  
    .boxviewer-layout .viewer-container canvas#viewer {
      height: 100%;
    }
  }
  
  /* Scroll bar */

  /* Scrollbar voor WebKit (Chrome, Edge, Safari) */
.feature-card::-webkit-scrollbar {
    width: 10px;
  }
  
  .feature-card::-webkit-scrollbar-track {
    background: #f4f4f4; /* lichte achtergrond */
    border-radius: 6px;
  }
  
  .feature-card::-webkit-scrollbar-thumb {
    background-color: #6a9e3f; /* PlantDing-groen */
    border-radius: 6px;
    border: 2px solid #f4f4f4; /* ruimte rondom duim */
  }
  
  .feature-card::-webkit-scrollbar-thumb:hover {
    background-color: #3c6f1d; /* donkerder bij hover */
  }
  
  /* Voor Firefox */
  .feature-card {
    scrollbar-width: thin;
    scrollbar-color: #6a9e3f #f4f4f4;
  }
  

  .selectBox {
    border: 2px dashed red;
    background-color: rgba(255, 0, 0, 0.1);
    position: absolute;
    z-index: 10000;
    pointer-events: none;
}


.plantding-link {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: #6cc14e;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.plantding-link .arrow {
  display: inline-block;
  margin-left: 0.3rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1.2rem;
}

.plantding-link:hover {
  color: #5aab40;
}

.plantding-link:hover .arrow {
  opacity: 1;
  transform: translateY(2px);
}
