.wdm-wrapper {
  background: #0f0f13;
  color: #e2e2e9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
  max-width: 100%;
}

.wdm-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  min-height: 550px;
  background: #0f0f13;
}

/* Panels */
.wdm-panel {
  background: #14141c;
  border-right: 1px solid #23232f;
  display: flex;
  flex-direction: column;
}

.wdm-panel--controls {
  border-right: none;
  border-left: 1px solid #23232f;
  overflow-y: auto;
  max-height: 650px;
}

.wdm-panel__header {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  border-bottom: 1px solid #23232f;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #191924;
}

/* Workspace */
.wdm-workspace {
  background: #09090c;
  display: flex;
  flex-direction: column;
  padding: 20px;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.wdm-toolbar {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #14141c;
  border-radius: 8px;
  border: 1px solid #23232f;
}

.wdm-tool-group {
  display: flex;
  gap: 8px;
}

/* Buttons */
.wdm-tool-btn, .wdm-action-btn, .wdm-copy-btn, .wdm-tab-btn {
  background: #1f1f2e;
  border: 1px solid #36364d;
  color: #c5c5d3;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wdm-tool-btn:hover, .wdm-action-btn:hover, .wdm-copy-btn:hover, .wdm-tab-btn:hover {
  background: #2b2b3e;
  color: #fff;
  border-color: #494968;
}

.wdm-tool-btn--active, .wdm-tab-btn--active {
  background: #0073aa !important;
  color: #fff !important;
  border-color: #008cc9 !important;
  box-shadow: 0 0 10px rgba(0, 115, 170, 0.4);
}

.wdm-action-btn--danger {
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.3);
}

.wdm-action-btn--danger:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: #ff5252;
}

/* Canvas Container */
.wdm-canvas-container {
  position: relative;
  background: #09090c;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #23232f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: 600px;
  height: 400px;
}

.wdm-blobs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.wdm-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.9;
  filter: blur(15px); /* Ensure soft, feather-like vector blending */
  will-change: left, top;
}

.wdm-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

#wdm-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.wdm-anchors-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 4;
}

/* Anchor points styling */
.wdm-anchor-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  cursor: move;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), inset 0 0 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  z-index: 10;
}

.wdm-anchor-handle:hover, .wdm-anchor-handle--active {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 115, 170, 0.6);
  z-index: 11;
}

/* Presets */
.wdm-presets-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 580px;
}

.wdm-presets-list::-webkit-scrollbar, .wdm-panel--controls::-webkit-scrollbar {
  width: 6px;
}

.wdm-presets-list::-webkit-scrollbar-track, .wdm-panel--controls::-webkit-scrollbar-track {
  background: #111;
}

.wdm-presets-list::-webkit-scrollbar-thumb, .wdm-panel--controls::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.wdm-preset-card {
  background: #1a1a26;
  border: 1px solid #2a2a3c;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wdm-preset-card:hover {
  border-color: #0073aa;
  transform: translateY(-2px);
  background: #20202e;
}

.wdm-preset-card--active {
  border-color: #0073aa;
  box-shadow: 0 0 8px rgba(0, 115, 170, 0.4);
  background: #20202e;
}

.wdm-preset-thumb {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  background: #111;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.wdm-preset-name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #b5b5c3;
}

.wdm-preset-card:hover .wdm-preset-name {
  color: #fff;
}

/* Accordion sections */
.wdm-section {
  border-bottom: 1px solid #23232f;
}

.wdm-section__header {
  padding: 12px 16px;
  background: #191924;
  font-size: 13px;
  font-weight: 600;
  color: #b5b5c3;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.wdm-section__header:hover {
  color: #fff;
  background: #1c1c2b;
}

.wdm-section__body {
  padding: 16px;
  background: #14141c;
}

/* Form inputs */
.wdm-field-group {
  margin-bottom: 14px;
}

.wdm-field-group:last-child {
  margin-bottom: 0;
}

.wdm-field-group label {
  display: block;
  font-size: 12px;
  color: #8b8b9c;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wdm-field-row {
  display: flex;
  gap: 12px;
}

.wdm-field {
  flex: 1;
}

.wdm-field-row input[type="number"] {
  width: 100%;
  background: #1c1c2b;
  border: 1px solid #36364d;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.wdm-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #c5c5d3 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.wdm-checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Color Picker */
.wdm-color-picker-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wdm-color-picker-wrapper input[type="color"] {
  border: none;
  width: 42px;
  height: 36px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}

.wdm-color-picker-wrapper input[type="text"] {
  flex: 1;
  background: #1c1c2b;
  border: 1px solid #36364d;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.wdm-node-info {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8b9c;
}

.wdm-badge {
  background: #1c1c2b;
  padding: 2px 6px;
  border-radius: 4px;
  color: #00ff66;
  font-family: monospace;
  font-weight: 600;
}

/* Range input styling */
.wdm-field-group input[type="range"] {
  width: 100%;
  background: #232333;
  height: 6px;
  border-radius: 3px;
  outline: none;
}

/* Tab details */
.wdm-export-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.wdm-tab-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.wdm-tab-content {
  display: none;
}

.wdm-tab-content--active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wdm-tab-content textarea {
  width: 100%;
  height: 100px;
  background: #09090c;
  border: 1px solid #23232f;
  border-radius: 6px;
  color: #00ff66;
  font-family: monospace;
  font-size: 11px;
  padding: 8px;
  resize: none;
  box-sizing: border-box;
}

.wdm-copy-btn {
  width: 100%;
  justify-content: center;
}
