* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c5282;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #2c5282;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* File Upload */
.file-drop {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-drop:hover,
.file-drop.drag-over {
    border-color: #4299e1;
    background: #ebf8ff;
}

.file-drop input {
    display: none;
}

.file-drop label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-drop .icon {
    font-size: 2.5rem;
}

.file-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: #e6fffa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.file-info.error {
    background: #fed7d7;
    color: #c53030;
}

/* Results */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5282;
}

.stat-box .label {
    font-size: 0.85rem;
    color: #666;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.result-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-card.risk-high {
    border-left: 4px solid #e53e3e;
}

.result-card.risk-moderate {
    border-left: 4px solid #d69e2e;
}

.result-card.risk-low {
    border-left: 4px solid #38a169;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.result-gene {
    font-weight: bold;
    font-size: 1.1rem;
}

.result-genotype {
    font-family: monospace;
    background: #edf2f7;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.result-rsid {
    font-family: monospace;
    font-size: 0.8rem;
    color: #718096;
}

.result-interpretation {
    margin: 10px 0;
    color: #4a5568;
}

.result-suggestion {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.result-suggestion strong {
    color: #2c5282;
}

.result-references {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #718096;
}

/* Buttons */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Info Section */
.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.85rem;
}

footer p {
    margin-bottom: 10px;
}

.version {
    color: #a0aec0;
    font-size: 0.75rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Cognitive Section */
.cognitive-section {
    border-top: 4px solid #805ad5;
}

.cognitive-section h2 {
    color: #805ad5;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cognitive-stats .stat-box .number {
    color: #805ad5;
}

.cognitive-card {
    border-left-color: #805ad5 !important;
}

.cognitive-card.risk-high {
    border-left-color: #38a169 !important;
}

.cognitive-card.risk-moderate {
    border-left-color: #d69e2e !important;
}

.result-learning-style {
    background: #f3e8ff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.result-learning-style strong {
    color: #805ad5;
}

/* Coach Report Section */
.coach-report-section {
    background: #faf5ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.coach-report-section h3 {
    color: #553c9a;
    margin-bottom: 15px;
}

.activity-selector,
.student-name-input {
    margin-bottom: 15px;
}

.activity-selector label,
.student-name-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #4a5568;
}

.activity-selector select,
.student-name-input input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.activity-selector select:focus,
.student-name-input input:focus {
    outline: none;
    border-color: #805ad5;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
}

.coach-disclaimer {
    background: #e9d8fd;
    border-color: #805ad5;
    margin-top: 20px;
}

.coach-report-section .btn-primary {
    background: #805ad5;
}

.coach-report-section .btn-primary:hover {
    background: #6b46c1;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .stats {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .activity-selector select,
    .student-name-input input {
        max-width: 100%;
    }
}

/* Advanced Mode Toggle */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f6f8fa 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label strong {
    color: #2d3748;
    font-size: 0.95rem;
}

.toggle-label small {
    color: #718096;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .mode-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
