/* Additional ColorPicker & StrokeWidthPicker Styles */
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-swatch.active {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.3);
}

.stroke-width-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: #202124;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

/* Labels in stroke-width-item verstecken */
.stroke-width-item span {
    display: none;
}

.stroke-width-item:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    background: #292b2e;
}

.stroke-width-item.active {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.3);
    background: #292b2e;
}

.stroke-preview {
    background: #e8eaed;
    border-radius: 2px;
    transition: background 0.2s;
}

.stroke-width-item .stroke-preview {
    background: #fff;
}

.stroke-width-item:hover .stroke-preview {
    background: #fff;
}
