/* Tool: color-palette */
body:where([data-tool="color-palette"]) {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
:where(body[data-tool="color-palette"]) .header-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}
:where(body[data-tool="color-palette"]) .btn {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
    display: flex;
    gap: 10px;
    font-weight: 300;
    width: auto;
}
:where(body[data-tool="color-palette"]) .btn:hover {
    background: var(--primary-light);
}
:where(body[data-tool="color-palette"]) .btn-export {
    background: #28a745;
}
:where(body[data-tool="color-palette"]) .btn-export:hover {
    background: #34ce57;
}
:where(body[data-tool="color-palette"]) .btn-secondary {
    background: var(--bg-tertiary);
}
:where(body[data-tool="color-palette"]) .btn-secondary:hover {
    background: #3a3a3a;
}
:where(body[data-tool="color-palette"]) .palette-container {
    display: flex;
    flex: 1;
    width: 100%;
    position: relative;
}
:where(body[data-tool="color-palette"]) .color-column {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: flex 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
    cursor: grab;
}
:where(body[data-tool="color-palette"]) .color-column:active {
    cursor: grabbing;
}
:where(body[data-tool="color-palette"]) .color-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}
:where(body[data-tool="color-palette"]) .color-column:hover .color-controls,
:where(body[data-tool="color-palette"]) .color-column.active .color-controls {
    opacity: 1;
    transform: translateY(0);
}
:where(body[data-tool="color-palette"]) .color-hex {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
:where(body[data-tool="color-palette"]) .control-btns {
    display: flex;
    gap: 10px;
}
:where(body[data-tool="color-palette"]) .icon-btn {
    background: none;
    border: 1px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
}
:where(body[data-tool="color-palette"]) .icon-btn:hover,
:where(body[data-tool="color-palette"]) .icon-btn.active {
    background: white;
}
:where(body[data-tool="color-palette"]) .icon-btn:hover path,
:where(body[data-tool="color-palette"]) .icon-btn.active path {
    fill: black;
}
:where(body[data-tool="color-palette"]) input[type="file"] {
    display: none;
}
:where(body[data-tool="color-palette"]) .blend-btn-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}
:where(body[data-tool="color-palette"]) .blend-btn-container:hover {
    opacity: 1;
}
:where(body[data-tool="color-palette"]) .blend-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
@media (max-width: 768px) {:where(body[data-tool="color-palette"]) .header-actions {
        flex-wrap: wrap;
    }

}
