  
        /* Test Tabs */
        .test-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .test-tab {
            padding: 0.75rem 1.5rem;
            background-color: var(--light-gray);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .test-tab:hover {
            background-color: #e9ecef;
        }
        
        .test-tab.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* Test Area */
        .test-area {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 2rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
            min-height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        
        .test-instructions {
            margin-bottom: 1.5rem;
            max-width: 600px;
        }
        
        .test-content {
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .test-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        /* Memory Test */
        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .memory-card {
            aspect-ratio: 1/1;
            background-color: var(--primary-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .memory-card .front {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            backface-visibility: hidden;
            transition: transform 0.6s;
            transform: rotateY(0deg);
            background-color: var(--primary-color);
        }
        
        .memory-card .back {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            backface-visibility: hidden;
            transition: transform 0.6s;
            transform: rotateY(180deg);
            background-color:var(--primary-color);
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .memory-card.flipped .front {
            transform: rotateY(180deg);
        }
        
        .memory-card.flipped .back {
            transform: rotateY(0deg);
        }
        
        .memory-card.matched {
            background-color: var(--correct-color);
            cursor: default;
        }
        
        .memory-card.matched .back {
            background-color: var(--correct-color);
            color: white;
        }
        
        /* Attention Test */
        .stroop-test {
            font-size: 2rem;
            font-weight: 700;
            padding: 1.5rem;
            border-radius: 8px;
            background-color: white;
            margin: 1rem 0;
        }
        
        .stroop-options {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }
        
        .stroop-option {
            padding: 0.75rem 1.5rem;
            background-color: white;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .stroop-option:hover {
            background-color: var(--light-gray);
        }
        
        .stroop-option.selected {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        /* Reasoning Test */
        .matrix-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .matrix-item {
            aspect-ratio: 1/1;
            background-color: white;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .matrix-item:hover {
            border-color: var(--primary-color);
        }
        
        .matrix-item.selected {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .matrix-item.correct {
            border-color: var(--correct-color);
            background-color: rgba(40, 167, 69, 0.1);
        }
        
        .matrix-item.incorrect {
            border-color: var(--incorrect-color);
            background-color: rgba(220, 53, 69, 0.1);
        }
        
        .matrix-item img {
            max-width: 80%;
            max-height: 80%;
        }
        
        .matrix-pattern {
            width: 80%;
            height: 80%;
            background-color: #ccc;
            border-radius: 4px;
        }
        
        .matrix-pattern.circle {
            border-radius: 50%;
        }
        
        .matrix-pattern.triangle {
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        }
        
        .matrix-pattern.diamond {
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        }
        
        .reasoning-progress {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        /* Result Area */
        .result-container {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .result-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        
        .result-content {
            font-family: 'Courier New', monospace;
            word-break: break-all;
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 0.95rem;
        }
        
        .copy-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 0.4rem 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .copy-btn:hover {
            background-color: var(--light-gray);
        }
        
        /* Content Sections */
        .section-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .usage-step {
            display: flex;
            margin-bottom: 1.5rem;
            align-items: flex-start;
        }
        
        .step-number {
            width: 28px;
            height: 28px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .info-box {
            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;
        }
        
        .security-alert {
            background-color: #d4edda;
            border-left: 3px solid #28a745;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
       
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.5rem;
            }
            
            .memory-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .matrix-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        
        /* Cognitive Skills */
        .cognitive-skills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .skill-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .skill-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        
        .skill-score {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        
        .skill-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            overflow: hidden;
        }
        
        .skill-progress {
            height: 100%;
            background-color: var(--primary-color);
            width: 0%;
            transition: width 1s ease;
        }
        
        .skill-desc {
            color: var(--text-muted);
        }
        
        /* Chart container */
        .chart-container {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid var(--border-color);
            height: 300px;
        }
        
        .chart-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
    