/* Background Remover - Hub-ready utility surface */
.ez-bg-wrapper {
    width: min(100%, 560px);
    margin: 8px auto 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5edf6;
}

.ez-bg-header,
.ez-bg-title,
.ez-bg-subtitle {
    display: none;
}

.ez-bg-dropzone {
    border: 1px dashed rgba(0, 242, 255, 0.42);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    background: rgba(8, 14, 18, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.ez-bg-dropzone:hover,
.ez-bg-dropzone.is-dragging {
    background: rgba(0, 242, 255, 0.06);
    border-color: #00e7f0;
    box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.1);
}

.ez-bg-dropzone-inner {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.ez-bg-icon {
    display: none;
}

.ez-bg-dropzone h3 {
    margin: 0;
    color: #f2f6fb;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.ez-bg-dropzone p {
    margin: 0;
    color: #9aa8ba;
    font-size: 13px;
    line-height: 1.4;
}

.ez-bg-btn-browse {
    margin-top: 4px;
    border: 1px solid #ff2d72;
    border-radius: 6px;
    background: rgba(255, 45, 114, 0.08);
    color: #ff4f8a;
    min-height: 36px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ez-bg-btn-browse:hover,
.ez-bg-btn-browse:focus-visible {
    background: #ff2d72;
    color: #101216;
    transform: translateY(-1px);
}

.ez-bg-preview-container {
    margin-top: 18px;
    animation: ez-bg-fade-in 0.25s ease;
}

.ez-bg-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 340px;
    background:
        linear-gradient(45deg, #182330 25%, transparent 25%),
        linear-gradient(-45deg, #182330 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #182330 75%),
        linear-gradient(-45deg, transparent 75%, #182330 75%);
    background-color: #101821;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#ez-bg-canvas-result {
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.ez-bg-loader {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 21, 0.84);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    color: #cfd8e3;
    font-weight: 700;
}

.ez-bg-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 242, 255, 0.14);
    border-left-color: #00e7f0;
    border-radius: 50%;
    animation: ez-bg-spin 1s linear infinite;
}

.ez-bg-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 14px;
}

.ez-bg-btn-reset,
.ez-bg-btn-download {
    border-radius: 6px;
    min-height: 40px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
}

.ez-bg-btn-reset {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #aab7c7;
}

.ez-bg-btn-download {
    background: #00e7f0;
    border: 1px solid #00e7f0;
    color: #071013;
}

@keyframes ez-bg-spin {
    to { transform: rotate(360deg); }
}

@keyframes ez-bg-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
    .ez-bg-wrapper {
        margin-top: 0;
    }

    .ez-bg-dropzone {
        padding: 24px 16px;
    }

    .ez-bg-actions {
        grid-template-columns: 1fr;
    }
}
