        :root {
            --bg: #f5f5f7;
            --card: #ffffff;
            --primary: #0071e3;
            --text: #1d1d1f;
            --text-light: #86868b;
            --radius: 24px;
            --border: #e5e5e7;
            --error: #ff3b30;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            /* padding: 20px; */
        }

        .container {
            width: 100%;
            max-width: 600px;
            background: var(--card);
            padding: 30px;
            border-radius: 32px;
            /* box-shadow: 0 20px 60px rgba(0,0,0,0.08); */
            border: 1px solid #e5e5e7;
            text-align: center;
        }

        header {
            margin-bottom: 32px;
        }

        h1 {
            font-weight: 600;
            font-size: 2rem;
            margin: 0;
            letter-spacing: -0.5px;
        }

        p {
            color: var(--text-light);
            margin-top: 8px;
            font-size: 0.95rem;
        }

        .workspace {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 32px;
        }

        .canvas-box {
            background: #fbfbfd;
            border-radius: var(--radius);
            aspect-ratio: 1/1;
            position: relative;
            border: 1px solid var(--border);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border 0.4s ease, box-shadow 0.4s ease;
        }

        /* Border Effect */
        .canvas-box.error {
            border: 1px solid var(--error);
            box-shadow: 0 0 12px rgba(255, 59, 48, 0.2);
            animation: pulse-red 1s infinite;
        }

        @keyframes pulse-red {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.01);
            }

            100% {
                transform: scale(1);
            }
        }

        .canvas-box img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: none;
            z-index: 2;
        }

        .placeholder-text {
            font-size: 2rem;
            font-weight: 800;
            color: #e5e5e7;
            letter-spacing: 2px;
            position: absolute;
            z-index: 1;
        }

        .label {
            position: absolute;
            top: 16px;
            left: 16px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            padding: 5px 12px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--text-light);
            z-index: 3;
            border: 1px solid rgba(0, 0, 0, 0.05);
            text-transform: uppercase;
        }

        .controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .custom-select {
            position: relative;
            width: 100%;
            max-width: 500px;
            text-align: left;
        }

        .select-trigger {
            padding: 16px 20px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 16px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.95rem;
            color: var(--text-light);
            transition: all 0.4s ease;
        }

        .select-trigger.error {
            border: 1px solid var(--error);
            color: var(--error);
            background: #fffafa;
        }

        .select-trigger.active-state {
            color: var(--text);
            border-color: #d1d5db;
        }

        .select-trigger::after {
            content: "";
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--text-light);
            border-bottom: 2px solid var(--text-light);
            transform: rotate(45deg);
            margin-bottom: 4px;
        }

        .options-list {
            position: absolute;
            bottom: calc(100% + 12px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border);
            border-radius: 20px;
            box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.1);
            z-index: 100;
            max-height: 250px;
            overflow-y: auto;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px) scale(0.98);
            transform-origin: bottom center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .options-list.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .option-group {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-light);
            padding: 10px 12px 4px;
            text-transform: uppercase;
        }

        .option-item {
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.2s;
        }

        .option-item:hover {
            background: var(--bg);
            color: var(--primary);
        }

        .btn-group {
            display: flex;
            gap: 12px;
            width: 100%;
            max-width: 500px;
        }

        .btn {
            flex: 1;
            padding: 16px;
            border-radius: 16px;
            border: none;
            font-family: inherit;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-upload {
            background: #f2f2f7;
            color: var(--text);
            position: relative;
        }

        .btn-upload input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        @media (max-width: 600px) {
            .container {
                padding: 24px 16px;
                border-radius: 24px;
            }

            .workspace {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .btn-group {
                flex-direction: column;
            }

            h1 {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 600px) {
            .canvas-box {
                aspect-ratio: 4/2.5;
                /* Slightly shorter to fit both on one screen view */
            }
        }