:root {
 
            --accent-color: #7209b7;
            --resolution-color: #4361ee;
            --color-depth-color: #4cc9f0;
            --pixel-density-color: #f72585;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
        }
         .page-header {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.4) 0%, rgba(58, 12, 163, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(67, 97, 238, 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);
        }
        .resolution-visualization {
            position: relative;
            height: 300px;
            background-color: rgba(67, 97, 238, 0.05);
            border: 2px dashed rgba(67, 97, 238, 0.3);
            border-radius: 12px;
            margin: 2rem 0;
            overflow: hidden;
        }
        .pixel-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
            background-size: 20px 20px;
        }
        .resolution-label {
            position: absolute;
            background-color: var(--resolution-color);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            z-index: 10;
        }
        .width-label {
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
        }
        .height-label {
            left: -70px;
            top: 50%;
            transform: translateY(-50%);
            writing-mode: vertical-rl;
        }
        .resolution-display {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(255, 255, 255, 0.9);
            padding: 1.5rem 2.5rem;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            text-align: center;
            min-width: 200px;
        }
        .resolution-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--resolution-color);
            font-family: 'Courier New', monospace;
        }
        .resolution-unit {
            font-size: 1rem;
            color: var(--text-muted);
            margin-left: 0.5rem;
        }
        .resolution-label-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-color);
            margin-top: 0.5rem;
        }
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        .stat-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 3px 8px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background-color: rgba(67, 97, 238, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--resolution-color);
        }
        .stat-title {
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 0.25rem;
        }
        .stat-subtitle {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--resolution-color);
            margin-bottom: 0.5rem;
            font-family: 'Courier New', monospace;
        }
        .color-depth-stat .stat-value {
            color: var(--color-depth-color);
        }
        .color-depth-stat .stat-icon {
            background-color: rgba(76, 201, 240, 0.1);
            color: var(--color-depth-color);
        }
        .pixel-density-stat .stat-value {
            color: var(--pixel-density-color);
        }
        .pixel-density-stat .stat-icon {
            background-color: rgba(247, 37, 133, 0.1);
            color: var(--pixel-density-color);
        }
        .test-patterns-container {
            background-color: var(--light-gray);
            border-radius: 10px;
            padding: 1.5rem;
            margin: 2rem 0;
        }
        .test-patterns-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        .test-pattern-item {
            flex: 1;
            min-width: 150px;
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s;
            cursor: pointer;
        }
        .test-pattern-item.active {
            border-color: var(--resolution-color);
            background-color: rgba(67, 97, 238, 0.05);
            transform: scale(1.05);
        }
        .test-pattern-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        .test-pattern-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .test-pattern-display {
            height: 400px;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            margin: 2rem 0;
            overflow: hidden;
            position: relative;
        }
        .pattern-container {
            width: 100%;
            height: 100%;
            display: none;
        }
        .pattern-container.active {
            display: block;
        }
        .color-test {
            display: flex;
            height: 100%;
        }
        .color-column {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .color-cell {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.9rem;
            transition: all 0.3s;
        }
        .color-cell:hover {
            transform: scale(1.02);
            box-shadow: inset 0 0 0 2px white;
        }
        .gradient-test {
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                #ff0000 0%, #ff8000 12.5%, #ffff00 25%,
                #80ff00 37.5%, #00ff00 50%, #00ff80 62.5%,
                #00ffff 75%, #0080ff 87.5%, #0000ff 100%);
        }
        .pixel-grid-test {
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(20, 1fr);
            grid-template-rows: repeat(20, 1fr);
        }
        .pixel-cell {
            border: 1px solid rgba(0,0,0,0.1);
        }
        .pixel-cell:nth-child(odd) {
            background-color: #000;
        }
        .text-sharpness-test {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            background-color: white;
        }
        .text-line {
            margin: 0.5rem 0;
            text-align: center;
        }
        .text-small {
            font-size: 10px;
        }
        .text-medium {
            font-size: 14px;
        }
        .text-large {
            font-size: 24px;
        }
        .text-xlarge {
            font-size: 36px;
        }
        .test-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 2rem 0;
        }
        .test-button {
            background-color: rgba(67, 97, 238, 0.1);
            border: 2px solid rgba(67, 97, 238, 0.3);
            border-radius: 8px;
            padding: 1rem 1.5rem;
            font-weight: 600;
            color: var(--resolution-color);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
        }
        .test-button:hover {
            background-color: rgba(67, 97, 238, 0.2);
            transform: translateY(-2px);
        }
        .test-button i {
            margin-right: 0.75rem;
        }
        @media (max-width: 768px) {
            .resolution-visualization {
                height: 250px;
            }
            .stats-container {
                grid-template-columns: 1fr;
            }
            .test-patterns-list {
                flex-direction: column;
            }
            .resolution-value {
                font-size: 2rem;
            }
            .test-pattern-display {
                height: 300px;
            }
        }
        .settings-panel {
            background-color: var(--light-gray);
            border-radius: 10px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        .setting-item:last-child {
            border-bottom: none;
        }
        .setting-label {
            font-weight: 600;
        }
        .setting-description {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 0.25rem;
        }
        .real-time-indicator {
            display: inline-flex;
            align-items: center;
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--resolution-color);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .pulse-dot {
            width: 8px;
            height: 8px;
            background-color: var(--resolution-color);
            border-radius: 50%;
            margin-right: 0.5rem;
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.3; }
            100% { opacity: 1; }
        }
        .score-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 2rem 0;
        }
        .score-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: conic-gradient(var(--resolution-color) 0% 75%, #e9ecef 75% 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .score-circle-inner {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--resolution-color);
        }
        .score-label {
            text-align: center;
            margin-top: 1rem;
            font-weight: 600;
        }
        .color-blindness-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            grid-gap: 5px;
            margin: 1rem 0;
        }
        .color-blindness-cell {
            aspect-ratio: 1;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.8rem;
        }