.node {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-row.selected {
    background-color: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.color-row.selected .node {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

.mapping-line {
    fill: none;
    stroke: rgba(99, 102, 241, 0.4);
    stroke-width: 2;
    transition: stroke 0.2s;
}

.mapping-line:hover {
    stroke: rgba(99, 102, 241, 0.8);
    stroke-width: 3;
}

/* Custom Scrollbar for the lists */
.list-container::-webkit-scrollbar {
    width: 4px;
}

.list-container::-webkit-scrollbar-track {
    background: transparent;
}

.list-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

.pulse-highlight {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        background-color: rgba(16, 185, 129, 0.4);
    }

    100% {
        background-color: transparent;
    }
}

/* Background grid for Canvas preview */
.bg-grid-pattern {
    background-image: linear-gradient(45deg, #0f172a 25%, transparent 25%),
        linear-gradient(-45deg, #0f172a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0f172a 75%),
        linear-gradient(-45deg, transparent 75%, #0f172a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #1e293b;
}

/* Button Highlights */
#generateBtn:active,
#dlBtn:active {
    transform: scale(0.95);
    filter: brightness(1.2);
}