/* Custom scrollbar for sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #E5E7EB;
    border-radius: 20px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
}

/* Device toggle styling */
.device-toggle.active {
    background-color: #F3F4F6;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Animated toggle switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #3B82F6;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #3B82F6;
}

/* Transitions */
#preview-wrapper {
    will-change: width, max-width;
}

/* Section Drag item hover effect */
.section-item {
    transition: all 0.2s ease;
}

.section-item:hover {
    background-color: #F9FAFB;
}

/* Sidebar behavior on mobile */
#sidebar {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    #sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}