/* Image controls */
.image-controls {
    position: absolute;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.image-controls button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flip-btn {
    background-color: rgba(30, 135, 240, 0.9) !important;
}

.flip-btn:hover {
    background-color: rgba(30, 135, 240, 1) !important;
}

.flip-btn.active {
    transform: scaleX(-1);
    background-color: #0f6ecd !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .image-controls {
        position: absolute;
        top: 4px;
        right: 4px;
        gap: 4px;
    }
    
    .image-controls button {
        width: 28px;
        height: 28px;
    }
    
    /* Mass rename responsive adjustments */
    #massRenamePattern {
        width: 150px;
    }
    
    #massRenamePattern:focus {
        width: 180px;
    }
}