/* ============================================
   ADMIN PANEL DRAG-AND-DROP STYLES
   Lightweight, no external dependencies
   ============================================ */

/* Draggable row styles */
.admin-table tbody tr {
    cursor: move;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.admin-table tbody tr:hover {
    background-color: var(--belle-parchment);
}

/* Dragging state */
.admin-table tbody tr.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    background-color: var(--belle-cream);
}

/* Drop zone indicator */
.admin-table tbody tr.drag-over {
    border-top: 3px solid var(--belle-wine);
    background-color: rgba(66, 129, 4, 0.1);
}

/* Drag handle icon */
.drag-handle {
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: grab;
    opacity: 0.5;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: opacity 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Drag handle SVG icon */
.drag-handle svg {
    width: 100%;
    height: 100%;
    fill: var(--belle-text-medium);
}

/* Reorder feedback message */
.reorder-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--belle-wine);
    color: var(--belle-ivory);
    padding: 0.75rem 1.5rem;
    border-radius: var(--belle-radius-sm);
    box-shadow: var(--belle-shadow-lg);
    z-index: 10000;
    font-family: var(--belle-font-sans);
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.reorder-feedback.show {
    display: block;
}

.reorder-feedback.success {
    background: #22c55e;
}

.reorder-feedback.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state during save */
.admin-table tbody tr.saving {
    opacity: 0.6;
    pointer-events: none;
}

/* Disable drag on action buttons */
.admin-table tbody tr td:last-child {
    cursor: default;
}

.admin-table tbody tr td:last-child button {
    cursor: pointer;
}





