       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .header {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 20px;
        }
        
        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        nav a:hover {
            color: #3498db;
        }
        
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        .upload-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            padding: 2rem;
        }
        
        .upload-box {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .upload-box h2 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }
        
        .upload-label {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 12px 24px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-bottom: 1.5rem;
        }
        
        .upload-label:hover {
            background-color: #2980b9;
        }
        
        .image-preview-container {
            display: flex;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .image-preview {
            flex: 2;
            position: relative;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f8f9fa;
            height: 400px;
        }
        
        #originalImage {
            max-width: 100%;
            max-height: 100%;
            display: none;
            cursor: crosshair;
        }
        
        #imageCanvas {
            max-width: 100%;
            max-height: 100%;
            display: none;
            cursor: crosshair;
        }
        
        .upload-prompt {
            text-align: center;
            color: #777;
            padding: 2rem;
        }
        
        .color-info {
            flex: 1;
            background: white;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .color-display {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            margin: 0 auto 1.5rem;
            border: 1px solid #ddd;
            background-color: #f8f9fa;
        }
        
        .color-values {
            width: 100%;
        }
        
        .code-group {
            margin-bottom: 1.5rem;
        }
        
        .code-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #555;
            font-size: 0.9rem;
        }
        
        .code-input {
            display: flex;
        }
        
        .code-input input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: monospace;
            font-size: 0.9rem;
        }
        
        .color-palette-container {
            background: white;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-top: 2rem;
        }
        
        .palette-title {
            margin-bottom: 1.5rem;
            color: #2c3e50;
            text-align: center;
        }
        
        .color-palette {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .color-swatch {
            width: 60px;
            height: 60px;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            position: relative;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .color-swatch:hover {
            transform: scale(1.05);
        }
        
        .save-palette {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
            margin-top: 1.5rem;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        
        .save-palette:hover {
            background-color: #27ae60;
        }
        
        .footer {
            background-color: #6e8efb;
            color: white;
            padding: 2rem 0 0;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            padding: 0 1rem;
        }
        
        .footer-section {
            padding: 0 1rem;
        }
        
        .footer-section h3 {
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }
        
        .footer-section p, .footer-section a {
            color: #ecf0f1;
            font-size: 0.9rem;
        }
        
        .footer-section a {
            text-decoration: none;
            display: block;
            margin-bottom: 8px;
            transition: color 0.3s;
        }
        
        .footer-section a:hover {
            color: #3498db;
        }
        
        .footer-bottom {
            text-align: center;
            padding: 1rem;
            margin-top: 2rem;
            background-color: #1a252f;
            font-size: 0.9rem;
        }
        
        /* Magnifier styles */
        .magnifier {
            position: absolute;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 2px solid #fff;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            z-index: 10;
            display: none;
            overflow: hidden;
        }
        
        .magnifier-inner {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .magnifier-preview {
            position: absolute;
            width: 400%;
            height: 400%;
            transform: translate(-37.5%, -37.5%);
            pointer-events: none;
        }
        
        .magnifier-lens {
            position: absolute;
            width: 25%;
            height: 25%;
            left: 37.5%;
            top: 37.5%;
            border: 2px solid rgba(255, 255, 255, 0.8);
            box-sizing: border-box;
            pointer-events: none;
        }
        
        /* Palette section headers */
        .palette-section-title {
            width: 100%;
            text-align: left;
            margin: 20px 0 10px;
            font-size: 1rem;
            color: #555;
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .image-preview-container {
                flex-direction: column;
            }
            
            .image-preview, .color-info {
                height: auto;
                min-height: 300px;
            }
            
            .magnifier {
                width: 80px;
                height: 80px;
            }
        }
