@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap'); :root { --primary: #003964; --blue: #00BBCE; --green: #A7C539; --red: #F15B43; --font: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif; --left-w: 360px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font); background: #f4f4f8; color: #333; height: 100vh; display: flex; flex-direction: column; overflow: hidden; } /* Header */ .header { background: var(--primary); color: white; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .header h1 { font-size: 15px; font-weight: 600; } .header-right { display: flex; align-items: center; gap: 14px; } .views-tag { font-size: 12px; opacity: 0.75; } .restart-btn { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 11px; font-family: var(--font); } .restart-btn:hover { background: rgba(255,255,255,0.25); } /* App layout */ .app { flex: 1; display: grid; grid-template-columns: var(--left-w) 1fr; overflow: hidden; } /* Left panel */ .left-panel { display: flex; flex-direction: column; border-right: 1px solid #ddd; background: #fff; overflow: hidden; } .vp-section { padding: 14px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; } .vp-msg { display: flex; gap: 10px; margin-bottom: 10px; } .vp-avatar { width: 32px; height: 32px; border-radius: 6px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: white; flex-shrink: 0; } .vp-content { flex: 1; min-width: 0; } .vp-name { font-size: 12px; font-weight: 600; color: var(--primary); } .vp-title { font-size: 11px; color: #999; } .vp-text { font-size: 13px; line-height: 1.45; color: #333; margin-top: 3px; } .disclaimer-box { background: #fff8e1; border-left: 3px solid #ffb300; border-radius: 6px; padding: 8px 10px; margin: 0 0 10px; font-size: 11px; line-height: 1.45; color: #5b4400; } .disclaimer-box strong { color: #b06700; } .alert-metrics { display: flex; gap: 8px; } .alert-metric { flex: 1; background: #fef2f0; border: 1px solid #fcd5cf; border-radius: 6px; padding: 8px 10px; } .alert-metric .am-label { font-size: 10px; text-transform: uppercase; color: #888; letter-spacing: 0.3px; } .alert-metric .am-val { font-size: 18px; font-weight: 700; color: var(--primary); } .alert-metric .am-delta { font-size: 12px; font-weight: 600; color: var(--red); } /* Insights */ .insights-section { flex: 1; overflow-y: auto; padding: 12px 16px; } .insights-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 8px; font-weight: 600; } .insight-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: default; transition: all 0.3s ease; position: relative; } /* Locked: fully hidden content, just a placeholder */ .insight-card.locked { background: #f8f8f8; border-color: #eee; } .insight-placeholder { font-size: 12px; color: #bbb; font-style: italic; } .insight-card.locked .insight-check { display: none; } /* Unlocked: visible content */ .insight-card.unlocked { opacity: 1; border-color: var(--blue); background: #f0fbfd; animation: unlockPulse 0.6s ease; } .insight-card.unlocked.conclusion { border-color: var(--green); background: #f4f9e8; } @keyframes unlockPulse { 0% { box-shadow: 0 0 0 0 rgba(0,187,206,0.4); } 70% { box-shadow: 0 0 0 8px rgba(0,187,206,0); } 100% { box-shadow: none; } } .insight-text { font-size: 13px; line-height: 1.4; } .insight-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-top: 4px; } .insight-tag.observation { background: #e3f2fd; color: #1565c0; } .insight-tag.conclusion { background: #e8f5e9; color: #2e7d32; } .insight-check { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; background: white; transition: all 0.2s; } .insight-card.unlocked.conclusion .insight-check { display: flex; border-color: var(--green); } .insight-card.unlocked:not(.conclusion) .insight-check { display: none; } .insight-check.checked { background: var(--green); border-color: var(--green); } /* Connection card */ .connection-card { background: #fff8e1; border-left: 3px solid #ffc107; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 12px; line-height: 1.5; color: #555; animation: unlockPulse 0.6s ease; } .connection-card strong { color: var(--primary); } /* Submit */ .submit-section { padding: 12px 16px; border-top: 1px solid #eee; flex-shrink: 0; } .submit-btn { width: 100%; padding: 10px; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all 0.2s; } .submit-btn:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; } .submit-btn:not(:disabled) { background: var(--green); color: var(--primary); } .submit-btn:not(:disabled):hover { background: #96b432; } .submit-hint { font-size: 11px; color: #aaa; text-align: center; margin-top: 4px; } /* Right panel */ .right-panel { display: flex; flex-direction: column; overflow: hidden; background: #f4f4f8; } .tab-bar { display: flex; border-bottom: 2px solid #e0e0e0; padding: 0 16px; flex-shrink: 0; background: white; } .tab-btn { padding: 10px 18px; font-size: 13px; font-family: var(--font); font-weight: 600; border: none; background: none; cursor: pointer; color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; } .tab-btn:hover { color: var(--primary); } .tab-btn.active { color: var(--primary); border-bottom-color: var(--blue); } .tab-content { flex: 1; overflow-y: auto; padding: 16px 20px; } .tab-pane { display: none; } .tab-pane.active { display: block; } .chart-card { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; margin-bottom: 14px; } .chart-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 10px; } .chart-card canvas { max-height: 260px; } .toggle-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .toggle-label { font-size: 12px; color: #888; } .toggle-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-family: var(--font); cursor: pointer; border: 1px solid #ccc; background: white; color: #666; transition: all 0.15s; } .toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); } /* Sub-tabs */ .sub-tab-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .sub-tab-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-family: var(--font); cursor: pointer; border: 1px solid #ddd; background: white; color: #666; transition: all 0.15s; } .sub-tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); } /* Metrics row */ .metrics-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .metric-card { flex: 1; min-width: 120px; background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; } .metric-card .mc-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.3px; } .metric-card .mc-val { font-size: 20px; font-weight: 700; color: var(--primary); margin: 2px 0; } .metric-card .mc-delta { font-size: 12px; font-weight: 600; } .metric-card .mc-delta.pos { color: #2e7d32; } .metric-card .mc-delta.neg { color: var(--red); } /* Quiz system */ .quiz-section { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; } .quiz-prompt { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 10px; } .quiz-options { display: flex; flex-direction: column; gap: 6px; } .quiz-opt { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; background: white; cursor: pointer; font-family: var(--font); font-size: 13px; line-height: 1.4; text-align: left; color: #333; transition: all 0.2s; } .quiz-opt:hover:not(.disabled) { border-color: var(--blue); background: #f8fcfd; } .quiz-opt .q-icon { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; transition: all 0.2s; } .quiz-opt.correct { border-color: var(--green); background: #f4f9e8; cursor: default; } .quiz-opt.correct .q-icon { border-color: var(--green); background: var(--green); color: white; } .quiz-opt.wrong { border-color: var(--red); background: #fef2f0; } .quiz-opt.wrong .q-icon { border-color: var(--red); background: var(--red); color: white; } .quiz-opt.disabled { opacity: 0.5; cursor: default; pointer-events: none; } .quiz-opt.faded { opacity: 0.4; cursor: default; pointer-events: none; } .quiz-feedback { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #555; padding: 8px 10px; border-radius: 6px; animation: fadeIn 0.2s ease; display: none; } .quiz-feedback.visible { display: block; } .quiz-feedback.wrong-fb { background: #fef2f0; border-left: 3px solid var(--red); } .quiz-feedback.correct-fb { background: #f4f9e8; border-left: 3px solid var(--green); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Lesson cards */ .lesson-card { background: #fff8e1; border-left: 3px solid #ffb300; border-radius: 6px; padding: 10px 14px; margin-top: 12px; } .lesson-card h4 { font-size: 12px; color: #e65100; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; } .lesson-card p { font-size: 13px; line-height: 1.5; color: #555; } .lesson-hidden { display: none; } /* Summary overlay */ .summary-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 100; align-items: center; justify-content: center; } .summary-overlay.visible { display: flex; } .summary-box { background: white; border-radius: 14px; max-width: 720px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 30px; box-shadow: 0 8px 40px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } } .summary-box h2 { color: var(--primary); margin-bottom: 6px; } .summary-score { text-align: center; margin: 16px 0 24px; } .summary-score .big { font-size: 42px; font-weight: 700; color: var(--primary); display: block; } .summary-score .sub { font-size: 14px; color: #888; } .s-card { background: #f8f9fa; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; } .s-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; } .s-card p { font-size: 14px; line-height: 1.55; color: #444; margin-bottom: 6px; } .s-card p:last-child { margin-bottom: 0; } .s-card.connection { background: #fff8e1; border-left: 3px solid #ffc107; } .s-card.bridge { background: #e8f5e9; border-left: 3px solid var(--green); } .s-card.reframe { background: #e3f2fd; border-left: 3px solid var(--blue); } .s-card.discussion { background: #f3f3f3; } .s-card.discussion p { margin-bottom: 4px; } .s-card .s-metrics { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .s-card .s-metric { background: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 12px; flex: 1; min-width: 100px; text-align: center; } .s-card .s-metric .sm-label { font-size: 10px; color: #888; text-transform: uppercase; } .s-card .s-metric .sm-val { font-size: 18px; font-weight: 700; color: var(--primary); } .s-card .s-metric .sm-delta { font-size: 12px; font-weight: 600; } .summary-actions { text-align: center; margin-top: 20px; } .summary-actions button { padding: 10px 28px; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; background: var(--primary); color: white; } .summary-actions button:hover { background: #004a7c; } .bonus-list { list-style: none; padding: 0; } .bonus-list li { font-size: 13px; padding: 2px 0; color: #555; } .bonus-list li::before { content: '\2713 '; color: var(--green); font-weight: 700; } /* Responsive */ @media (max-width: 900px) { .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .right-panel { order: -1; } .left-panel { max-height: 40vh; } :root { --left-w: 100%; } }