/* ============================================
   Tool Panel Styles
   ============================================ */

/* Main Layout */
.main-container { display: flex; height: calc(100vh - 50px); }

/* Tool Panel */
.tool-panel {
    width: 42px;
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    gap: 1px;
}

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

.tool-btn:hover { background: var(--bg-light); color: var(--text-primary); }
.tool-btn.active { background: var(--accent); color: white; }
.tool-btn svg { width: 18px; height: 18px; }
.tool-divider { width: 26px; height: 1px; background: var(--border); margin: 4px 0; }

/* Color Swatches */
.color-swatches {
    position: relative;
    width: 32px;
    height: 38px;
    margin-top: auto;
    margin-bottom: 4px;
}

.color-swatch {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-dark);
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--border);
}

.color-swatch.foreground { top: 0; left: 0; z-index: 2; background: #ffffff; }
.color-swatch.background { bottom: 6px; right: 0; z-index: 1; background: #000000; }

.color-swap, .color-reset {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--text-dim);
    z-index: 3;
}

.color-swap { top: -2px; right: -2px; }
.color-reset { bottom: 0; left: -2px; font-size: 10px; }
.color-swap:hover, .color-reset:hover { background: var(--bg-light); color: var(--text-primary); }
