 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 32px;
        }

        .header-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .palette-icon {
            width: 32px;
            height: 32px;
            color: #4f46e5;
        }

        .title {
            font-size: 2.25rem;
            font-weight: bold;
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }

        .subtitle {
            color: #6b7280;
            font-size: 1.125rem;
        }

        .controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            margin-bottom: 32px;
        }

        @media (min-width: 1024px) {
            .controls {
                flex-direction: row;
                justify-content: center;
            }
        }

        .control-group {
            background: white;
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
        }

        .button-group {
            display: flex;
            gap: 8px;
        }

        .control-button {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .control-button.active {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: white;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transform: scale(1.05);
        }

        .control-button:not(.active) {
            color: #6b7280;
            background: transparent;
        }

        .control-button:not(.active):hover {
            color: #374151;
            background: #f9fafb;
        }

        .filter-controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
        }

        .pastel-button.active {
            background: linear-gradient(135deg, #f472b6 0%, #a855f7 100%);
        }

        .contrast-button.active {
            background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
        }

        .color-count {
            text-align: center;
            margin-bottom: 24px;
        }

        .count-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: white;
            padding: 8px 16px;
            border-radius: 9999px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
        }

        .count-dot {
            width: 12px;
            height: 12px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-radius: 50%;
        }

        .count-text {
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
        }

        .color-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        @media (min-width: 640px) {
            .color-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (min-width: 768px) {
            .color-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .color-grid {
                grid-template-columns: repeat(8, 1fr);
            }
        }

        @media (min-width: 1280px) {
            .color-grid {
                grid-template-columns: repeat(10, 1fr);
            }
        }

        .color-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

        .color-card:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            transform: scale(1.05);
        }

        .color-display {
            height: 96px;
            width: 100%;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .color-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .color-card:hover .color-overlay {
            background: rgba(0, 0, 0, 0.2);
        }

        .copy-icon {
            width: 24px;
            height: 24px;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .color-card:hover .copy-icon {
            opacity: 1;
        }

        .category-indicators {
            position: absolute;
            top: 8px;
            left: 8px;
            display: flex;
            gap: 4px;
        }

        .category-badge {
            color: white;
            font-size: 0.75rem;
            padding: 4px 8px;
            border-radius: 9999px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
        }

        .category-badge.contrast {
            background: #f97316;
        }

        .category-badge.pastel {
            background: #ec4899;
        }

        .category-icon {
            width: 12px;
            height: 12px;
        }

        .color-info {
            padding: 12px;
        }

        .color-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 0.875rem;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .color-value {
            font-size: 0.75rem;
            color: #6b7280;
            font-family: 'Courier New', monospace;
            cursor: pointer;
            transition: color 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .color-value:hover {
            color: #4f46e5;
        }

        .color-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 4px;
        }

        .color-tag {
            font-size: 0.75rem;
            font-weight: 500;
        }

        .color-tag.contrast {
            color: #ea580c;
        }

        .color-tag.pastel {
            color: #db2777;
        }

        .copied-notification {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #10b981;
            color: white;
            font-size: 0.75rem;
            padding: 4px 8px;
            border-radius: 9999px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .footer {
            text-align: center;
            margin-top: 48px;
            color: #fff;
        }

        .footer p {
            margin-bottom: 8px;
        }

        .icon {
            width: 20px;
            height: 20px;
        }

        .hidden {
            display: none;
        }
        
        
        
        .footer-h {
            max-width: 800px;
            width: 100%;
            padding: 2.5rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            color: white;
            line-height: 1.6;
            position: relative;
            overflow: hidden;
        }

        .footer-h::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            pointer-events: none;
        }

        .footer-h h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2.5rem;
            text-align: center;
            background: linear-gradient(45deg, #fff, #e0e7ff, #fbbf24);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 1;
        }

        .footer-h ul {
            list-style: none;
            margin-bottom: 2.5rem;
            position: relative;
            z-index: 1;
        }

        .footer-h li {
            position: relative;
            padding: 1.25rem 1.25rem 1.25rem 3rem;
            margin-bottom: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .footer-h li:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(10px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        }

        .footer-h li::before {
            content: '🎨';
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .footer-h li:hover::before {
            transform: translateY(-50%) rotate(15deg) scale(1.2);
        }

        .color-format {
            display: inline-block;
            background: linear-gradient(45deg, #ff6b6b, #feca57, #48cae4);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 25px;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .color-format:hover {
            transform: scale(1.1) translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .description {
            background: rgba(255, 255, 255, 0.15);
            padding: 2rem;
            border-radius: 15px;
            border-left: 5px solid #feca57;
            font-size: 1.1rem;
            line-height: 1.8;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin: 0;
            position: relative;
            z-index: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .description::before {
            content: '💡';
            position: absolute;
            top: -10px;
            left: 20px;
            background: linear-gradient(45deg, #feca57, #ff9a56);
            padding: 0.5rem;
            border-radius: 50%;
            font-size: 1.2rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }

            .footer-h {
                padding: 2rem;
            }

            .footer-h h2 {
                font-size: 2rem;
                margin-bottom: 2rem;
            }

            .footer-h li {
                padding: 1rem 1rem 1rem 2.5rem;
                margin-bottom: 0.75rem;
            }

            .footer-h li::before {
                left: 0.75rem;
                font-size: 1.25rem;
            }

            .description {
                padding: 1.5rem;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .footer-h {
                padding: 1.5rem;
            }

            .footer-h h2 {
                font-size: 1.75rem;
                margin-bottom: 1.5rem;
            }

            .footer-h li {
                padding: 0.75rem 0.75rem 0.75rem 2rem;
            }

            .footer-h li::before {
                left: 0.5rem;
                font-size: 1rem;
            }

            .color-format {
                padding: 0.3rem 0.75rem;
                font-size: 0.75rem;
            }

            .description {
                padding: 1.25rem;
                font-size: 0.95rem;
            }
        }

        /* Animation for page load */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer-h {
            animation: fadeInUp 0.8s ease-out;
        }

        .footer-h li {
            animation: fadeInUp 0.6s ease-out backwards;
        }

        .footer-h li:nth-child(1) { animation-delay: 0.1s; }
        .footer-h li:nth-child(2) { animation-delay: 0.2s; }
        .footer-h li:nth-child(3) { animation-delay: 0.3s; }
        .footer-h li:nth-child(4) { animation-delay: 0.4s; }
        .footer-h li:nth-child(5) { animation-delay: 0.5s; }
        .footer-h li:nth-child(6) { animation-delay: 0.6s; }