/* ... Giữ nguyên các phần CSS cũ (image-wrapper, .image-wrapper.selected, etc.) ... */

/* ============== TÙY CHỈNH CHUNG ============== */

body {
    background-color: #f8f9fa;
}

/* Các tùy chỉnh cho thẻ chứa ảnh (giữ nguyên hoặc tùy chỉnh theo sở thích) */
.image-wrapper {
    position: relative;
    padding-top: 100%; 
    overflow: hidden;
    border: 3px solid transparent; 
    border-radius: 0.25rem;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Thêm bóng nhẹ cho ảnh */
}

.image-wrapper.selected {
    border-color: #0d6efd; 
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.7); /* Bóng nổi bật hơn khi chọn */
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* Kéo thả */
.image-card {
    cursor: grab;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #cce5ff;
    border: 1px dashed #0d6efd;
}

/* ============== SỐ TRANG (PAGE NUMBER) ============== */

.page-number {
    position: absolute;
    top: 5px;
    left: 5px;
    
    /* Thiết kế nổi bật */
    background-color: #0d6efd; /* Màu nền xanh dương Bootstrap Primary */
    color: white; /* Chữ trắng */
    
    padding: 4px 10px; /* Tăng padding để to hơn */
    border-radius: 5px; /* Bo góc */
    font-weight: 700; /* Đậm hơn */
    font-size: 1rem; /* Kích thước chữ chuẩn */
    
    /* Thêm bóng để nổi lên trên ảnh */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
    z-index: 10;
}

/* ============== NÚT XÓA (DELETE BUTTON) ============== */

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    
    /* Thiết kế nổi bật */
    background-color: #dc3545; /* Màu nền đỏ (Danger) */
    color: white; /* Chữ trắng */
    border: 2px solid white; /* Thêm viền trắng để nổi trên nền ảnh */
    
    line-height: 1; 
    padding: 3px 8px; /* Tăng padding */
    border-radius: 5px; 
    font-size: 1.1rem; /* Chữ to hơn */
    font-weight: bold;
    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 20;
    
    /* Hiệu ứng di chuột */
    opacity: 0.9;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #c82333; /* Đỏ đậm hơn khi hover */
    opacity: 1;
    transform: scale(1.05); /* Phóng to nhẹ khi di chuột */
}