/* Background Remover Styles */
.remover-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.option-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.option-icon {
    font-size: 3rem;
}

.camera-container {
    position: relative;
    max-width: 640px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

#cameraVideo {
    width: 100%;
    height: auto;
    display: block;
}

.camera-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.image-preview {
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 10px;
}

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

.processing-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.result-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.comparison-item {
    text-align: center;
}

.comparison-item h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.comparison-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Checkerboard background for transparency preview */
.checkerboard-bg {
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 10px;
    padding: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.download-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    text-align: center;
}

/* Donation Section */
.donation-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.donation-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-options {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
    }
    
    .result-comparison {
        grid-template-columns: 1fr;
    }
    
    .action-buttons,
    .download-section {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}