/* 移除按鈕 (x) 的顏色調整 */
.ts-wrapper.multi .ts-control > div .remove {
    border-left-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Cropper 單圖上傳UI元件樣式 */
.img-container {
    width: 100%;
    max-height: 400px;
}
.preview-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

/* Cropper 多圖上傳UI元件樣式 */
/* 預覽圖與刪除按鈕的樣式 */
.image-preview-container {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    margin: 5px;
    cursor: grab; /* 增加可拖曳的手勢 */
}
.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}
.delete-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: rgba(220, 53, 69, 0.8); /* 使用 Bootstrap 的 danger color */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}
.image-preview-container:hover .delete-image-btn {
    opacity: 1;
}
.image-to-delete {
    opacity: 0.5;
    border: 2px dashed #dc3545 !important;
}
/* 拖曳時的樣式 */
.sortable-ghost {
    opacity: 0.4;
}