* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
           
            min-height: 100vh;
            padding: 0px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .header-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .header-icon {
            width: 40px;
            height: 40px;
            fill: #a855f7;
        }

        .header h1 {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #a855f7, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header p {
            color: #64748b;
            font-size: 1.125rem;
        }

        .upload-zone {
            background: white;
            border: 3px dashed #e2e8f0;
            border-radius: 1rem;
            padding: 3rem 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 2rem;
            box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.15);
        }
        .upload-zone {
  position: relative;
  overflow: hidden; /* optional but helps prevent scroll overlap */
}

/* Make file input cover whole upload box */
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* Content (text + button) ko upar dikhane ke liye */
.upload-content {
  position: relative;
  z-index: 10;
}


        .upload-zone:hover,
        .upload-zone.dragging {
            border-color: #a855f7;
            background: rgba(168, 85, 247, 0.03);
            transform: scale(1.01);
        }

        .upload-icon-wrapper {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, #a855f7, #ec4899);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.3);
        }

        .upload-icon {
            width: 40px;
            height: 40px;
            fill: white;
        }

        .upload-zone h2 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: #1e293b;
        }

        .upload-zone p {
            color: #64748b;
            margin-bottom: 1.5rem;
        }

        .btn {
            background: linear-gradient(135deg, #a855f7, #ec4899);
            color: white;
            border: none;
            padding: 0.875rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.3);
        }

        .btn:hover {
            box-shadow: 0 8px 30px -6px rgba(168, 85, 247, 0.4);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: white;
            color: #a855f7;
            border: 2px solid #a855f7;
            box-shadow: none;
        }

        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        .controls {
            background: white;
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.15);
        }

        .controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .quality-label {
            font-weight: 600;
            color: #1e293b;
        }

        .slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #a855f7, #ec4899);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #a855f7, #ec4899);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
        }

        .hint {
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 0.5rem;
        }

        .image-card {
            background: white;
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 4px 20px -4px rgba(168, 85, 247, 0.15);
            transition: all 0.3s ease;
        }

        .image-card:hover {
            box-shadow: 0 8px 30px -6px rgba(168, 85, 247, 0.25);
        }

        .image-content {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .image-preview {
            width: 96px;
            height: 96px;
            object-fit: cover;
            border-radius: 0.5rem;
            border: 2px solid #e2e8f0;
            flex-shrink: 0;
        }

        .image-info {
            flex-grow: 1;
        }

        .image-name {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.5rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .image-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.875rem;
            color: #64748b;
            flex-wrap: wrap;
        }

        .stat-highlight {
            color: #a855f7;
            font-weight: 600;
        }

        .stat-success {
            color: #ec4899;
            font-weight: 600;
        }

        .image-actions {
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        .btn-icon {
            width: 40px;
            height: 40px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon {
            width: 16px;
            height: 16px;
        }

        .download-all {
            text-align: center;
            margin-top: 2rem;
        }

        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: white;
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            display: none;
            animation: slideIn 0.3s ease;
            z-index: 1000;
        }

        .toast.show {
            display: block;
        }

        .toast.error {
            background: #fee2e2;
            color: #991b1b;
        }

        .toast.success {
            background: #dcfce7;
            color: #166534;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .hidden {
            display: none;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }

            .image-content {
                flex-direction: column;
                text-align: center;
            }

            .image-actions {
                width: 100%;
                justify-content: center;
            }
        }

        