/* Place custom styles for MFMud here. */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
}

/* Product Image Thumbnails - Hover Zoom Effect */
.product-image-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0s;
    z-index: 1;
}

.product-image-card:not(.marked-for-deletion):hover {
    transform: scale(1.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0s;
}

/* Marked for deletion state */
.product-image-card.marked-for-deletion {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-image-card.marked-for-deletion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 67, 54, 0.1);
    pointer-events: none;
    z-index: 1;
}

.deletion-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    background: rgba(244, 67, 54, 0.95);
    padding: 6px 12px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .product-image-card:not(.marked-for-deletion):hover {
        transform: scale(1.3);
    }
}

/* Global Row Selection Styles */
.mud-table-row.selected-row,
tr.selected-row {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.12) !important;
    border-left: 4px solid var(--mud-palette-primary) !important;
    font-weight: 500;
}

.mud-table-row.selected-row:hover,
tr.selected-row:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.18) !important;
}
