:root { 
            --secondary-color: #f8d7da;
            --accent-color: #c2185b;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --colorful-gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
        }
        .page-header {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(232, 62, 140, 0.2) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(232, 62, 140, 0.2);
            position: relative;
            overflow: hidden;  color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.15);
        }
        .color-preview {
            width: 100%;
            height: 120px;
            border-radius: 8px;
            border: 1px solid #ddd;
            margin-bottom: 1.5rem;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .color-info {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid var(--border-color);
        }
        .color-value {
            font-family: 'Courier New', monospace;
            font-size: 1.2rem;
            font-weight: 600;
            padding: 0.75rem;
            background-color: white;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            text-align: center;
            border: 1px solid #eee;
            color: var(--primary-color);
        }
        .color-label {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 1rem;
        }
        .color-slider-container {
            margin-bottom: 1.5rem;
        }
        .slider-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        .slider-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        .slider {
            width: 100%;
            height: 10px;
            border-radius: 5px;
            outline: none;
            -webkit-appearance: none;
        }
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            border: 2px solid var(--primary-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        #redSlider {
            background: linear-gradient(to right, #000000, #ff0000);
        }
        #greenSlider {
            background: linear-gradient(to right, #000000, #00ff00);
        }
        #blueSlider {
            background: linear-gradient(to right, #000000, #0000ff);
        }
        .color-wheel-container {
            text-align: center;
            margin: 1.5rem 0;
        }
        .color-wheel {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
            margin: 0 auto;
            position: relative;
            border: 8px solid #f0f0f0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .color-wheel-pointer {
            position: absolute;
            width: 20px;
            height: 20px;
            background: white;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
        }
        .color-square-container {
            text-align: center;
            margin: 1.5rem 0;
        }
        .color-square {
            width: 250px;
            height: 250px;
            margin: 0 auto;
            position: relative;
            border: 8px solid #f0f0f0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .color-square-pointer {
            position: absolute;
            width: 20px;
            height: 20px;
            background: white;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            z-index: 10;
        }
        .color-palette {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 0.75rem;
            margin: 1.5rem 0;
        }
        .color-swatch {
            height: 70px;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid #ddd;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        .color-swatch:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .color-swatch::after {
            content: attr(data-color);
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.7);
            color: white;
            font-size: 0.7rem;
            padding: 2px;
            text-align: center;
            border-radius: 0 0 6px 6px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .color-swatch:hover::after {
            opacity: 1;
        }
        .color-breakdown {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .breakdown-item {
            background: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            padding: 1rem;
            text-align: center;
        }
        .breakdown-value {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .breakdown-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .conversion-toggle {
            display: flex;
            justify-content: center;
            margin: 1.5rem 0;
        }
        .toggle-label {
            display: flex;
            align-items: center;
            margin: 0 1rem;
            font-weight: 600;
            color: var(--text-color);
        }
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            margin: 0 1rem;
        }
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider-toggle {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 30px;
        }
        .slider-toggle:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider-toggle {
            background-color: var(--primary-color);
        }
        input:checked + .slider-toggle:before {
            transform: translateX(30px);
        }
        .formula-box {
            background-color: rgba(255, 193, 7, 0.1);
            border-left: 4px solid var(--warning-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
        }
        @media (max-width: 768px) {
            .color-palette {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
            }
            .color-wheel, .color-square {
                width: 200px;
                height: 200px;
            }
        }
        .color-examples {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .color-example {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: transform 0.3s;
        }
        .color-example:hover {
            transform: translateY(-5px);
        }
        .example-swatch {
            width: 100%;
            height: 60px;
            border-radius: 6px;
            border: 1px solid #ddd;
            margin-bottom: 0.5rem;
        }
        .color-harmonies {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .harmony-item {
            text-align: center;
            cursor: pointer;
        }
        .harmony-swatch {
            width: 100%;
            height: 40px;
            border-radius: 4px;
            border: 1px solid #ddd;
            margin-bottom: 0.5rem;
        }
        .color-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .rgb-badge {
            background-color: rgba(255, 107, 107, 0.1);
            color: #ff6b6b;
        }
        .hsl-badge {
            background-color: rgba(232, 62, 140, 0.1);
            color: var(--primary-color);
        }
        .hex-badge {
            background-color: rgba(78, 205, 196, 0.1);
            color: #4ecdc4;
        }
        .css-code {
            background-color: #2d2d2d;
            color: #f8f8f2;
            padding: 1rem;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
            margin: 1.5rem 0;
        }
        .css-code .property {
            color: #66d9ef;
        }
        .css-code .value {
            color: #a6e22e;
        }
        .css-code .comment {
            color: #75715e;
        }
        .intensity-bar {
            height: 20px;
            border-radius: 10px;
            margin: 0.5rem 0;
            position: relative;
        }
        .intensity-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
        }
        .color-history {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin: 1rem 0;
        }
        .history-swatch {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            border: 1px solid #ddd;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .history-swatch:hover {
            transform: scale(1.2);
        }