body {
    background-color: #f8f9fa;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ui-sortable-helper {
    opacity: 0.7;
}


.image-item {
    position: relative;
    margin: 10px;
    width: 150px;
    height: 168px;
    border: 1px solid #ccc;
    padding: 0.5rem;
}

.img-thumbnail {
    max-width: 100%;
    height: auto;
}

.delete-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    color: red;
    cursor: pointer;
    font-size: 18px;
}

.form-label {
    /* font-size: 0.9em; */
}

.form-control {
    /* font-size: 0.9em; */
    padding: 5px;
}

.icon-container {
    position: absolute;
    top: 5px;
    /* Place above the image */
    right: 5px;
    height: 45px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    /* Semi-transparent background */
    padding: 5px;
    border-radius: 5px;
    margin: 0.2rem;
}

.delete-icon,
.settings-icon {
    color: #dc3545;
    /* Red for delete */
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 5px;
    /* Space between icons */
    transition: color 0.2s;
    position: static;
}

.settings-icon {
    color: #007bff;
    /* Blue for settings */
}

.delete-icon:hover {
    color: #a71d2a;
}

.settings-icon:hover {
    color: #0056b3;
}

/* Modal scale animation */
.modal-scale .modal-dialog {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform-origin: center;
    margin: 0;
    translate: -50% -50%;
}

.modal-scale.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
    width: -webkit-fill-available;
}

.modal-scale .modal-content {
    transform: none;
}

.icon-container {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.image-item:hover .icon-container {
    opacity: 1;
}

