/**
 * Brain Map Styles
 * Monochromatic, elegant design for interactive cognitive brain visualization
 * OS 24-Oct-2025
 */

/* ============================================
   Page Container
   ============================================ */

.brain-map-page {
    min-height: 100vh;
    background: #f0ece8;
    padding: 60px 20px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Header
   ============================================ */

.brain-map-header {
    max-width: 1400px;
    margin: 0 auto 50px;
    text-align: center;
}

.brain-map-header-content {
    margin-bottom: 30px;
}

.brain-map-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.brain-map-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin: 0;
    letter-spacing: 0.01em;
}

/* ============================================
   Legend
   ============================================ */

.brain-map-legend {
    display: inline-flex;
    gap: 30px;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.brain-map-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.brain-map-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.brain-map-legend-excellent {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

.brain-map-legend-average {
    background: linear-gradient(135deg, #666, #555);
}

.brain-map-legend-improvement {
    background: linear-gradient(135deg, #aaa, #999);
}

/* ============================================
   Loading State
   ============================================ */

.brain-map-loading {
    text-align: center;
    padding: 100px 20px;
}

.brain-map-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.brain-map-loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: brain-map-spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.brain-map-loader-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.brain-map-loader-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #555;
}

.brain-map-loader-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #999;
}

@keyframes brain-map-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brain-map-loading p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   Main Brain Canvas
   ============================================ */

.brain-map-main {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.brain-map-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.brain-map-canvas {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e1e1;
    position: relative;
}

.brain-map-instructions {
    text-align: center;
    margin-bottom: 30px;
}

.brain-map-instructions p {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Brain Illustration with Image
   ============================================ */

.brain-illustration-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.brain-background-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.1) brightness(1.05);
    opacity: 0.9;
}

.brain-svg.brain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.brain-svg.brain-overlay .brain-region {
    pointer-events: all;
}

/* ============================================
   Interactive Brain Regions
   ============================================ */

.brain-region {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.region-hotspot {
    fill: rgba(26, 26, 26, 0.1);
    stroke: rgba(26, 26, 26, 0.3);
    stroke-width: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brain-region:hover .region-hotspot {
    fill: rgba(26, 26, 26, 0.2);
    stroke: rgba(26, 26, 26, 0.6);
    stroke-width: 3;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.brain-region.active .region-hotspot {
    fill: rgba(26, 26, 26, 0.3);
    stroke: #1a1a1a;
    stroke-width: 3;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.region-label {
    font-size: 12px;
    font-weight: 700;
    fill: #1a1a1a;
    text-anchor: middle;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    opacity: 0;
}

.brain-region:hover .region-label {
    opacity: 1;
}

.brain-region.active .region-label {
    opacity: 1;
    font-size: 13px;
    fill: #000;
}

/* Performance-based coloring */
.brain-region.performance-excellent .region-hotspot {
    fill: rgba(45, 45, 45, 0.3);
    stroke: rgba(26, 26, 26, 0.6);
}

.brain-region.performance-average .region-hotspot {
    fill: rgba(102, 102, 102, 0.25);
    stroke: rgba(85, 85, 85, 0.5);
}

.brain-region.performance-improvement .region-hotspot {
    fill: rgba(170, 170, 170, 0.2);
    stroke: rgba(153, 153, 153, 0.4);
}

/* Pulse animation for active regions */
@keyframes regionPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.brain-region.active .region-hotspot {
    animation: regionPulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* ============================================
   Assessment Selector
   ============================================ */

.brain-map-assessment-selector {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.brain-map-assessment-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brain-map-select {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.brain-map-select:hover {
    border-color: #999;
}

.brain-map-select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   Information Panel
   ============================================ */

.brain-info-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e1e1;
    position: relative;
    min-height: 500px;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.brain-info-panel:not(.active) .brain-info-header,
.brain-info-panel:not(.active) .brain-info-skills,
.brain-info-panel:not(.active) .brain-info-progress,
.brain-info-panel:not(.active) .brain-info-close {
    display: none;
}

.brain-info-panel:not(.active) .brain-info-description p {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-top: 150px;
}

.brain-info-panel.active {
    opacity: 1;
}

.brain-info-panel.active .brain-info-description p {
    text-align: left;
    color: #555;
    font-size: 15px;
    margin-top: 0;
}

.brain-info-panel-content {
    padding: 30px;
    position: relative;
}

.brain-info-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brain-info-close:hover {
    background: #1a1a1a;
    color: white;
    transform: rotate(90deg);
}

/* Panel Header */
.brain-info-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.brain-info-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.brain-info-score-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brain-info-score-badge.score-excellent {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.brain-info-score-badge.score-average {
    background: linear-gradient(135deg, #555, #666);
}

.brain-info-score-badge.score-improvement {
    background: linear-gradient(135deg, #999, #aaa);
}

/* Panel Description */
.brain-info-description {
    margin-bottom: 30px;
}

.brain-info-description h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brain-info-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Panel Skills */
.brain-info-skills {
    margin-bottom: 30px;
}

.brain-info-skills h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item:hover {
    padding-left: 10px;
}

.skill-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-transform: capitalize;
}

.skill-score {
    font-size: 18px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.skill-score.score-excellent {
    background: #1a1a1a;
    color: white;
}

.skill-score.score-average {
    background: #666;
    color: white;
}

.skill-score.score-improvement {
    background: #aaa;
    color: white;
}

/* Panel Progress */
.brain-info-progress {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.brain-info-progress h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-chart {
    margin-top: 20px;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-date {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.progress-score {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #999, #1a1a1a);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-trend {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.progress-trend-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.progress-trend-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

.progress-trend.improving .progress-trend-value {
    color: #1a1a1a;
}

.progress-trend.declining .progress-trend-value {
    color: #999;
}

/* ============================================
   Error & Login States
   ============================================ */

.brain-map-error,
.brain-map-login-message {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.brain-map-error-content h2,
.brain-map-login-message h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.brain-map-error-content p,
.brain-map-login-message p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.brain-map-login-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brain-map-login-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Comparative Analytics Section
   ============================================ */

.brain-map-comparison {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e1e1;
    animation: fadeIn 0.6s ease-out;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.comparison-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Filter Controls */
.comparison-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e1e1e1;
}

/* Comparison Tabs */
.comparison-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #e8e8e8;
    border-radius: 10px;
}

.comparison-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.comparison-tab:hover {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
}

.comparison-tab.active {
    background: white;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-tab:focus {
    outline: none;
}

.filter-info {
    font-size: 14px;
    color: #666;
}

.filter-info strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Comparison Charts */
.comparison-charts {
    display: grid;
    gap: 25px;
}

.comparison-chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.comparison-chart-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Score Comparison */
.score-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-value {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 15px;
}

.score-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #999, #1a1a1a);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.your-score .score-fill {
    background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
}

.peer-score .score-fill {
    background: linear-gradient(90deg, #666, #888);
}

.percentile-info {
    text-align: center;
    padding: 15px 20px;
    background: #f3efec;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
    border: 1px solid #e1e1e1;
}

.percentile-info span {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 24px;
}

/* Highest and Lowest Scores */
.score-extremes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.extreme-score {
    text-align: center;
}

.extreme-label {
    display: block;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.extreme-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}


/* Category Comparisons */
.category-comparisons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.category-comparison-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-comparison-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-transform: capitalize;
}

.comparison-bars {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comparison-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.comparison-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-bar-fill.user {
    background: #1a1a1a;
}

.comparison-bar-fill.peer {
    background: #888;
}

.comparison-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.comparison-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-value-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.comparison-value-dot.user {
    background: #1a1a1a;
}

.comparison-value-dot.peer {
    background: #888;
}

/* Progress Chart */
.progress-chart-container {
    background: #f8f9fa;
    position: relative;
    height: 240px; /* Reduced height for less bulky appearance */
    padding: 15px;
    border-radius: 8px;
}

#progress-chart {
    max-width: 100%;
    height: 100% !important;
    display: block;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .brain-map-bottom-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brain-info-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .brain-map-canvas {
        padding: 25px;
    }
    
    .brain-info-panel-content {
        padding: 25px;
    }
    
    /* Comparison Section Mobile Styles */
    .brain-map-comparison {
        padding: 25px 20px;
    }
    
    .comparison-header h2 {
        font-size: 24px;
    }
    
    .comparison-filters {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .comparison-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .comparison-tab {
        flex: 1;
        min-width: 110px;
        text-align: center;
    }
    
    .score-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .category-comparisons {
        grid-template-columns: 1fr;
    }
    
    .comparison-chart-container {
        padding: 20px;
    }
    
    .progress-chart-container {
        height: 200px; /* Smaller height on mobile */
    }
    
    .brain-map-title {
        font-size: 32px;
    }
    
    .brain-map-subtitle {
        font-size: 16px;
    }
    
    .brain-map-legend {
        flex-direction: column;
        gap: 15px;
    }
    
    .brain-map-canvas {
        padding: 20px;
    }
    
    .brain-info-panel-content {
        padding: 30px 20px;
    }
    
    .region-label {
        font-size: 10px;
        opacity: 1; /* Always show labels on mobile */
    }
    
    .region-hotspot {
        r: 30; /* Smaller touch targets on mobile */
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.brain-map-main {
    animation: fadeIn 0.6s ease-out;
}

.brain-info-panel.active {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Age Range Selector - Beautiful Slider
   OS 16-Nov-2025
   ========================================================================== */

.age-range-selector {
    background: #f8f9fa;
    padding: 28px 32px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-range-selector[style*="display: block"] {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 250px;
    }
}

/* Header with value display and all ages toggle */
.age-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.age-range-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.range-symbol {
    font-size: 24px;
    color: #666;
}

#range-value-display {
    font-size: 36px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.range-unit {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-left: 4px;
}

/* All Ages Toggle */
.all-ages-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.all-ages-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.all-ages-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.all-ages-toggle span {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

/* Slider Container */
.slider-container {
    position: relative;
    padding: 24px 0 40px;
    margin: 0;
}

/* Custom Slider Styling */
.age-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Remove default track styling */
.age-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
    border: none;
}

.age-slider::-moz-range-track {
    background: transparent;
    height: 8px;
    border: none;
}

/* Slider Track Background */
.slider-track-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #e9ecef 0%, #1a1a1a 100%);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
}

/* WebKit Slider Thumb */
.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border: 4px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.age-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
                0 3px 6px rgba(0, 0, 0, 0.15);
}

.age-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

/* Firefox Slider Thumb */
.age-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border: 4px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
                0 3px 6px rgba(0, 0, 0, 0.15);
}

.age-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

/* Tick Marks */
.slider-ticks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.tick {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tick:first-child {
    align-items: flex-start;
}

.tick:last-child {
    align-items: flex-end;
}

.tick-mark {
    width: 3px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 2px;
    transform: translateY(-4px);
}

.tick-label {
    position: absolute;
    top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

/* Age Range Info */
.age-range-info {
    text-align: center;
    color: #666;
    font-size: 15px;
    padding: 14px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 8px;
}

.age-range-info strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Disabled state when "All Ages" is checked */
.age-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.age-slider:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
    background: #ccc;
}

.age-slider:disabled::-moz-range-thumb {
    cursor: not-allowed;
    background: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .age-range-selector {
        padding: 20px 24px;
    }
    
    .age-range-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .age-range-value {
        font-size: 24px;
    }
    
    #range-value-display {
        font-size: 32px;
    }
    
    .slider-container {
        padding: 16px 0 36px;
    }
    
    .tick-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .age-range-value {
        font-size: 20px;
    }
    
    #range-value-display {
        font-size: 28px;
    }
    
    .tick-label {
        font-size: 10px;
    }
}

/* ==========================================================================
   Inspiring No Data Message
   OS 16-Nov-2025
   ========================================================================== */

.brain-map-no-data {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.no-data-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.no-data-icon {
    margin-bottom: 20px;
}

.brain-icon {
    width: 80px;
    height: 80px;
    animation: pulse 2s ease-in-out infinite;
    filter: grayscale(0%);
    margin:auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.brain-map-no-data h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.inspiring-stats {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
}

.inspiring-stat {
    margin: 20px 0;
    display: none; /* Will fade in with JS animation */
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-highlight {
    font-size: 18px;
    color: #495057;
    line-height: 1.6;
}

.stat-highlight strong {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 800;
}

#stat-context {
    font-size: 16px;
    color: #666;
}

.where-stand {
    margin: 35px 0 25px;
}

.where-stand h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.assessment-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.assessment-time {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #495057;
}

.time-icon {
    font-size: 20px;
}

.assessment-time strong {
    color: #1a1a1a;
    font-weight: 700;
}

.btn-take-assessment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-take-assessment:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.btn-take-assessment .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-take-assessment:hover .arrow {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .no-data-content {
        padding: 40px 30px;
    }
    
    .brain-map-no-data h2 {
        font-size: 26px;
    }
    
    .inspiring-stats {
        padding: 25px 20px;
    }
    
    .stat-highlight {
        font-size: 16px;
    }
    
    .stat-highlight strong {
        font-size: 20px;
    }
    
    .where-stand h3 {
        font-size: 20px;
    }
    
    .assessment-info {
        padding: 20px;
    }
    
    .assessment-time {
        font-size: 15px;
    }
    
    .btn-take-assessment {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .no-data-content {
        padding: 30px 20px;
    }
    
    .brain-icon {
        width: 60px;
        height: 60px;
    }
    
    .brain-map-no-data h2 {
        font-size: 22px;
    }
    
    .inspiring-stats {
        padding: 20px 15px;
    }
    
    .assessment-info {
        gap: 12px;
    }
}

