﻿/* Workspace */
        .workspace {
            max-width: 1140px;
            width: 100%;
            margin: 1.5rem auto 4rem;
            padding: 0 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }

        /* Glass Cards */
        .glass-card {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-xl);
            padding: 2rem;
            box-shadow: var(--shadow-card);
            position: relative;
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        }

        /* Dropzone */
        .dropzone {
            border: 2px dashed rgba(16, 185, 129, 0.35);
            border-radius: var(--radius-lg);
            padding: 3.5rem 2rem;
            text-align: center;
            background: rgba(17, 24, 39, 0.4);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            outline: none;
        }

        .dropzone:hover, .dropzone.dragover {
            border-color: var(--accent-emerald);
            background: rgba(16, 185, 129, 0.08);
            box-shadow: var(--shadow-glow);
            transform: translateY(-2px);
        }

        .dropzone-icon {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            background: rgba(16, 185, 129, 0.12);
            color: #34d399;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.25rem;
            margin: 0 auto 1.5rem;
            border: 1px solid rgba(16, 185, 129, 0.25);
            transition: transform 0.25s ease;
        }

        .dropzone:hover .dropzone-icon {
            transform: scale(1.08);
            color: #6ee7b7;
        }

        .dropzone-title {
            font-size: 1.35rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .dropzone-sub {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 1.25rem;
        }

        .btn-choose {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.6rem;
            border-radius: var(--radius-md);
            background: var(--accent-gradient);
            color: #064e3b;
            font-weight: 700;
            font-size: 0.92rem;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
            transition: all 0.2s ease;
        }

        .btn-choose:hover {
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
            transform: translateY(-1px);
        }

        .file-input {
            display: none;
        }

        /* Config Grid */
        .config-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-glass);
            margin-bottom: 1.5rem;
        }

        .control-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .control-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .control-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            padding: 0.15rem 0.55rem;
            border-radius: var(--radius-sm);
            background: rgba(16, 185, 129, 0.18);
            color: #6ee7b7;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .custom-select {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid var(--border-glass);
            color: var(--text-main);
            padding: 0.75rem 1rem;
            border-radius: var(--radius-md);
            font-size: 0.92rem;
            font-family: inherit;
            outline: none;
            cursor: pointer;
        }

        .custom-select:focus {
            border-color: var(--accent-emerald);
        }

        .range-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.1);
            outline: none;
            margin: 0.65rem 0 0.25rem;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent-emerald);
            cursor: pointer;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
            border: 2px solid #fff;
            transition: transform 0.1s ease;
        }

        .range-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        /* Batch Actions Header */
        .batch-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }

        .batch-summary {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .batch-summary span {
            color: var(--accent-emerald);
        }

        .batch-buttons {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .btn-action {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.65rem 1.25rem;
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid var(--border-glass);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-action:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .btn-action-primary {
            background: var(--accent-gradient);
            color: #064e3b;
            font-weight: 700;
            border: none;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
        }

        .btn-action-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        }

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

        .btn-action-zip {
            background: rgba(6, 182, 212, 0.15);
            border-color: rgba(6, 182, 212, 0.3);
            color: #38bdf8;
        }

        .btn-action-zip:hover {
            background: rgba(6, 182, 212, 0.25);
            color: #fff;
        }

        /* Overall Progress Bar */
        .batch-progress {
            display: none;
            margin-bottom: 1.5rem;
            animation: fadeIn 0.25s ease;
        }

        .batch-progress-track {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .batch-progress-fill {
            height: 100%;
            width: 0%;
            background: var(--accent-gradient);
            border-radius: 4px;
            transition: width 0.2s ease;
        }

        .batch-progress-text {
            font-size: 0.82rem;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
        }

        /* Image Items Table / List */
        .image-items-list {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .image-row {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-md);
            padding: 0.85rem 1.25rem;
            display: grid;
            grid-template-columns: 56px 1fr auto auto auto;
            align-items: center;
            gap: 1.25rem;
            transition: border-color 0.2s;
        }

        .image-row:hover {
            border-color: rgba(16, 185, 129, 0.35);
        }

        .image-thumb-box {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-sm);
            background: #000;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-glass);
        }

        .image-thumb-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .image-name-col h5 {
            font-size: 0.92rem;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 300px;
        }

        .image-name-col p {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
        }

        .size-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82rem;
            white-space: nowrap;
        }

        .size-orig {
            color: var(--text-muted);
        }

        .size-webp {
            color: var(--accent-emerald);
            font-weight: 700;
        }

        .saving-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 0.25rem 0.6rem;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
            white-space: nowrap;
        }

        .status-badge {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .btn-download-single {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
            padding: 0.45rem 0.85rem;
            border-radius: var(--radius-sm);
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            transition: all 0.2s ease;
        }

        .btn-download-single:hover {
            background: rgba(16, 185, 129, 0.3);
            color: #fff;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }