#sidebar-tools {
    width: 52px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.tools-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
}

.tool-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-elevated);
}

.tool-btn.active {
    color: var(--accent);
    background-color: rgba(92, 107, 255, 0.15);
    /* Light accent background */
}

.color-picker-widget {
    position: relative;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
}

.color-wrapper {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-dark);
    /* acts as a strong separator */
    overflow: hidden;
}

.bg-wrapper {
    bottom: 0;
    right: 0;
    z-index: 1;
}

.fg-wrapper {
    top: 0;
    left: 0;
    z-index: 2;
}

.color-wrapper input[type="color"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
}

.color-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-wrapper input[type="color"]::-webkit-color-swatch {
    border: none;
}

.color-wrapper input[type="color"]::-moz-color-swatch {
    border: none;
}

