/* Upload component styles */

.delete-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.upload-trigger {
    cursor: pointer;
}

.upload-trigger:hover {
    border-color: #aaa;
    background-color: #eee;
}

/* Job photo upload styles */
.upload-placeholder {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #f5f5f5;
    border: 2px dashed #dbdbdb;
    border-radius: 4px;
    overflow: hidden;
}

.upload-trigger {
    cursor: pointer;
    background-color: #f0f8ff;
}

.upload-trigger:hover {
    border-color: #3273dc;
    background-color: #eef6ff;
}

.upload-trigger .icon {
    color: #3273dc;
}

.placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7a7a;
    z-index: 1;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-container {
    border: none;
    background: none;
}

.uploaded-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none; /* Don't block clicks on the image */
}

.image-container:hover .delete-overlay {
    opacity: 1;
}

.delete-button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    pointer-events: auto; /* Allow clicks on the button itself */
}

.delete-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
