

.tool-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tool-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Background remover specific styles */
.background-remover {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    /* background: #fff; */
    border-radius: 12px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.upload-container {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
}

.upload-container:hover,
.upload-container.drag-over {
    border-color: #2980b9;
    background: #edf2f7;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.upload-btn {
    background: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #2980b9;
}

/* Preview container styles */
.preview-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.preview-panel {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-panel h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.image-preview {
    width: 100%;
    min-height: 300px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img,
.image-preview canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Action buttons */
.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-btn,
.reset-btn {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.download-btn {
    background: #2ecc71;
    color: white;
}

.download-btn:hover {
    background: #27ae60;
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.reset-btn:hover {
    background: #c0392b;
}

/* Loading spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .background-remover {
        padding: 1rem;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .download-btn,
    .reset-btn {
        width: 100%;
    }
}