/**
 * Ishihara Color Vision Test - Enhanced Contrast & Readability
 * Version: 2.4.1
 */

/* Container */
.ishihara-test-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    border-radius: 0;
}

/* Header */
.ishihara-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    color: white!important;
}

.ishihara-header h2 {
    color: #1e293b!important;
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Instructions Box - NEW */
.test-instructions {
    background: #2563eb;
    border-left: 4px solid #00E676;
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 6px;
    color: #ffffff;
}

.test-instructions h3 {
    color: #1e293b;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
}

.test-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-instructions li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: #1e293b;
    font-size: 0.95em;
    line-height: 1.6;
}

.test-instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00E676;
    font-weight: bold;
    font-size: 1.2em;
}

/* Disclaimer */
.ishihara-disclaimer {
    background: #2563eb;
    border-left: 3px solid #FFC107;
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95em;
    line-height: 1.7;
}

.ishihara-disclaimer strong {
    color: #FFC107;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Progress Bar */
.ishihara-progress {
    margin: 20px 0;
    padding: 0 20px;
}

.progress-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #00E676;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    color: #9E9E9E;
    font-size: 0.85em;
    font-weight: 400;
}

/* Test Content */
.ishihara-test-content {
    background: #f5f7fa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-plate-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Canvas Container */
.plate-image-container {
    flex-shrink: 0;
}

#ishihara-canvas {
    display: block;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    background: white;
}

/* Number Pad */
.numpad-wrapper {
    flex-shrink: 0;
}

.numpad-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 260px;
}

.numpad-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 22px;
    font-size: 1.6em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.numpad-btn:hover {
    background: #328A8A;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.numpad-btn:active,
.numpad-btn.selected {
    background: #40A0A0;
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.numpad-btn.special {
    background: #1d4ed8;
    font-size: 1.1em;
    font-weight: 600;
}

.numpad-btn.special:hover {
    background: #256969;
}

/* Test Note */
.test-note {
    text-align: center;
    color: #334155;
    font-size: 0.9em;
    margin-top: 25px;
    padding: 12px 20px;
    background: #d27819;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;    
}

.test-note strong {
    color: #00E676!important;
    font-weight: 600;
}

/* Results */
.results-summary {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.results-summary h3 {
    color: #1e293b;
    font-size: 2em;
    margin-bottom: 30px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.stat-value {
    font-size: 3em;
    font-weight: 700;
    color: #00E676;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interpretation-box {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 8px;
    margin: 25px auto;
    max-width: 600px;
    text-align: left;
    line-height: 1.7;
}

.interpretation-box p {
    color: #334155;
    margin-bottom: 15px;
    font-size: 1em;
}

.interpretation-box p strong,
.interpretation-box strong {
  color: #1e293b !important;
}


.interpretation-box .disclaimer {
    color: #FFC107;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #32...8A8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Info Section - ENHANCED CONTRAST */
.ishihara-info {
    margin-top: 40px;
    padding: 30px;
    background: #2563eb;  /* Lighter background */
    border-radius: 8px;
    color: #ffffff;
    border: 1px solid #e2e8f0;
}

.ishihara-info h3 {
    color: #ffffff!important;
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 600;
}

.ishihara-info > p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.info-card h4 {
    color: #00E676!important;
    font-size: 1.15em;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-card p {
    color: #D0D0D0;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0;
}

/* Make the note span the full width of the 3-column grid */
.numpad-container .test-note{
  grid-column: 1 / -1;   /* spans all columns */
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .test-plate-container {
        flex-direction: column;
        gap: 30px;
    }
    
    #ishihara-canvas {
        width: 380px;
        height: 380px;
    }
    
    .numpad-container {
        width: 320px;
    }
    .numpad-wrapper {
        width: 320px;
    }    
}

@media (max-width: 768px) {
    .ishihara-test-container {
        padding: 15px;
        margin: 15px;
    }
    
    .ishihara-header h2 {
        font-size: 1.5em;
    }
    
    #ishihara-canvas {
        width: 320px;
        height: 320px;
    }
    
    .numpad-container {
        width: 280px;
    }
    
    .numpad-btn {
        padding: 18px;
        font-size: 1.4em;
    }
    
    .numpad-btn.special {
        font-size: 0.95em;
    }
    
    .numpad-wrapper {
        width: 280px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #ishihara-canvas {
        width: 280px;
        height: 280px;
    }
    
    .numpad-container {
        width: 260px;
    }
    
    .numpad-btn {
        padding: 16px;
        font-size: 1.3em;
    }
    
    .numpad-wrapper {
        width: 260px;
    }    
}

