* {
    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;
    position: relative;
}

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

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-btn:hover {
    border-color: #4a90a4;
    background: #f7fafc;
}

.lang-btn.active {
    border-color: #2c5282;
    background: #2c5282;
    box-shadow: 0 2px 4px rgba(44, 82, 130, 0.3);
}

@media (max-width: 600px) {
    .language-toggle {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

.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;
}

.stat-box.stat-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box.stat-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-box.stat-clickable .label::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-box.stat-clickable:hover .label::after {
    opacity: 0.6;
}

/* Findings Summary Modal */
.findings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.findings-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.findings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 3px solid;
    background: #f7fafc;
}

.findings-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
    padding: 0 5px;
}

.modal-close:hover {
    color: #e53e3e;
}

.findings-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 50vh;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

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

.summary-item strong {
    color: #2c5282;
}

.summary-item-clickable {
    cursor: pointer;
    border-radius: 6px;
    padding: 10px;
    margin: -10px 0;
    transition: background 0.2s;
}

.summary-item-clickable:hover {
    background: #edf2f7;
}

.summary-item-clickable::after {
    content: ' →';
    opacity: 0.4;
    font-size: 0.9em;
}

.summary-item-advanced {
    opacity: 0.7;
    font-style: italic;
}

.summary-item-advanced::before {
    content: '⚙ ';
    font-style: normal;
}

.findings-modal-footer {
    padding: 10px 20px;
    background: #f7fafc;
    text-align: center;
    color: #718096;
}

/* Highlight animation for scrolled-to cards */
@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(66, 153, 225, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0); }
}

.result-card.highlight-pulse {
    animation: highlightPulse 1s ease-out 2;
    border-color: #4299e1;
}

/* Music Preferences */
.music-preferences {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.music-preferences h4 {
    margin: 0 0 5px 0;
    color: #2c5282;
}

.music-note {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 15px;
}

.music-section {
    margin-bottom: 15px;
}

.music-section h5 {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 10px 0;
}

.music-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-bars.muted {
    opacity: 0.7;
}

.music-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-genre {
    min-width: 140px;
    font-size: 0.9rem;
}

.music-bar-container {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.music-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Direct Music Genetics Section */
.music-genetics-section {
    background: linear-gradient(135deg, #e9f5ff 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #bee3f8;
}

.music-genetics-section h4 {
    margin: 0 0 8px 0;
    color: #2b6cb0;
}

.music-genetics-note {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 15px;
}

.music-traits-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.music-traits-summary h5 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 0.95rem;
}

.music-trait-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.music-trait-row .trait-label {
    min-width: 160px;
    font-size: 0.9rem;
    color: #4a5568;
}

.trait-bar-mini {
    flex: 1;
    height: 16px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.trait-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.trait-score {
    min-width: 50px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38a169;
}

.music-variants-details {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.music-variants-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2b6cb0;
    padding: 5px 0;
}

.music-variants-details summary:hover {
    color: #1a4971;
}

.music-category-group {
    margin-top: 15px;
}

.music-category-group h5 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.music-variant-card {
    background: #f7fafc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #4299e1;
}

.variant-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.variant-gene {
    font-weight: 700;
    color: #2b6cb0;
}

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

.variant-genotype {
    background: #2b6cb0;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: monospace;
}

.variant-text {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.music-genetics-disclaimer {
    font-size: 0.85rem;
    color: #718096;
    margin: 10px 0 0 0;
}

.music-genetics-section .no-data {
    color: #718096;
    font-style: italic;
}

.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;
    }
}

/* Personality Section */
.personality-section {
    border-top: 4px solid #38a169;
}

.personality-section h2 {
    color: #38a169;
}

.personality-stats .stat-box .number {
    color: #38a169;
}

.personality-card {
    border-left-color: #38a169 !important;
}

.personality-disclaimer {
    background: #c6f6d5;
    border-color: #38a169;
    margin-top: 20px;
}

.personality-profile-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-top: 4px solid #38a169;
}

.personality-profile-card h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.big5-chart {
    margin: 20px 0;
}

.trait-row {
    margin-bottom: 20px;
}

.trait-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.trait-bar-container {
    position: relative;
}

.trait-bar-bg {
    background: #e2e8f0;
    border-radius: 10px;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.trait-bar-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #a0aec0;
    z-index: 1;
}

.trait-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.trait-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 4px;
}

