/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.5);
    /* slate-700 */
    border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 65, 85, 0.8);
}

/* Background Pattern */
.pattern-dots {
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Range Slider */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8b5cf6;
    /* primary */
    cursor: pointer;
    box-shadow: 0 0 0 4px #1e293b;
    transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Active buttons styling */
.opt-btn.active,
.layout-btn.active {
    background-color: rgba(139, 92, 246, 0.1);
    /* primary with opacity */
    border-color: #8b5cf6;
    color: #f8fafc;
}

.opt-btn:not(.active),
.layout-btn:not(.active) {
    color: #94a3b8;
}

/* Theme text buttons */
.text-theme-btn.active {
    background-color: #334155;
    /* border color */
    color: #ffffff;
}

/* Background Presets */
.bg-preset {
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.bg-preset:hover {
    transform: scale(1.1);
}

.bg-preset.active {
    border-color: #f8fafc;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Dropzone drag over effect */
#drop-zone.dragover {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
}

/* Output Canvas container */
#preview-wrapper {
    transform-origin: center center;
}