body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            color: #333;
        }
        .remove-bg-app {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            
            padding: 20px;
            text-align: center;
        }
        .remove-bg-container {
            background: rgba(255, 255, 255, 0.95);
            max-width: 700px;
            margin: 0 auto;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .remove-bg-h1 {
            color: #4a90e2;
            margin-bottom: 10px;
            font-size: 2.5em;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .remove-bg-p {
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1em;
        }
        .remove-bg-upload-section {
            margin: 20px 0;
        }
        #imageInput {
            display: none;
        }
        .remove-bg-file-select-btn {
            display: inline-block;
            padding: 15px 30px;
            font-size: 16px;
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 10px;
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
        }
        .remove-bg-file-select-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
        }
        .remove-bg-button {
            padding: 15px 30px;
            font-size: 16px;
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 10px;
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
        }
        .remove-bg-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
        }
        .remove-bg-button:disabled {
            background: linear-gradient(135deg, #ccc, #bbb);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .remove-bg-download-btn {
            display: none;
            background: linear-gradient(135deg, #28a745, #20c997);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        }
        .remove-bg-download-btn:hover:not(:disabled) {
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        }
        .remove-bg-clear-btn {
            background: linear-gradient(135deg, #6c757d, #5a6268);
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
        }
        .remove-bg-clear-btn:hover {
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
        }
        #status {
            margin: 15px 0;
            font-weight: bold;
            min-height: 20px;
            color: #4a90e2;
            font-size: 1.1em;
        }
        .remove-bg-preview, .remove-bg-result {
            margin-top: 20px;
            max-width: 100%;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            opacity: 0;
            transform: scale(0.9);
        }
        .remove-bg-preview.show, .remove-bg-result.show {
            opacity: 1;
            transform: scale(1);
        }
        .remove-bg-preview {
            border: 3px solid #4a90e2;
            display: none;
            position: relative;
        }
        .remove-bg-preview.processing {
            animation: remove-bg-bgremove 3s ease-in-out forwards;
        }
        @keyframes remove-bg-bgremove {
            0% {
                filter: grayscale(0%) brightness(1);
                background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
            }
            30% {
                filter: grayscale(50%) brightness(0.8) blur(1px);
                background: linear-gradient(45deg, #f59e0b, #d97706);
            }
            60% {
                filter: grayscale(100%) brightness(0.5) blur(2px);
                background: linear-gradient(45deg, #ef4444, #dc2626);
            }
            100% {
                filter: grayscale(0%) brightness(1) blur(0px);
                background: linear-gradient(45deg, #10b981, #059669);
                opacity: 0;
            }
        }
        .remove-bg-preview.processing::before {
            content: 'Removing Background...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 20px 30px;
            border-radius: 15px;
            font-size: 1.3em;
            z-index: 10;
            animation: remove-bg-fadeInOut 3s ease-in-out forwards;
        }
        @keyframes remove-bg-fadeInOut {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }
        .remove-bg-result {
            border: 3px solid #28a745;
            display: none;
        }
        .remove-bg-how-to-use {
            margin-top: 40px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            text-align: left;
            line-height: 30px;
        }
        .remove-bg-how-to-use h3 {
            color: #4a90e2;
            text-align: center;
        }
        .remove-bg-how-to-use ol {
            padding-left: 20px;
        }
        .remove-bg-how-to-use li {
            margin-bottom: 10px;
            color: #333;
        }
