* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: column;
        }

        .subtitle {
            color: #333 !important;
        }

        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgb(151 151 151 / 30%);
            padding: 40px;
            max-width: 800px;
            width: 100%;
            text-align: center;
        }

        header {
            margin-top: 2rem;
            text-align: center;
        }

        h1 {
            margin-bottom: 10px;
            font-size: 2.5rem;
            font-weight: 600;
            color: #0268a5;
        }

        .file-input-wrapper {
            position: relative;
            display: inline-block;
            cursor: pointer;
            margin-bottom: 20px;
        }

        .file-input-wrapper input[type="file"] {
            position: absolute;
            left: -9999px;
        }

        .file-input-label {
            display: inline-block;
            padding: 15px 40px;
            background: linear-gradient(135deg, #000000f2 0%, #0076BD 100%);
            color: white;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1.3rem;
            font-weight: 500;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .file-input-label:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgb(100 100 100 / 40%);
        }

        .file-name {
            color: #666;
            font-size: 1.1rem;
            margin-top: 10px;
            min-height: 20px;
        }

        .preview-section {
            margin: 30px 0;
            display: none;
        }

        .preview-section.active {
            display: block;
        }

        .image-container {
            margin-bottom: 30px;
        }

        .image-container h3 {
            color: #555;
            margin-bottom: 15px;
            font-size: 1.2rem;
            font-weight: 500;
        }

        .image-wrapper {
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 10px;
            background: #f9f9f9;
            display: inline-block;
            max-width: 100%;
        }

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

        .button {
            padding: 15px 40px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            margin: 10px;
        }

        .button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .convert-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .convert-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(245, 87, 108, 0.4);
        }

        .download-btn {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .download-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
        }

        .blur-btn {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            color: white;
        }

        .blur-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(250, 112, 154, 0.4);
        }

        .blur-controls {
            margin: 20px 0;
            padding: 20px;
            background: #f5f5f5;
            border-radius: 15px;
            display: none;
        }

        .blur-controls.active {
            display: block;
        }

        .blur-controls label {
            display: block;
            color: #555;
            font-weight: 500;
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .blur-controls input[type="range"] {
            width: 100%;
            max-width: 400px;
            height: 8px;
            border-radius: 5px;
            background: #ddd;
            outline: none;
            margin: 10px auto;
            display: block;
            -webkit-appearance: none;
        }

        .blur-controls input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .blur-controls input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            border: none;
        }

        .blur-controls span {
            display: inline-block;
            font-weight: 600;
            color: #fa709a;
            font-size: 1.2rem;
            margin: 0 10px;
        }

        .error-message {
            color: #f5576c;
            margin-top: 15px;
            font-size: 0.9rem;
            display: none;
        }

        .error-message.active {
            display: block;
        }

        canvas {
            display: none;
        }

        .loader {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
            display: none;
        }

        .loader.active {
            display: block;
        }

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

        @media (max-width: 600px) {
            .container {
                padding: 30px 20px;
            }

            h1 {
                font-size: 1.5rem;
            }

            .button {
                padding: 12px 30px;
                font-size: 0.9rem;
            }
        }


        footer{width: 100%; background: #2d343652;}