@import '_content/Wonik.ClientShared/Wonik.ClientShared.ucr72ei3jf.bundle.scp.css';

/* /Features/Workspace/WebGLCanvas/WebGLWorkspace.razor.rz.scp.css */
.blockly-color-mode-toggle[b-kgnbsitill] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 56px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.blockly-color-mode-toggle[b-kgnbsitill]::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 20px;
  background-color: #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.blockly-color-mode-toggle[b-kgnbsitill]::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.blockly-color-mode-toggle:hover[b-kgnbsitill] {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.blockly-color-mode-toggle:active[b-kgnbsitill] {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.blockly-color-mode-toggle:disabled[b-kgnbsitill] {
  opacity: 0.6;
  cursor: not-allowed;
}

.blockly-color-mode-toggle.active[b-kgnbsitill]::before {
  background-color: #3b82f6;
}

.blockly-color-mode-toggle.active[b-kgnbsitill]::after {
  left: 30px;
}

.blockly-color-mode-toggle.active[b-kgnbsitill] {
  border-color: #3b82f6;
}

.blockly-color-mode-toggle.active:hover[b-kgnbsitill] {
  background-color: #eff6ff;
  border-color: #2563eb;
}

.webgl-toolbox-toggle-overlay[b-kgnbsitill] {
  position: absolute;
  top: 10px;
  left: 220px;
  z-index: 50;
  pointer-events: none;
}

/* New WebGL Color Toggle Styles */
.webgl-color-toggle-container[b-kgnbsitill] {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.webgl-color-toggle-label[b-kgnbsitill] {
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  white-space: nowrap;
  user-select: none;
}

.webgl-color-toggle-switch[b-kgnbsitill] {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #d1d5db;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  outline: none;
  padding: 0;
}

.webgl-color-toggle-switch:hover[b-kgnbsitill] {
  background-color: #9ca3af;
}

.webgl-color-toggle-switch:disabled[b-kgnbsitill] {
  opacity: 0.5;
  cursor: not-allowed;
}

.webgl-color-toggle-switch:disabled:hover[b-kgnbsitill] {
  background-color: #d1d5db;
}

.webgl-color-toggle-knob[b-kgnbsitill] {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.webgl-color-toggle-switch.active[b-kgnbsitill] {
  background-color: #0b78cb;
}

.webgl-color-toggle-switch.active:hover[b-kgnbsitill] {
  background-color: #0969b3;
}

.webgl-color-toggle-switch.active .webgl-color-toggle-knob[b-kgnbsitill] {
  transform: translateX(20px);
}
