   .comparison-highlights {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .highlight-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            text-align: center;
            border-top: 4px solid #667eea;
        }
        
        .highlight-card.warning {
            border-top-color: #FF9800;
        }
        
        .highlight-card.success {
            border-top-color: #4CAF50;
        }
        
        .highlight-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .highlight-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #333;
        }
        
        .highlight-text {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .background-options {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            margin: 1.5rem 0;
        }
        
        .background-presets {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        
        .preset-color {
            height: 60px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.8rem;
        }
        
        .preset-color:hover {
            transform: scale(1.05);
        }
        
        .preset-color.active {
            border-color: #333;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .color-picker-custom {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .color-input {
            width: 60px;
            height: 60px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        
        .color-value {
            font-weight: 500;
            color: #333;
        }
        
        .quality-presets {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        
        .quality-preset {
            padding: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .quality-preset:hover {
            border-color: #667eea;
        }
        
        .quality-preset.active {
            border-color: #667eea;
            background: #f0f4ff;
        }
        
        .preset-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #333;
        }
        
        .preset-desc {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 0.5rem;
        }
        
        .preset-size {
            font-size: 0.8rem;
            color: #667eea;
            font-weight: 500;
        }
        
        .transparency-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 1rem;
            margin: 1rem 0;
        }
        
        .warning-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .warning-icon {
            color: #856404;
            font-size: 1.2rem;
        }
        
        .warning-title {
            color: #856404;
            font-weight: 600;
        }
        
        .warning-text {
            color: #856404;
            font-size: 0.9rem;
            line-height: 1.4;
        }
        
        .file-comparison {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 1rem 0;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
        }
        
        .file-original, .file-converted {
            flex: 1;
            text-align: center;
        }
        
        .file-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .file-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
            color: #333;
        }
        
        .file-size {
            font-size: 0.85rem;
            color: #666;
        }
        
        .file-arrow {
            font-size: 1.5rem;
            color: #667eea;
        }
        
        .savings-calculator {
            background: #e8f5e9;
            border: 1px solid #c8e6c9;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .calculator-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .calculator-icon {
            font-size: 1.5rem;
            color: #2e7d32;
        }
        
        .calculator-title {
            color: #2e7d32;
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
        }
        
        .calculator-item {
            padding: 1rem;
            background: white;
            border-radius: 6px;
            border: 1px solid #c8e6c9;
        }
        
        .calc-label {
            display: block;
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 0.5rem;
        }
        
        .calc-value {
            display: block;
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
        }
        
        .calc-value.savings {
            color: #2e7d32;
        }
        
        .format-advantages {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            margin: 1.5rem 0;
        }
        
        .advantages-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .advantage-item {
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 6px;
            border-left: 4px solid #667eea;
        }
        
        .advantage-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #333;
        }
        
        .advantage-desc {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }
        
        
 .color-picker-container {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 2rem;
            margin: 2rem 0;
        }
        
        @media (max-width: 992px) {
            .color-picker-container {
                grid-template-columns: 1fr;
            }
        }
        
        .image-section {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }
        
        .controls-section {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            padding: 1.5rem;
            overflow-y: auto;
            max-height: 500px;
        }
        
        .upload-area {
            border: 2px dashed #667eea;
            border-radius: 12px;
            padding: 3rem 2rem;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9fa;
            text-align: center;
            margin-bottom: 1.5rem;
        }
        
        .upload-area:hover {
            background: #f0f4ff;
            border-color: #5a6fd8;
            transform: translateY(-2px);
        }
        
        .upload-area.dragover {
            background: #e8f4ff;
            border-color: #4c63d6;
        }
        
        .upload-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #667eea;
        }
        
        .upload-text h3 {
            margin: 0 0 0.5rem;
            color: #333;
        }
        
        .upload-text p {
            margin: 0;
            color: #666;
            font-size: 0.9rem;
        }
        
        .image-canvas {
            width: 100%;
            height: 400px;
            border-radius: 8px;
            overflow: hidden;
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            cursor: crosshair;
        }
        
        .image-canvas img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }
        
        .color-pointer {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid white;
            border-radius: 50%;
            pointer-events: none;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
            z-index: 10;
        }
        
        .color-magnifier {
            position: absolute;
            width: 150px;
            height: 150px;
            border: 2px solid white;
            border-radius: 50%;
            overflow: hidden;
            pointer-events: none;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            z-index: 20;
            display: none;
        }
        
        .magnifier-canvas {
            width: 100%;
            height: 100%;
        }
        
        .magnifier-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2px;
            height: 2px;
            background: white;
            border: 1px solid black;
            border-radius: 50%;
        }
        
        .selected-colors {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
            gap: 0.75rem;
            margin: 1.5rem 0;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .color-swatch {
            width: 50px;
            height: 50px;
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .color-swatch:hover {
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .color-swatch.active {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
        }
        
        .color-swatch .remove {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 20px;
            height: 20px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .color-swatch:hover .remove {
            opacity: 1;
        }
        
        .color-display {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid #e0e0e0;
        }
        
        .current-color {
            width: 100%;
            height: 80px;
            border-radius: 6px;
            margin-bottom: 1rem;
            border: 1px solid #e0e0e0;
        }
        
        .color-values {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        .color-value-group {
            background: #f8f9fa;
            padding: 0.75rem;
            border-radius: 6px;
        }
        
        .color-label {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 0.25rem;
            font-weight: 500;
        }
        
        .color-value {
            font-family: monospace;
            font-size: 0.9rem;
            font-weight: 600;
            color: #333;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 3px;
            transition: background 0.3s ease;
        }
        
        .color-value:hover {
            background: rgba(102, 126, 234, 0.1);
        }
        
        .color-value.copied {
            background: #2ecc71;
            color: white;
        }
        
        .palette-section {
            margin: 1.5rem 0;
        }
        
        .palette-section h4 {
            margin-bottom: 1rem;
            color: #333;
        }
        
        .palette-options {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        
        .palette-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }
        
        .palette-btn:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }
        
        .palette-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .palette-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .palette-color {
            height: 40px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .palette-color:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .palette-color .hex {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.25rem;
            font-size: 0.7rem;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .palette-color:hover .hex {
            opacity: 1;
        }
        
        .extraction-options {
            margin: 1.5rem 0;
        }
        
        .extraction-options h4 {
            margin-bottom: 1rem;
            color: #333;
        }
        
        .extraction-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        .extraction-btn {
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        
        .extraction-btn:hover {
            border-color: #667eea;
            background: #f8f9fa;
            transform: translateY(-2px);
        }
        
        .extraction-icon {
            font-size: 1.5rem;
        }
        
        .extraction-name {
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .color-harmony {
            margin: 1.5rem 0;
        }
        
        .harmony-options {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .harmony-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
            white-space: nowrap;
        }
        
        .harmony-btn:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }
        
        .harmony-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .harmony-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
            gap: 0.5rem;
        }
        
        .harmony-color {
            height: 60px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .harmony-color:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .harmony-color .label {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.25rem;
            font-size: 0.7rem;
            text-align: center;
        }
        
        .harmony-color .hex {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.25rem;
            font-size: 0.7rem;
            text-align: center;
        }
        
        .color-history {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e0e0e0;
        }
        
        .history-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
            gap: 0.5rem;
            margin-top: 1rem;
            max-height: 150px;
            overflow-y: auto;
            padding: 0.5rem;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }
        
        .history-color {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .history-color:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .action-buttons {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        
        .action-btn {
            flex: 1;
            padding: 0.75rem;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .action-btn.primary {
            background: #667eea;
            color: white;
        }
        
        .action-btn.primary:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
        }
        
        .action-btn.secondary {
            background: #f8f9fa;
            color: #333;
            border: 1px solid #e0e0e0;
        }
        
        .action-btn.secondary:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }
        
        .action-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #2ecc71;
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 5px;
            z-index: 10000;
            animation: slideIn 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }
        
        .color-names {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .color-name {
            padding: 0.25rem 0.5rem;
            background: #f0f4ff;
            border-radius: 4px;
            font-size: 0.8rem;
            color: #667eea;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .color-name:hover {
            background: #667eea;
            color: white;
        }
        
        .zoom-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 0.5rem;
            z-index: 30;
        }
        
        .zoom-btn {
            width: 30px;
            height: 30px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .zoom-btn:hover {
            background: #f8f9fa;
            border-color: #667eea;
        }
        
        .zoom-value {
            min-width: 50px;
            text-align: center;
            line-height: 30px;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .color-preview {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 0.5rem;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 30;
            display: none;
        }
        
        .preview-swatch {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
        }
        
        .preview-hex {
            font-size: 0.8rem;
            font-weight: 500;
            margin-top: 0.25rem;
        }
        
        .picker-modes {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .picker-mode {
            flex: 1;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            background:var(--primary);
            cursor: pointer;
            text-align: center;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            color: var(--text-primary);
        }
        
        .picker-mode:hover {
            background-color: var(--primary-hover);
        }
        
        .picker-mode.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .batch-upload {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e0e0e0;
        }
        
        .batch-images {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 0.5rem;
            margin-top: 1rem;
            max-height: 150px;
            overflow-y: auto;
            padding: 0.5rem;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }
        
        .batch-image {
            width: 80px;
            height: 80px;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }
        
        .batch-image:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .batch-image.active {
            border-color: #667eea;
        }
        
        .batch-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }