        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Manrope', sans-serif;
            background: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .main-container {
            max-width: 800px; /* Reverted back to 800px for desktop */
            margin: 0 auto;
            padding: 32px 16px;
        }

        /* Component Base Styles */
        .component {
            display: none;
            width: 100%;
        }

        .component.active {
            display: block;
        }

        /* Upload Component Styles */
        .upload-zone {
            border: 2px dashed #00C2CB;
            border-radius: 12px;
            padding: 120px 32px;
            text-align: center;
            background: white;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 24px;
        }

        .upload-zone:hover,
        .upload-zone:hover {
            border-color: #00A6B5;
            background: #f8fffe;
        }

        .upload-icon {
            font-size: 48px;
            color: #00C2CB;
            margin-bottom: 16px;
        }

        .upload-text {
            font-size: 20px;
            font-weight: 500;
            color: #333;
            margin-bottom: 8px;
        }

        .upload-subtext {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 16px;
        }

        .choose-files-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #00C2CB;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-family: 'Manrope', sans-serif;
            margin-top: 8px;
        }

        .choose-files-btn:hover {
            background: #00A6B5;
            transform: translateY(-1px);
        }

        .file-input {
            display: none;
        }

        /* Conversion Settings Styles */
        .conversion-settings {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .settings-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 8px 0;
        }

        .settings-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .settings-arrow {
            transition: transform 0.2s ease;
            color: #666;
        }

        .settings-arrow.open {
            transform: rotate(180deg);
        }

        .settings-content {
            display: none;
            padding-top: 20px;
            border-top: 1px solid #eee;
            margin-top: 16px;
        }

        /* Background Color Input Styling */
        input[type="color"]#background-color {
            padding: 2px;
            border-radius: 3px;
        }

        /* Processing Component Styles */
        .file-item {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #e5e7eb;
        }

        .file-info {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .file-icon {
            width: 40px;
            height: 40px;
            background: #f3f4f6;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            font-size: 16px;
            color: #6b7280;
        }

        .file-details {
            flex: 1;
        }

        .file-name {
            font-weight: 420;
            color: #333;
            margin-bottom: 4px;
        }

        .file-size {
            font-size: 12px;
            color: #6b7280;
        }

        .format-selector {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .button-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 12px;
        }

        .format-select {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
            background: white;
            cursor: pointer;
            min-width: 120px;
        }

        .format-dropdown {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: white;
            transition: border-color 0.2s ease;
        }

        .format-dropdown:hover {
            border-color: #00C2CB;
        }

        .output-label {
            font-size: 14px;
            color: #6b7280;
            font-weight: 500;
        }

        .format-display {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .selected-format {
            font-weight: 500;
            color: #00C2CB;
            background: #f0fdff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 13px;
        }

        /* Smart Format Indication */
        .format-dropdown.smart-recommendation {
            background: linear-gradient(135deg, #e8f8f8, #d4f8dc);
            border: 1px solid #00C2CB;
        }

        .format-dropdown.smart-recommendation .selected-format {
            background: #d4f8dc;
            color: #28a745;
            position: relative;
        }



        .format-dropdown.manual-selection {
            background: #fff3cd;
            border: 1px solid #ffc107;
        }

        .format-dropdown.manual-selection .selected-format {
            background: #ffeaa7;
            color: #856404;
        }

        .format-display i {
            color: #6b7280;
            font-size: 12px;
        }

        /* Format Modal */
        .format-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .format-modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }



        .format-modal-header {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .format-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            color: #6b7280;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .format-modal-body {
            display: flex;
            height: 400px;
        }

        .format-categories {
            width: 120px;
            background: #f8f9fa;
            border-right: 1px solid #e5e7eb;
        }

        .category-item {
            padding: 16px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }

        .category-item.active {
            background: white;
            color: #00C2CB;
            font-weight: 600;
        }

        .category-item:hover {
            background: #f0fdff;
            color: #00C2CB;
        }

        .format-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        .format-search-box {
            position: relative;
            margin-bottom: 20px;
        }

        .format-search-input {
            width: 100%;
            padding: 10px 32px 10px 40px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
        }

        .format-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }

        .format-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .format-button {
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: #374151;
            transition: all 0.2s ease;
        }

        .format-button:hover {
            background: #e5e7eb;
            border-color: #d1d5db;
        }

        .format-button.selected {
            background: #3b82f6;
            border-color: #3b82f6;
            color: white;
        }
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .format-modal-body {
            display: flex;
            height: 400px;
        }

        .format-categories {
            width: 120px;
            background: #f8f9fa;
            border-right: 1px solid #e5e7eb;
        }

        .category-item {
            padding: 16px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }

        .category-item.active {
            background: white;
            color: #00C2CB;
            font-weight: 600;
        }

        .category-item:hover {
            background: #f0fdff;
            color: #00C2CB;
        }

        .format-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        .format-search-box {
            position: relative;
            margin-bottom: 20px;
        }

        .format-search-input {
            width: 100%;
            padding: 10px 32px 10px 40px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
        }

        .format-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }

        .format-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .format-button {
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: #374151;
            transition: all 0.2s ease;
        }

        .format-button:hover {
            background: #e5e7eb;
            border-color: #d1d5db;
        }

        .format-button.selected {
            background: #3b82f6;
            border-color: #3b82f6;
            color: white;
        }

        .remove-btn {
            width: 37px;
            height: 37px;
            padding: 9px;
            border: 1px solid #e5e7eb;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
            transition: all 0.2s ease;
            margin: 0;
        }

        .remove-btn:hover {
            background: #fee2e2;
            border-color: #fca5a5;
            color: #dc2626;
        }

        .format-selector {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .button-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 12px;
        }

        /* Mobile responsive styles */
        @media (max-width: 480px) {
            .format-selector {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            
            .button-row {
                margin-left: 0;
                justify-content: center;
                gap: 16px;
            }
            
            .per-image-settings-btn,
            .remove-btn {
                min-width: 44px;
                min-height: 44px;
            }
            
            .per-image-settings-btn {
                width: 44px;
                height: 44px;
            }
            
            .remove-btn {
                width: 44px;
                height: 44px;
                padding: 12px;
            }
        }

        .per-image-settings-btn {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            color: #495057;
            margin: 0;
        }

        .per-image-settings-btn:hover {
            background: #e9ecef;
            color: #495057;
            border-color: #dee2e6;
        }

        .per-image-settings-btn svg {
            width: 16px;
            height: 16px;
            margin-top: 0px;
        }

        /* Image Settings Modal Styles */
        .image-settings-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1001;
        }

        .image-settings-modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .image-settings-modal-header {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .image-settings-header-info {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .image-settings-header-info svg {
            color: #6c757d;
            margin-top: 5px;
        }

        .image-settings-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 0 0 8px 0;
        }

        .image-settings-filename {
            font-size: 14px;
            color: #9ca3af;
            margin: 0;
        }

        .image-settings-modal-body {
            padding: 20px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .image-options-section h4 {
            background: #f8f9fa;
            padding: 12px 16px;
            margin: 0 -20px 20px -20px;
            font-size: 16px;
            font-weight: 600;
            color: #495057;
            border-radius: 0;
        }

        .settings-group {
            margin-bottom: 24px;
        }

        .settings-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }

        .settings-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
            background: white;
            color: #374151;
        }

        .background-color-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .background-color-picker {
            width: 48px;
            height: 40px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 2px;
            cursor: pointer;
            background: none;
        }

        .background-hex-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
        }

        .settings-description {
            font-size: 12px;
            color: #6b7280;
            margin: 8px 0 0 0;
            line-height: 1.4;
        }

        .settings-checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 14px;
            color: #374151;
        }

        .settings-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #00C2CB;
        }

        .image-settings-modal-footer {
            padding: 16px 20px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .reset-settings-btn {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
            padding: 10px 20px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
        }

        .reset-settings-btn:hover {
            background: #e9ecef;
            color: #495057;
        }

        .apply-settings-btn {
            background: rgb(0, 194, 203);
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .apply-settings-btn:hover {
            background: #009aa3;
        }

        .add-more-option {
            background: white;
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 24px;
        }

        .add-more-option:hover {
            border-color: #00C2CB;
            background: #f8fffe;
        }

        .add-more-text {
            color: #6b7280;
            font-weight: 500;
        }

        .ready-to-convert {
            background: #f8fffe;
            border: 2px solid #00C2CB;
            border-radius: 12px;
            padding: 32px;
            text-align: center;
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .ready-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .ready-subtitle {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 24px;
        }

        .convert-btn {
            background: #00C2CB;
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            box-shadow: 0 4px 12px rgba(0, 194, 203, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .convert-btn:hover {
            background: #00A6B5;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 194, 203, 0.4);
        }

        .convert-btn:disabled {
            background: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Download Component Styles */
        .download-section {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-top: 24px;
        }

        .download-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        .download-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: #333;
        }

        .download-header-actions {
            display: flex;
            gap: 12px;
        }

        .convert-more-btn {
            background: #22c55e;
            color: white;
            border: 2px solid transparent;
            border-radius: 12px;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Manrope', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: none;
            position: relative;
            overflow: hidden;
        }

        .convert-more-btn:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .convert-more-btn:hover {
            background: #16a34a;
            transform: translateY(-2px);
            box-shadow: none;
        }

        .convert-more-btn:hover:before {
            left: 100%;
        }

        .convert-more-btn i {
            font-size: 13px;
        }

        .convert-more-top {
            margin-bottom: 20px;
            text-align: center;
        }

        .convert-more-top-btn {
            background: #00C2CB;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 4px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(0, 194, 203, 0.2);
        }

        .convert-more-top-btn:hover {
            background: #00A6B5;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 194, 203, 0.3);
        }

        .convert-more-top-btn i {
            font-size: 14px;
        }

        .clear-downloads-btn {
            background: #f8f9fa;
            color: #6b7280;
            border: 1px solid #e5e7eb;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
        }

        .clear-downloads-btn:hover {
            background: #fee2e2;
            color: #dc2626;
            border-color: #fca5a5;
        }

        .download-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 16px;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            margin-bottom: 12px;
            gap: 16px;
        }

        .download-info {
            flex: 1;
            min-width: 0; /* Allow flex item to shrink below content size */
            width: 100%;
        }

        .download-filename {
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
            word-break: break-all;
            overflow-wrap: anywhere;
            line-height: 1.4;
            width: 100%;
            max-width: 100%;
            display: block;
            hyphens: auto;
        }

        .download-filesize {
            font-size: 12px;
            color: #6b7280;
        }

        .download-btn {
            background: #00C2CB;
            color: white !important;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            text-decoration: none;
            display: flex;
            align-items: center;
            flex-shrink: 0;
            gap: 8px;
        }

        .download-btn:hover {
            background: #00A6B5;
        }

        .download-actions {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid #e5e7eb;
            text-align: center;
            display: flex !important;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 12px;
        }

        .download-all-btn {
            background: #00C2CB;
            color: white !important;
            border: none;
            padding: 14px 24px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .download-all-btn:hover {
            background: #00A6B5;
        }

        .convert-more-actions-btn {
            background: #6b7280;
            color: white !important;
            border: none;
            padding: 14px 24px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .convert-more-actions-btn:hover {
            background: #4b5563;
        }

        /* Image Settings Modal Styles */
        .image-settings-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
        }

        .image-settings-modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .image-settings-modal-header {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .image-settings-header-info {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .image-settings-header-info svg {
            color: #6c757d;
            margin-top: 5px;
        }

        .image-settings-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 0 0 8px 0;
        }

        .image-settings-filename {
            font-size: 14px;
            color: #9ca3af;
            margin: 0;
        }

        .image-settings-modal-body {
            padding: 20px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .image-options-section h4 {
            background: #f8f9fa;
            padding: 12px 16px;
            margin: 0 -20px 20px -20px;
            font-size: 16px;
            font-weight: 600;
            color: #495057;
            border-radius: 0;
        }

        .settings-group {
            margin-bottom: 24px;
        }

        .settings-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }

        .settings-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
            background: white;
            color: #374151;
        }

        .background-color-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .background-color-picker {
            width: 48px;
            height: 40px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 2px;
            cursor: pointer;
            background: none;
        }

        .background-hex-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
        }

        .settings-description {
            font-size: 12px;
            color: #6b7280;
            margin: 8px 0 0 0;
            line-height: 1.4;
        }

        .settings-checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 14px;
            color: #374151;
        }

        .settings-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #00C2CB;
        }

        .image-settings-modal-footer {
            padding: 16px 20px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .reset-settings-btn {
            background: #f8f9fa;
            color: #6c757d;
            border: 1px solid #dee2e6;
            padding: 10px 20px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
        }

        .reset-settings-btn:hover {
            background: #e9ecef;
            color: #495057;
        }

        .apply-settings-btn {
            background: rgb(0, 194, 203);
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Manrope', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .apply-settings-btn:hover {
            background: #009aa3;
        }

        /* Mobile Responsive */
        @media (max-width: 480px) {
            .main-container {
                padding: 16px 12px;
            }

            .upload-zone {
                padding: 40px 20px;
            }

            .upload-text {
                font-size: 18px;
            }

            .file-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .file-info {
                width: 100%;
            }

            .format-selector {
                margin: 0;
                width: 100%;
            }

            .format-dropdown {
                width: 100%;
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .format-display {
                width: 100%;
                justify-content: space-between;
            }



            .format-modal-body {
                height: calc(100% - 80px);
            }

            .format-categories {
                width: 100px;
            }

            .category-item {
                padding: 12px 8px;
                font-size: 12px;
            }

            .format-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .download-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            
            .download-filename {
                font-size: 15px;
                line-height: 1.3;
                width: 100%;
            }
            
            .download-info {
                width: 100%;
            }

            .download-btn,
            .download-all-btn,
            .convert-more-actions-btn {
                width: 100%;
                justify-content: center;
            }

            .download-actions {
                flex-direction: column !important;
                justify-content: initial !important;
                align-items: stretch !important;
                padding: 16px 10px 0px !important;
                width: auto !important;
                gap: 12px;
            }

            .download-actions button {
                width: 100% !important;
                margin: 5px 0 !important;
            }

            .convert-btn {
                padding: 14px 28px;
                font-size: 15px;
            }

            .convert-more-btn, .clear-downloads-btn {
                font-size: 16px;
                padding: 14px 16px;
            }

            .download-header-actions {
                flex-direction: column;
                gap: 8px;
            }

            .add-more-text {
                color: #6b7280;
                font-weight: 500;
                font-size: 16px;
            }

            .convert-more-btn {
                margin-top: 16px;
                align-self: center;
                height: 50px;
                width: 200px;
                text-align: center;
                min-width: auto;
                max-width: none;
                padding: 16px 8px;
                font-size: 16px;
                border-radius: 10px;
            }

            .convert-more-btn i {
                font-size: 14px;
            }





            .clear-downloads-btn {
                width: 100%;
                text-align: center;
                padding: 12px 14px;
                font-size: 13px;
                min-height: 45px;
                font-weight: 500;
            }

            .convert-more-btn i {
                font-size: 16px;
                margin-right: 8px;
            }

            .download-all-btn i {
                font-size: 16px;
                margin-right: 8px;
            }



            .convert-more-top-btn {
                width: 100%;
                padding: 14px 20px;
                font-size: 16px;
            }

            .convert-more-top-btn i {
                font-size: 15px;
            }

            /* Mobile Image Settings Modal */
            .image-settings-modal-content {
                width: 95%;
                max-height: 95vh;
            }

            .image-settings-modal-header {
                padding: 16px;
            }

            .image-settings-header-info {
                gap: 8px;
            }

            .image-settings-modal-title {
                font-size: 16px;
            }

            .image-settings-filename {
                font-size: 12px;
            }

            .image-settings-modal-body {
                padding: 16px;
                max-height: 70vh;
            }

            .image-options-section h4 {
                margin: 0 -16px 16px -16px;
                padding: 10px 16px;
                font-size: 14px;
            }

            .settings-group {
                margin-bottom: 20px;
            }

            .background-color-controls {
                flex-direction: column;
                gap: 8px;
            }

            .background-color-picker {
                width: 100%;
                height: 48px;
            }

            .image-settings-modal-footer {
                padding: 12px 16px;
                flex-direction: column;
                gap: 8px;
            }

            .reset-settings-btn,
            .apply-settings-btn {
                width: 100%;
                padding: 12px 20px;
                font-size: 16px;
            }

            .per-image-settings-btn {
                width: 32px;
                height: 32px;
                padding: 6px;
            }

            .per-image-settings-btn svg {
                width: 14px;
                height: 14px;
            }

        }


/* Resize Input Styles */
.resize-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.resize-input-group {
    flex: 1;
}

.resize-input-label {
    display: block;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 4px;
}

.resize-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.2s ease;
}

.resize-input:focus {
    outline: none;
    border-color: #00C2CB;
    box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
}


/* Notification Area Styles */
.notification-area {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
}

.notification {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.notification.success {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #059669;
}

.notification.info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.notification-icon {
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Add margin-top for 'Maintain aspect ratio' label */
label[for="individual-maintain-aspect-ratio"] {
    margin-top: 5px;
}





/* Mobile text centering for Apply Settings button */
@media (max-width: 480px) {
    .apply-settings-btn {
        text-align: center !important;
        justify-content: center !important;
    }
}

/* Reduce modal height on mobile */
@media (max-width: 480px) {
    .image-settings-modal-content {
        max-height: 75vh !important;
    }
}

/* Better mobile modal layout */
@media (max-width: 480px) {
    .image-settings-modal-content {
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 10px !important;
        border-radius: 10px !important;
    }
    
    .image-settings-modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 12px 16px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .image-settings-modal-footer {
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
        border-top: 1px solid #e5e7eb !important;
        background: white !important;
    }
    
    .image-settings-modal-header {
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Enhanced modal overlay for mobile */
@media (max-width: 480px) {
    .image-settings-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
    }
}

/* Download header font size */
.download-header h3 {
    font-size: 16px !important;
}

/* Mobile clear downloads button styling */
@media (max-width: 480px) {
    .clear-downloads-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
}

/* Category item mobile font size */
@media (max-width: 480px) {
    .category-item {
        font-size: 14px !important;
    }
    
    .category-item.active {
        font-size: 14px !important;
    }
}

/* Close button mobile font size */
@media (max-width: 480px) {
    .close {
        font-size: 28px !important;
    }
    
    .close-btn {
        font-size: 28px !important;
    }
    
    .modal-close {
        font-size: 28px !important;
    }
    
    .image-settings-modal .close {
        font-size: 28px !important;
    }
}

/* Format Modal Mobile Optimization */
@media (max-width: 768px) {
    .format-modal-content {
        width: 90% !important;
        max-width: 400px !important;
        margin: 15px auto !important;
        max-height: 65vh !important;
    }
    
    .format-modal-header {
        padding: 12px 16px !important;
    }
    
    .format-modal-title {
        font-size: 16px !important;
    }
    
    .format-modal-body {
        padding: 12px 16px !important;
        max-height: 45vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .format-modal-footer {
        padding: 12px 16px !important;
    }
}

/* Enhanced Mobile Format Modal for Small Screens */
@media (max-width: 480px) {
    .format-modal {
        padding: 10px !important;
    }
    
    .format-modal-content {
        width: 95% !important;
        margin: 10px auto !important;
        max-height: 60vh !important;
        border-radius: 10px !important;
    }
    
    .format-modal-header {
        padding: 10px 14px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .format-modal-title {
        font-size: 15px !important;
        font-weight: 600 !important;
        padding-top: 20px !important;
    }
    
    .format-modal-body {
        padding: 10px 14px !important;
        max-height: 38vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .format-modal-footer {
        padding: 10px 14px !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    .format-categories {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .category-item {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
    
    .format-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .format-button {
        padding: 8px 6px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        border-radius: 6px !important;
    }
    
    .format-search {
        margin-bottom: 12px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

/* Full Screen Drop Overlay - No Animations */
.fullscreen-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 194, 203, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    /* No animation as per user request */
}

.drop-overlay-content {
    text-align: center;
    color: white;
    font-family: 'Manrope', sans-serif;
}

.drop-overlay-content i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.drop-overlay-text {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.95;
}

/* Removed fadeIn animation as per user request - no animations */

/* Batch Controls Section */
.batch-controls-section {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.batch-settings-toggle {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.batch-settings-toggle:hover {
    background: #e9ecef;
}

.batch-settings-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.batch-settings-arrow {
    color: #666;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.batch-settings-toggle.expanded .batch-settings-arrow {
    transform: rotate(180deg);
}

.batch-settings-content {
    padding: 20px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.batch-settings-content.expanded {
    max-height: 1000px;
}

/* Individual Settings Modal Footer Layout */
.image-settings-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.settings-actions-left,
.settings-actions-center,
.settings-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-actions-center {
    flex: 1;
    justify-content: center;
}

.apply-to-batch-btn {
    background: #ff9500;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.apply-to-batch-btn:hover {
    background: #e6850e;
}

.apply-to-batch-btn i {
    font-size: 16px;
}

/* Apply to All Files Checkbox Styling */
#apply-to-all-label.selected {
    background: #e6f7ff !important;
    border-color: #00C2CB !important;
}

#apply-to-all-label.selected span {
    color: #00C2CB !important;
}


/* Drag and Drop Overlay Styles */
.upload-zone {
    position: relative;
}

/* Drag over styling removed - handled in JavaScript */

/* Upload overlay removed per user request - NO OVERLAY on upload zone */

/* Special styling for ZIP package downloads */
.download-zip-btn {
    background: linear-gradient(45deg, #6f42c1, #8a63d2) !important;
    min-width: 160px;
}

.download-zip-btn:hover {
    background: linear-gradient(45deg, #5a3399, #6f42c1) !important;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.download-zip-info {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

        /* Responsive Design - Mobile and Tablet Optimization */
        @media (max-width: 768px) {
            .main-container {
                max-width: 600px !important;
                padding: 20px 12px !important;
            }
            
            .upload-zone {
                padding: 90px 20px;
            }
            
            .upload-text {
                font-size: 18px;
            }
            
            .file-item {
                flex-direction: column;
                gap: 12px;
            }
            
            .file-item-left {
                align-items: flex-start;
            }
            
            .file-item-actions {
                align-self: stretch;
                justify-content: space-between;
            }
        }
