.bg-remover-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bg-remover-upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-remover-upload-area:hover,
.bg-remover-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.bg-remover-upload-area h3 {
    margin: 0 0 0.5rem;
    color: #1e293b;
}

.bg-remover-upload-area p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.bg-remover-browse-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.bg-remover-browse-btn:hover {
    background: #2563eb;
}

.file-requirements small {
    color: #94a3b8;
    display: block;
    margin-top: 1rem;
}

.bg-remover-preview {
    margin-top: 2rem;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.original-image,
.processed-image {
    text-align: center;
}

.original-image h4,
.processed-image h4 {
    margin-bottom: 1rem;
    color: #475569;
}

.original-image img,
.processed-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.processing-spinner {
    margin-top: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.bg-remover-download-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.bg-remover-another-btn {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.bg-remover-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

.bg-remover-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.bg-remover-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {

    .preview-container,
    .bg-remover-view-split {
        grid-template-columns: 1fr;
    }
}

/* New Result View Styles */
.bg-remover-result-header {
    margin-bottom: 2rem;
}

.bg-remover-back-btn {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.bg-remover-back-btn:hover {
    color: #1e293b;
}

.bg-remover-view-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bg-remover-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.bg-remover-card h3 {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 1.1rem;
}

.image-wrapper {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.transparency-grid {
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.result-actions {
    margin-top: 1rem;
}

.button-primary.bg-remover-download-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.button-primary.bg-remover-download-btn:hover {
    background: #2563eb;
}