/* Styles for background uploader */
/* .background-upload-container rule removed */

.image-upload-container h3 { /* Adjusted selector assuming h3 is within the new .image-upload-container */
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

/* Rules for .upload-area, .upload-content, .button, .file-types under .background-upload-container removed 
   as they should now be styled by css/image-uploader.css or other shared CSS. */

.background-settings { /* This class is specific to background settings location, which changed - may need review */
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.background-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.background-preview {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.background-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    font-size: 0.7rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-background {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Always visible */
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.background-preview:hover .remove-background {
    opacity: 1;
}

.remove-background:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}