#layerforge-custom-shape-menu {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2f2f2f;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    z-index: 1001;
    border: 1px solid #202020;
    user-select: none;
    min-width: 220px;
}

#layerforge-custom-shape-menu .menu-line {
    font-weight: 600;
    color: #4a90e2;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- MINIMIZED BAR INTERACTIVE STYLE --- */
.custom-shape-minimized-bar {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #222;
    color: #4a90e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin: 0 0 8px 0;
    user-select: none;
    cursor: pointer;
    border: 1px solid #444;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
    outline: none;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-shape-minimized-bar:hover, .custom-shape-minimized-bar:focus {
    background: #2a2a2a;
    color: #4a90e2;
    border: 1.5px solid #4a90e2;
    box-shadow: 0 4px 16px #4a90e244;
}

#layerforge-custom-shape-menu .feature-container {
    background-color: #3a3a3a;
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid #4a4a4a;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#layerforge-custom-shape-menu .feature-container:last-child {
    margin-bottom: 0;
}

#layerforge-custom-shape-menu .slider-container {
    margin-top: 6px;
    margin-bottom: 0;
    display: none;
    gap: 6px;
}

#layerforge-custom-shape-menu .slider-label {
    font-size: 12px;
    margin-bottom: 6px;
    color: #e0e0e0;
}

#layerforge-custom-shape-menu input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #555;
    border-radius: 2px;
    outline: none;
    padding: 0;
    margin: 0;
}
#layerforge-custom-shape-menu input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #555;
  transition: background 0.2s;
}
#layerforge-custom-shape-menu input[type="range"]::-webkit-slider-thumb:hover {
  background: #fff;
}
#layerforge-custom-shape-menu input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #555;
}

#layerforge-custom-shape-menu .slider-value-display {
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
    color: #bbb;
    min-height: 14px;
}

#layerforge-custom-shape-menu .extension-slider-container {
    margin: 10px 0;
}

#layerforge-custom-shape-menu .checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

#layerforge-custom-shape-menu .checkbox-container:hover {
    background-color: #4a4a4a;
}

#layerforge-custom-shape-menu .checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#layerforge-custom-shape-menu .checkbox-container .custom-checkbox {
    height: 16px;
    width: 16px;
    background-color: #2a2a2a;
    border: 1px solid #666;
    border-radius: 3px;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

#layerforge-custom-shape-menu .checkbox-container input:checked ~ .custom-checkbox {
    background-color: #3a76d6;
    border-color: #3a76d6;
}

#layerforge-custom-shape-menu .checkbox-container .custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#layerforge-custom-shape-menu .checkbox-container input:checked ~ .custom-checkbox::after {
    display: block;
}

.layerforge-tooltip {
    position: fixed;
    background-color: #2f2f2f;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    max-width: 250px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid #202020;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