.mbti-display {
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 15px;
}

.mbti-type {
    font-size: 2.5rem;
    font-weight: bold;
    color: #38a169;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.mbti-likely-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.type-badge {
    background: #38a169;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mbti-display .note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 15px;
}

.trait-group-header {
    color: #38a169;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c6f6d5;
}

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

.result-personality strong {
    color: #276749;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #d97706;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Schedule Section */
.schedule-section {
    border-top: 4px solid #ed8936;
}

.schedule-section h2 {
    color: #ed8936;
}

.schedule-disclaimer {
    background: #feebc8;
    border-color: #ed8936;
    margin-top: 20px;
}

/* Personalized Schedule Card */
.personalized-schedule {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    border-top: 4px solid #ed8936;
}

.personalized-schedule h4 {
    color: #c05621;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.personalized-schedule h5 {
    color: #744210;
    margin: 20px 0 12px 0;
    font-size: 1rem;
    border-bottom: 2px solid #feebc8;
    padding-bottom: 8px;
}

/* Schedule Rules */
.schedule-rules {
    background: #fffaf0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.schedule-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #feebc8;
}

.schedule-rule:last-child {
    border-bottom: none;
}

.rule-gene {
    background: #ed8936;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
}

.rule-genotype {
    font-family: monospace;
    background: #feebc8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #744210;
}

.rule-text {
    flex: 1;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-table th {
    background: #ed8936;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background: #fffaf0;
}

.schedule-table tr.workout-cardio td:first-child {
    border-left: 3px solid #3182ce;
}

.schedule-table tr.workout-strength td:first-child {
    border-left: 3px solid #e53e3e;
}

.schedule-table tr.workout-recovery td:first-child {
    border-left: 3px solid #38a169;
}

.schedule-table tr.workout-intervals td:first-child {
    border-left: 3px solid #d69e2e;
}

.schedule-table tr.workout-endurance td:first-child {
    border-left: 3px solid #805ad5;
}

/* Exercise Types */
.exercise-types {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.exercise-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.exercise-best,
.exercise-good,
.exercise-less {
    flex: 1;
    min-width: 150px;
}

.exercise-best h6 {
    color: #38a169;
    margin-bottom: 8px;
}

.exercise-good h6 {
    color: #3182ce;
    margin-bottom: 8px;
}

.exercise-less h6 {
    color: #a0aec0;
    margin-bottom: 8px;
}

.exercise-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exercise-types li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.exercise-best li::before {
    content: "✓ ";
    color: #38a169;
}

.exercise-good li::before {
    content: "○ ";
    color: #3182ce;
}

.exercise-less li::before {
    content: "△ ";
    color: #a0aec0;
}

/* Daily Template */
.daily-template {
    background: #fffaf0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.template-timeline {
    display: grid;
    gap: 8px;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.template-item .time {
    font-family: monospace;
    font-weight: 600;
    color: #ed8936;
    min-width: 50px;
}

.template-item strong {
    color: #744210;
}

/* Histamine Foods */
.schedule-histamine {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.schedule-histamine h5 {
    color: #c53030;
    border-bottom-color: #feb2b2;
}

.food-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.food-safe,
.food-avoid {
    flex: 1;
    min-width: 200px;
}

.food-safe h6 {
    color: #38a169;
    margin-bottom: 8px;
}

.food-avoid h6 {
    color: #c53030;
    margin-bottom: 8px;
}

.schedule-histamine ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-histamine li {
    padding: 3px 0;
    font-size: 0.85rem;
}

.food-safe li::before {
    content: "✓ ";
    color: #38a169;
}

.food-avoid li::before {
    content: "✕ ";
    color: #c53030;
}

/* Supplements */
.schedule-supplements {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.schedule-supplements h5 {
    color: #2b6cb0;
    border-bottom-color: #90cdf4;
}

.schedule-supplements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-supplements li {
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #bee3f8;
}

.schedule-supplements li:last-child {
    border-bottom: none;
}

.schedule-supplements li::before {
    content: "💊 ";
}

/* Cold Plunge Section */
.cold-plunge-section {
    background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 100%);
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.cold-plunge-section h5 {
    color: #234e52;
    margin: 0 0 12px 0;
    border-bottom-color: #81e6d9;
}

.cold-plunge-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.cold-item {
    font-size: 0.9rem;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
}

.cold-item strong {
    color: #285e61;
}

.cold-note {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 12px 0 0 0;
}

.template-cold {
    background: linear-gradient(90deg, #e6fffa 0%, white 100%) !important;
    border-left: 3px solid #38b2ac;
}

.template-cold .time {
    color: #285e61 !important;
}

/* Schedule Disclaimer */
.schedule-disclaimer em,
.personalized-schedule .schedule-disclaimer {
    font-size: 0.85rem;
    color: #718096;
    display: block;
    margin-top: 20px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .schedule-rule {
        flex-direction: column;
        align-items: flex-start;
    }

    .rule-gene {
        min-width: auto;
    }

    .exercise-columns,
    .food-columns {
        flex-direction: column;
    }

    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 10px;
    }
}

/* =============================================================================
   PRIVACY UX ENHANCEMENTS
   ============================================================================= */

.privacy-banner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.privacy-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #276749, #2f855a);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(39, 103, 73, 0.3);
}

.privacy-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.privacy-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-text {
    flex: 1;
}

.file-drop-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 20px;
    font-size: 0.85rem;
    width: fit-content;
}

.network-indicator.active {
    background: #fff5f5;
    border-color: #feb2b2;
}

.network-indicator .network-icon {
    font-size: 1rem;
}

.network-indicator .network-status {
    color: #276749;
    font-weight: 500;
}

.network-indicator.active .network-status {
    color: #c53030;
}

/* Privacy Proof Section */
.privacy-proof {
    margin-top: 20px;
    padding: 20px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.privacy-proof h3 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.proof-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.proof-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.proof-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.proof-list li strong {
    color: #2d3748;
    display: block;
    margin-bottom: 2px;
}

.proof-list li span {
    color: #718096;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Offline mode indicator */
.offline-mode-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #276749;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ASD/Neurodivergence Section */
.asd-section {
    border-top: 4px solid #805ad5;
}

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

.asd-stats {
    margin-bottom: 20px;
}

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

.asd-profile-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    border-top: 4px solid #805ad5;
    margin-bottom: 20px;
}

.asd-profile-card h4 {
    color: #553c9a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.asd-subtitle {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.asd-score-section {
    margin: 20px 0;
}

.asd-score-section h5 {
    color: #553c9a;
    margin-bottom: 10px;
}

.asd-score-bar-container {
    background: #e2e8f0;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 8px;
}

.asd-score-bar {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.asd-score-label {
    text-align: center;
    margin-bottom: 8px;
}

.asd-score-description {
    color: #4a5568;
    font-size: 0.9rem;
    text-align: center;
}

.asd-strengths-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.strengths-column,
.challenges-column {
    flex: 1;
    min-width: 200px;
}

.strengths-column h5 {
    color: #38a169;
    margin-bottom: 10px;
}

.challenges-column h5 {
    color: #d69e2e;
    margin-bottom: 10px;
}

.asd-strengths-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asd-strengths-section li {
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.asd-strengths-section li:last-child {
    border-bottom: none;
}

.strengths-column li::before {
    content: "✨ ";
}

.challenges-column li::before {
    content: "🎯 ";
}

.asd-card {
    border-left: 4px solid #805ad5;
}

@media (max-width: 600px) {
    .asd-strengths-section {
        flex-direction: column;
    }
}
