.image-thumb-container {
    position: relative;
    cursor: pointer;
}

.img-thumb {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    height: 80px;
    transition: transform 0.2s;
}

.image-thumb-container:hover .img-thumb {
    transform: scale(1.02);
}

.image-hover-tools {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.arrow-btn {
    background: white;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ccc;
}

.image-thumb-container:hover .image-hover-tools {
    display: block;
}

.image-select-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 123, 255, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.image-thumb-container.selected .image-select-overlay {
    opacity: 1;
}
.image-thumb-container.selected .image-thumb-wrapper {
    outline: 3px solid #0d6efd; /* blue highlight */
    outline-offset: 2px;
    background: rgba(13, 110, 253, 0.1); /* light blue background */
}


.image-action-bar {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    z-index: 10;
}
.overlay-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px;
    font-size: 14px;
    border-radius: 50%;
    display: none;
    text-decoration: none;
    z-index: 2;
}

.image-thumb-wrapper:hover .overlay-icon {
    display: block;
}

/* 🧠 Custom submenu for "Move to Scene" */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
}

.dropdown-submenu.dropdown-hover:hover > .dropdown-menu {
    display: block;
}

.template-option.selected {
  outline: 3px solid #007bff;
  border-radius: 6px;
}
