/* Toolbar Styles */

#toolbar {
    width: var(--toolbar-width);
    background: var(--bg-medium);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    gap: 2px;
    flex-shrink: 0;
}

.tool-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}
.tool-btn:hover {
    background: var(--bg-hover);
}
.tool-btn.active {
    background: var(--accent);
    color: var(--text-bright);
}
.tool-btn svg {
    pointer-events: none;
}

.tool-divider {
    width: 24px;
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Color Swatches */
#toolbar-colors {
    margin-top: auto;
    padding: 4px;
    position: relative;
    width: 34px;
    height: 40px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 3px;
    cursor: pointer;
    position: absolute;
}
.color-swatch:hover {
    border-color: var(--text-primary);
}
#color-fill-swatch {
    top: 0;
    left: 2px;
    z-index: 2;
}
#color-stroke-swatch {
    bottom: 0;
    right: 2px;
    z-index: 1;
    border-style: solid;
}
.color-swatch.outline {
    background: transparent !important;
    box-shadow: inset 0 0 0 3px var(--text-primary);
}

/* Tool Options Bar */
#tool-options-bar {
    height: var(--options-height);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 8px;
}

#tool-options-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tool-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.tool-option-label {
    font-weight: 600;
    font-size: 11px;
    color: var(--text-primary);
    min-width: 50px;
}

.tool-separator {
    width: 1px;
    height: 18px;
    background: var(--border);
}

/* Brush size indicator */
.brush-size-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brush-size-dot {
    border-radius: 50%;
    background: var(--text-primary);
}

/* Shape Picker Buttons */
.shape-pick-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border, #444);
    background: var(--bg-dark, #1a1a1a);
    color: var(--text-primary, #ddd);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}
.shape-pick-btn:hover {
    background: var(--accent, #0078d4);
    border-color: var(--accent, #0078d4);
    color: #fff;
}

/* AI Brush Preset Card */
.ai-brush-preset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bg-dark, #1a1a1a);
    border: 1px solid var(--border, #444);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: border-color 0.15s;
}
.ai-brush-preset:hover {
    border-color: var(--accent, #0078d4);
}
.ai-brush-preset .brush-preview-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border, #444);
    flex-shrink: 0;
}
.ai-brush-preset .brush-preset-info {
    font-size: 11px;
    color: var(--text-primary, #ddd);
    overflow: hidden;
}
.ai-brush-preset .brush-preset-info .preset-name {
    font-weight: 600;
}
.ai-brush-preset .brush-preset-info .preset-type {
    color: var(--text-secondary, #999);
    font-size: 10px;
}
