        :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;
            --medical-red: #dc3545;
            --medical-green: #198754;
            --medical-yellow: #ffc107;
            --medical-orange: #fd7e14;
        }
             
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 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);
        }
         
        .medical-info-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--medical-red);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
         
 
       
        /* Reference table */
        .reference-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .reference-table th, .reference-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .reference-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .reference-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Age category indicators */
        .age-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .age-child {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .age-adult {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .age-elderly {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* Chart styling */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Brain Age Test Specific Styles */
        .test-section {
            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);
        }
        
        .test-header {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .cognitive-test-card {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(44, 125, 160, 0.2);
        }
        
        .test-instructions {
            background-color: rgba(255, 193, 7, 0.1);
            border-left: 3px solid var(--warning-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .test-button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 1rem 2rem;
            font-weight: 600;
            transition: all 0.3s;
            cursor: pointer;
            display: inline-block;
            text-align: center;
            margin: 0.5rem;
        }
        
        .test-button:hover {
            background-color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .test-button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .test-progress {
            height: 8px;
            background-color: var(--light-gray);
            border-radius: 4px;
            margin: 1.5rem 0;
            overflow: hidden;
        }
        
        .test-progress-bar {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        
        .test-display-area {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        
        .stimulus {
            font-size: 3rem;
            font-weight: 700;
            color: var(--accent-color);
            margin: 1rem 0;
            min-height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .reaction-test-area {
            background-color: #f8f9fa;
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            padding: 3rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin: 1.5rem 0;
        }
        
        .reaction-test-area:hover {
            background-color: #e9ecef;
            border-color: var(--primary-color);
        }
        
        .reaction-test-area.active {
            background-color: rgba(40, 167, 69, 0.1);
            border: 2px solid var(--medical-green);
        }
        
        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .memory-card {
            background-color: var(--primary-color);
            color: white;
            border-radius: 8px;
            padding: 2rem 1rem;
            text-align: center;
            font-size: 1.5rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .memory-card:hover {
            transform: scale(1.05);
        }
        
        .memory-card.flipped {
            background-color: white;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }
        
        .memory-card.matched {
            background-color: var(--medical-green);
            color: white;
            cursor: default;
        }
        
        .attention-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 0.5rem;
            margin: 1.5rem 0;
        }
        
        .attention-cell {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            padding: 1rem 0.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .attention-cell.target {
            background-color: var(--medical-red);
            color: white;
        }
        
        .attention-cell.selected {
            background-color: var(--medical-green);
            color: white;
        }
        
        .attention-cell.wrong {
            background-color: #ffcccc;
            color: #990000;
        }
        
        .cognitive-domain {
            display: flex;
            margin-bottom: 1.5rem;
            align-items: center;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        .domain-icon {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background-color: rgba(44, 125, 160, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1.5rem;
            color: var(--primary-color);
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        
        .domain-content {
            flex: 1;
        }
        
        .domain-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--primary-color);
        }
        
        .domain-score {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-color);
            margin-right: 1rem;
        }
        
        .brain-age-result {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
            border: 1px solid rgba(44, 125, 160, 0.2);
        }
        
        .brain-age-value {
            font-size: 4rem;
            font-weight: 800;
            color: var(--accent-color);
            margin: 1rem 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        
        .age-comparison {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            color: var(--text-color);
        }
        
        .brain-age-gauge {
            position: relative;
            width: 200px;
            height: 100px;
            margin: 2rem auto;
        }
        
        .gauge-background {
            width: 200px;
            height: 100px;
            border-radius: 100px 100px 0 0;
            background: #e9ecef;
            overflow: hidden;
            position: relative;
        }
        
        .gauge-fill {
            position: absolute;
            width: 200px;
            height: 100px;
            border-radius: 100px 100px 0 0;
            background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
            transform-origin: center bottom;
            transform: rotate(0deg);
            transition: transform 1s ease;
        }
        
        .gauge-needle {
            position: absolute;
            width: 4px;
            height: 90px;
            background: var(--text-color);
            bottom: 0;
            left: 50%;
            transform-origin: bottom center;
            transform: translateX(-50%) rotate(0deg);
            transition: transform 1s ease;
            z-index: 10;
        }
        
        .gauge-labels {
            display: flex;
            justify-content: space-between;
            width: 200px;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .brain-age-interpretation {
            padding: 1.5rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            border-left: 5px solid;
        }
        
        .brain-age-young {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .brain-age-normal {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .brain-age-old {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        .test-timer {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin: 1rem 0;
            text-align: center;
        }
        
        .test-feedback {
            padding: 1rem;
            border-radius: 6px;
            margin: 1rem 0;
            text-align: center;
            font-weight: 600;
        }
        
        .feedback-correct {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--medical-green);
        }
        
        .feedback-incorrect {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--medical-red);
        }
        
        .test-complete-screen {
            text-align: center;
            padding: 3rem 2rem;
        }
        
        .completion-icon {
            font-size: 4rem;
            color: var(--medical-green);
            margin-bottom: 1.5rem;
        }
        
        .recommendation-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .recommendation-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(44, 125, 160, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--primary-color);
            font-size: 1.25rem;
        }
        
        .cognitive-domain-chart {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .bsa-applications {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .application-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .application-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(44, 125, 160, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--primary-color);
            font-size: 1.25rem;
        }
        
        .application-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .application-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .faq-section {
            margin-top: 2rem;
        }
        
        .accordion-button:not(.collapsed) {
            background-color: rgba(44, 125, 160, 0.1);
            color: var(--primary-color);
        }
        
        @media (max-width: 768px) {
            .memory-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .attention-grid {
                grid-template-columns: repeat(6, 1fr);
            }
            
            .brain-age-value {
                font-size: 3rem;
            }
            
            .bsa-applications {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .memory-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .attention-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .cognitive-domain {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .domain-icon {
                margin-right: 0;
                margin-bottom: 1rem;
            }
            
            .bsa-applications {
                grid-template-columns: 1fr;
            }
        }
    