/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Form elements */
.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Grid background behind visualizer */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #27272a 1px, transparent 1px),
                      linear-gradient(to bottom, #27272a 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, transparent, 10% black, 90% black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, 5% black, 95% black, transparent);
}

/* Action buttons state */
.action-active {
    color: #4ade80; /* emerald-400 */
    background-color: rgba(16, 185, 129, 0.12);
}

.action-inactive {
    color: #71717a; /* zinc-500 */
    background-color: transparent;
}

.drop-active {
    color: #f87171; /* red-400 */
    background-color: rgba(248, 113, 113, 0.12);
}
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981; /* Emerald 500 */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}