/* Tùy chỉnh thanh cuộn */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px;}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Style cho vùng kéo thả */
.drop-zone--over { border-color: #3b82f6 !important; background-color: #eff6ff; }
.panel-drop-zone--over { background-color: #eff6ff; box-shadow: inset 0 0 0 2px #3b82f6; }

/* Hiệu ứng chuyển động mượt mà */
.transition-all { transition: all 0.2s ease-in-out; }

/* Ẩn/Hiện cột layout */
.layout-panel-hidden {
    transform: translateX(-100%);
    opacity: 0;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Style cho việc kéo-thả hoán đổi vị trí */
.upload-slot {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out;
}

.dragging { 
    opacity: 0.4 !important; 
    cursor: grabbing !important;
    z-index: 50;
}

.drag-over-slot { 
    transform: scale(1.05) !important; 
    box-shadow: 0 0 0 3px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
}

.swapping {
    animation: swapPulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes swapPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); opacity: 0.8; }
}

/* Custom Toggle Switch */
.toggle-checkbox:checked { right: 0; border-color: #2563eb; }
.toggle-checkbox:checked + .toggle-label { background-color: #2563eb; }

/* Loading Spinner */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}