        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: white;
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .page-header {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(44, 125, 160, 0.4) 100%);
        }
        
        .tool-card {
            background: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .color-test-container {
            position: relative;
            width: 100%;
            height: 500px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: background-color 0.5s ease;
        }
        
        .color-test-info {
            position: absolute;
            top: 20px;
            left: 20px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px;
            border-radius: 6px;
            max-width: 300px;
            z-index: 10;
        }
        
        .color-test-info h4 {
            margin-bottom: 0.5rem;
            color: white;
        }
        
        .color-test-info p {
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .color-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .color-swatch {
            height: 120px;
            border-radius: 6px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            position: relative;
            overflow: hidden;
        }
        
        .color-swatch:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .color-swatch.active {
            transform: scale(1.05);
            box-shadow: 0 0 0 3px var(--primary-color), 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .color-swatch::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
        }
        
        .test-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            align-items: center;
        }
        
        .control-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }
        
        .test-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }
        
        .test-btn-primary {
            background-color: var(--primary-color);
            color: white;
            border: none;
        }
        
        .test-btn-primary:hover {
            background-color: var(--accent-color);
            transform: translateY(-2px);
        }
        
        .test-btn-secondary {
            background-color: white;
            color: var(--text-color);
            border: 1px solid var(--border-color);
        }
        
        .test-btn-secondary:hover {
            background-color: var(--light-gray);
        }
        
        .test-btn-danger {
            background-color: var(--danger-color);
            color: white;
            border: none;
        }
        
        .test-btn-danger:hover {
            background-color: #c82333;
            transform: translateY(-2px);
        }
        
        .fullscreen-toggle {
            margin-left: auto;
        }
        
        .color-picker-container {
            margin-bottom: 1.5rem;
        }
        
        .color-picker-label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: block;
        }
        
        .custom-color-input {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .custom-color-preview {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            border: 2px solid var(--border-color);
            cursor: pointer;
        }
        
        .gradient-test {
            background: linear-gradient(90deg, #000000 0%, #ffffff 100%);
            height: 150px;
            border-radius: 6px;
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
        }
        
        .gradient-test::after {
            content: 'Gradient Test (Left to Right: Black to White)';
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .test-instructions {
            background-color: rgba(44, 125, 160, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .test-steps {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .test-step {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }
        
        .step-icon {
            width: 36px;
            height: 36px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .detection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .detection-item {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1rem;
            text-align: center;
        }
        
        .detection-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        
        .issue-log {
            background-color: #fff8e1;
            border-radius: 6px;
            padding: 1rem;
            margin: 1.5rem 0;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .issue-log h5 {
            margin-bottom: 0.5rem;
            color: var(--warning-color);
        }
        
        .issue-item {
            padding: 0.5rem;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            font-size: 0.9rem;
        }
        
        .issue-item:last-child {
            border-bottom: none;
        }
        
        .color-code {
            font-family: monospace;
            background-color: #f1f1f1;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            .color-test-container {
                height: 400px;
            }
            
            .test-controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .fullscreen-toggle {
                margin-left: 0;
            }
            
            .color-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .color-test-container {
                height: 300px;
            }
            
            .color-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .tool-card {
                padding: 1.5rem;
            }
        }
        
        .fullscreen-mode {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 9999;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .fullscreen-controls {
            position: fixed;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 1rem;
            z-index: 10000;
        }
        
        .fullscreen-close {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            background-color: rgba(0,0,0,0.7);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .fullscreen-instruction {
            position: fixed;
            top: 20px;
            left: 20px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            padding: 15px;
            border-radius: 6px;
            max-width: 400px;
            z-index: 10000;
        }
        
        .uniformity-issue {
            position: absolute;
            border: 2px dashed red;
            pointer-events: none;
            z-index: 5;
        }
        
        .issue-marker {
            position: absolute;
            width: 20px;
            height: 20px;
            background-color: red;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 6;
            box-shadow: 0 0 0 2px white;
        }
    