/* Halasztelek custom: only layer checkbox switch style */

/* Legacy Lizmap checkbox buttons */
#dock .tree button.checkbox,
#right-dock .tree button.checkbox,
#bottom-dock .tree button.checkbox,
#mini-dock .tree button.checkbox,
#tmLayers .tree button.checkbox {
  width: 30px;
  height: 18px;
  min-width: 30px;
  min-height: 18px;
  border: 1px solid #8ea8b6;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6e3ea 0%, #c4d5df 100%);
  box-shadow: inset 0 1px 2px rgba(20, 40, 52, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: all 0.16s ease;
}

#dock .tree button.checkbox::after,
#right-dock .tree button.checkbox::after,
#bottom-dock .tree button.checkbox::after,
#mini-dock .tree button.checkbox::after,
#tmLayers .tree button.checkbox::after {
  content: ;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#dock .tree button.checkbox:hover,
#right-dock .tree button.checkbox:hover,
#bottom-dock .tree button.checkbox:hover,
#mini-dock .tree button.checkbox:hover,
#tmLayers .tree button.checkbox:hover {
  border-color: #6f95a8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 5px rgba(40, 78, 98, 0.22);
}

#dock .tree button.checkbox.checked,
#right-dock .tree button.checkbox.checked,
#bottom-dock .tree button.checkbox.checked,
#mini-dock .tree button.checkbox.checked,
#tmLayers .tree button.checkbox.checked {
  background: linear-gradient(180deg, rgb(38 165 135) 0%, rgb(31 141 115) 100%) !important;
  border-color: #1d6b49;
}

#dock .tree button.checkbox.checked::after,
#right-dock .tree button.checkbox.checked::after,
#bottom-dock .tree button.checkbox.checked::after,
#mini-dock .tree button.checkbox.checked::after,
#tmLayers .tree button.checkbox.checked::after {
  transform: translateX(12px);
  background: #f7fffb;
}

/* Lizmap 3.9 native checkbox inputs */
#dock lizmap-treeview input[type=checkbox],
#dock .tree input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 18px;
  min-width: 30px;
  min-height: 18px;
  margin: 0 6px 0 0;
  border: 1px solid #8ea8b6;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6e3ea 0%, #c4d5df 100%);
  box-shadow: inset 0 1px 2px rgba(20, 40, 52, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#dock lizmap-treeview input[type=checkbox]::before,
#dock .tree input[type=checkbox]::before {
  content: ;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.16s ease;
}

#dock lizmap-treeview input[type=checkbox]:checked,
#dock .tree input[type=checkbox]:checked {
  background: linear-gradient(180deg, rgb(38 165 135) 0%, rgb(31 141 115) 100%);
  border-color: #1d6b49;
}

#dock lizmap-treeview input[type=checkbox]:checked::before,
#dock .tree input[type=checkbox]:checked::before {
  transform: translateX(12px);
}

#dock lizmap-treeview input[type=checkbox]:hover,
#dock .tree input[type=checkbox]:hover {
  border-color: #6f95a8;
  box-shadow: inset 0 1px 2px rgba(20, 40, 52, 0.2), 0 2px 5px rgba(40, 78, 98, 0.22);
}

/* Popup tablazat (Mezo/Ertek fejlec) zold tema */
#popupcontent .lizmapPopupTable thead,
#popupcontent .lizmapPopupTable th,
#dock .lizmapPopupTable thead,
#dock .lizmapPopupTable th,
#right-dock .lizmapPopupTable thead,
#right-dock .lizmapPopupTable th {
  background: rgb(38 165 135) !important;
  color: #ffffff !important;
  border-color: rgb(31 141 115) !important;
}

#popupcontent .lizmapPopupTable td,
#dock .lizmapPopupTable td,
#right-dock .lizmapPopupTable td {
  border-color: rgba(31, 141, 115, 0.35) !important;
}
