/* Upload area */
.upload-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.upload-area {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius-large);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.01);
}

.upload-area.drag-over {
    border-color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.03);
}

.upload-icon {
    margin-bottom: 20px;
    color: #aaa;
}

.upload-text {
    color: var(--color-secondary);
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.upload-browse {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Image workspace */
.image-workspace {
    margin-top: 20px;
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    justify-content: center; /* Changed from space-between to center */
}

.workspace-main {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 350px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    background-color: #f8f8f8;
    cursor: crosshair;
}

#uploadedImage {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.magnifier {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px black, 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    display: none;
    /* Added properties for better appearance */
    cursor: none;
    box-sizing: border-box;
}

.magnifier-glass {
    position: absolute;
    background-repeat: no-repeat;
    width: 300px;  /* 3x magnification */
    height: 300px; /* 3x magnification */
    top: -100px;
    left: -100px;
}

/* Crosshair for precise targeting */
#magnifier-crosshair {
    pointer-events: none;
}

@media (max-width: 480px) {
    .upload-area {
        height: 250px;
    }
    
    .image-container {
        height: 300px;
    }
}