/* ================================
   DRAG HANDLE (clean + modern)
================================ */
.drag-handle {
    cursor: grab;
    width: 40px;
    color: #6c757d;
    font-size: 1.2rem;
    user-select: none;
    touch-action: manipulation; /* ✅ allows scroll on mobile */
    transition: all 0.2s ease;
}

.drag-handle:hover {
    color: #000;
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
    transform: scale(0.95);
}


/* ================================
   ROW DRAGGING EFFECT (lift + shadow)
================================ */
.dragging-row {
    background-color: #eef2f7 !important;
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}


/* ================================
   SMOOTH ROW TRANSITION
================================ */
#categoryTableBody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* ================================
   PLACEHOLDER (ghost spacing)
================================ */
.sortable-ghost {
    opacity: 0.4;
}


/* ================================
   DISABLE INTERACTION WHILE SAVING
================================ */
#categoryTableBody.saving {
    pointer-events: none;
    opacity: 0.6;
    filter: blur(0.5px);
}


/* ================================
   TOAST (modern + smooth)
================================ */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Show animation */
.custom-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Success */
.custom-toast.success {
    background: linear-gradient(135deg, #28a745, #4cd964);
}

/* Error */
.custom-toast.error {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}