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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 40px;
            width: 100%;
            max-width: 700px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        h1 {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
        }

        .subtitle {
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 32px;
            font-size: 0.95rem;
        }

        .drop-zone {
            border: 2px dashed rgba(255, 255, 255, 0.25);
            border-radius: 16px;
            padding: 50px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.03);
            position: relative;
        }

        .drop-zone:hover,
        .drop-zone.dragover {
            border-color: #6c63ff;
            background: rgba(108, 99, 255, 0.08);
        }

        .drop-zone.has-image {
            padding: 20px;
            border-style: solid;
            border-color: rgba(255, 255, 255, 0.15);
        }

        .drop-zone-icon {
            font-size: 48px;
            margin-bottom: 16px;
            display: block;
        }

        .drop-zone-text {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.05rem;
        }

        .drop-zone-text strong {
            color: #6c63ff;
        }

        .drop-zone-hint {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.85rem;
            margin-top: 8px;
        }

        .drop-zone input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 10;
        }

        .preview-area {
            display: none;
            margin-top: 16px;
        }

        .preview-area.show {
            display: block;
        }

        .preview-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .preview-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .preview-card-header {
            padding: 10px 14px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .preview-card img {
            width: 100%;
            height: 220px;
            object-fit: contain;
            display: block;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            background: repeating-conic-gradient(rgba(255,255,255,0.05) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
        }

        .preview-card img:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .preview-card-footer {
            padding: 8px 14px;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.45);
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.02);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 32px;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 20px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #6c63ff, #4834d4);
            color: #fff;
            box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.18);
        }

        .btn-success {
            background: linear-gradient(135deg, #00b894, #00a381);
            color: #fff;
            box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
        }

        .status {
            display: none;
            margin-top: 20px;
            padding: 16px 20px;
            border-radius: 12px;
            font-size: 0.9rem;
            align-items: center;
            gap: 12px;
        }

        .status.show {
            display: flex;
        }

        .status.loading {
            background: rgba(108, 99, 255, 0.12);
            border: 1px solid rgba(108, 99, 255, 0.25);
            color: #c4bfff;
        }

        .status.success {
            background: rgba(0, 184, 148, 0.12);
            border: 1px solid rgba(0, 184, 148, 0.25);
            color: #6ddbc1;
        }

        .status.error {
            background: rgba(255, 71, 87, 0.12);
            border: 1px solid rgba(255, 71, 87, 0.25);
            color: #ff9ba3;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-top-color: #6c63ff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            flex-shrink: 0;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .action-buttons .btn {
            margin-top: 0;
        }

        /* Progress bar */
        .progress-bar-container {
            display: none;
            margin-top: 20px;
            width: 100%;
        }

        .progress-bar-container.show {
            display: block;
        }

        .progress-bar-track {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #6c63ff, #4834d4);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .progress-text {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
            text-align: center;
            margin-top: 6px;
        }

        .latest-images {
            margin-top: 24px;
        }

        .latest-images-header {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .latest-images-grid {
            display: flex;
            gap: 10px;
        }

        .latest-image-item {
            flex: 1;
            aspect-ratio: 1;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.2s ease, border-color 0.2s ease;
            background: repeating-conic-gradient(rgba(255,255,255,0.05) 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
        }

        .latest-image-item:hover {
            transform: scale(1.08);
            border-color: #6c63ff;
        }

        .latest-image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .ui-slider .ui-slider-handle {
            background: #6c63ff;
            border: none;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            top: -5px;
            cursor: pointer;
            outline: none;
        }

        .ui-slider .ui-slider-range {
            background: #6c63ff;
        }

        .ui-widget.ui-widget-content {
            border: none;
        }

        .form-check-input {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            cursor: pointer;
        }

        .form-check-input:checked {
            background: #6c63ff;
            border-color: #6c63ff;
        }

        .batch-grid {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .batch-header-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            padding: 10px 0 16px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 4px;
        }

        .batch-header-cell {
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            color: rgba(255,255,255,0.9);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .batch-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .batch-row:last-child {
            border-bottom: none;
        }

        .batch-cell {
            text-align: center;
        }

        .batch-cell img.batch-img {
            cursor: pointer;
        }

        .batch-cell img {
            width: 100%;
            max-height: 300px;
            object-fit: contain;
            border-radius: 8px;
            background: repeating-conic-gradient(rgba(255,255,255,0.08) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
        }

        .batch-file-name {
            color: rgba(255,255,255,0.5);
            font-size: 12px;
            margin-top: 6px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .batch-error {
            color: #ff9ba3;
            font-size: 14px;
            padding: 40px 20px;
            text-align: center;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,71,87,0.2);
        }
