/* Image preview grid */
.image-preview-container {
    position: relative;
    background-color: #f0f0f0;
    background-image: 
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0),
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    opacity: 1;
}

.image-preview-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-preview {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    display: block;
}

.image-preview.flipped {
    transform: scaleX(-1);
}

/* Watermark overlay */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    user-select: none;
}

.watermark-overlay svg {
    width: 100%;
    height: 100%;
}

.watermark-text {
    pointer-events: none;
    user-select: none;
}

/* Image name input */
.image-name-input {
    margin: 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.image-name-input:focus {
    border-color: #1e87f0;
    box-shadow: 0 0 0 2px rgba(30,135,240,0.1);
}

/* Analyze button */
.analyze-image-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 20;
}

.analyze-image-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.analyze-image-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.analyze-image-btn i {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .image-name-input {
        margin: 8px;
    }
}