* { box-sizing: border-box; margin: 0; padding: 0; } [hidden] { display: none !important; } :root { --bg: #fdf6e3; --card: #ffffff; --ink: #2d3142; --accent: #4f86f7; --accent-dark: #3a6fd8; --good: #2e9e5b; --good-bg: #e3f6ec; --bad: #d64550; --bad-bg: #fdeaec; --gold: #f6b93b; --muted: #8a8fa3; --radius: 18px; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Comic Sans MS", sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; } .view { max-width: 640px; margin: 0 auto; padding: 2rem 1.25rem 4rem; text-align: center; } .app-title { font-size: 2.4rem; margin-bottom: 0.5rem; } .subtitle { font-size: 1.25rem; color: var(--muted); margin-bottom: 2rem; } .hint { color: var(--muted); margin: 1rem 0; } .error { color: var(--bad); margin: 0.5rem 0; } /* ---------- kid picker ---------- */ .kid-cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; } .kid-card { background: var(--card); border: 3px solid transparent; border-radius: var(--radius); padding: 1.5rem 2rem; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); transition: transform 0.1s, border-color 0.1s; min-width: 140px; } .kid-card:hover { transform: translateY(-3px) scale(1.03); border-color: var(--accent); } .kid-card .avatar { display: block; font-size: 3rem; margin-bottom: 0.5rem; } /* ---------- kid home ---------- */ .back-btn { display: inline-block; background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; margin-bottom: 1rem; } #kid-greeting { font-size: 2rem; margin: 1rem 0; clear: both; } .week-card { background: var(--card); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); font-size: 1.1rem; } .week-card .mastery-dots { margin-top: 0.75rem; line-height: 1.9; letter-spacing: 2px; font-size: 1.1rem; word-break: break-all; overflow-wrap: anywhere; } .big-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; } .big-btn { font-size: 1.6rem; font-weight: 700; font-family: inherit; padding: 1.25rem 2rem; width: 100%; max-width: 380px; border: none; border-radius: var(--radius); cursor: pointer; color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); transition: transform 0.05s; } .big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); } .big-btn.practice { background: var(--accent); } .big-btn.test { background: var(--gold); color: var(--ink); } .big-btn:disabled { background: #ccc; color: #888; cursor: not-allowed; box-shadow: none; } /* ---------- practice / test ---------- */ .progress-label { color: var(--muted); font-weight: 700; margin: 0.5rem 0; clear: both; } .progress-track { height: 12px; background: #e8e2d0; border-radius: 6px; overflow: hidden; margin-bottom: 1.5rem; } .progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; } .progress-fill.test-fill { background: var(--gold); } .word-card { background: var(--card); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); } .speak-btn { font-size: 1.2rem; font-family: inherit; font-weight: 700; background: var(--good-bg); color: var(--good); border: 2px solid var(--good); border-radius: 999px; padding: 0.6rem 1.4rem; cursor: pointer; margin-bottom: 1.25rem; } .prompt { font-size: 1.1rem; color: var(--muted); margin-bottom: 1rem; } .spell-input { display: block; width: 100%; max-width: 420px; margin: 0 auto 1rem; font-size: 2rem; font-family: inherit; text-align: center; letter-spacing: 4px; padding: 0.6rem; border: 3px solid var(--accent); border-radius: 12px; outline: none; } .spell-input:focus { border-color: var(--accent-dark); } .check-btn { font-size: 1.3rem; font-weight: 700; font-family: inherit; background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 0.75rem 2.5rem; cursor: pointer; box-shadow: 0 4px 0 var(--accent-dark); } .check-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); } /* letter-diff feedback */ .feedback { min-height: 1rem; margin-bottom: 1rem; font-size: 1.2rem; } .feedback .banner { display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px; font-weight: 700; margin-bottom: 0.75rem; } .feedback .banner.good { background: var(--good-bg); color: var(--good); } .feedback .banner.bad { background: var(--bad-bg); color: var(--bad); } .diff-line { font-size: 1.9rem; letter-spacing: 4px; margin: 0.4rem 0; font-weight: 700; } .diff-line .label { font-size: 0.85rem; letter-spacing: 0; color: var(--muted); display: block; font-weight: 400; } .ltr-ok { color: var(--ink); } .ltr-bad { color: var(--bad); text-decoration: line-through; } .ltr-fix { color: var(--good); background: var(--good-bg); border-radius: 6px; padding: 0 2px; } .study-word { font-size: 2.6rem; font-weight: 800; letter-spacing: 6px; margin: 0.5rem 0; } .countdown { color: var(--muted); } .hint-badge { font-size: 1rem; color: var(--accent-dark); margin: 0.3rem 0 0.5rem; } .streak-badge { display: inline-block; margin-left: 0.5rem; background: #fff3cd; color: #7c5200; border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.95rem; font-weight: 700; animation: streak-pop 0.3s ease; } @keyframes streak-pop { 0% { transform: scale(0.7); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } } .test-listening-state { font-size: 1.5rem; font-weight: 700; color: var(--accent); text-align: center; padding: 2rem 0; letter-spacing: 1px; animation: pulse 1s ease-in-out infinite alternate; } @keyframes pulse { from { opacity: 0.6; } to { opacity: 1; } } .speak-btn-prominent { font-size: 1.4rem; padding: 0.75rem 2rem; width: 100%; max-width: 340px; display: block; margin: 0 auto 1.25rem; } .done-card { background: var(--card); border-radius: var(--radius); padding: 2.5rem 1.5rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); font-size: 1.3rem; } .done-card .big-score { font-size: 3rem; font-weight: 800; margin: 0.75rem 0; } .done-card ul { list-style: none; margin: 1rem 0; } .done-card li { margin: 0.3rem 0; } .done-card button { font-size: 1.2rem; font-weight: 700; font-family: inherit; background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 0.7rem 2rem; cursor: pointer; margin-top: 1rem; display: block; width: 100%; } .done-card button.secondary { background: var(--good-bg); color: var(--good); border: 2px solid var(--good); } /* ---------- parent dashboard ---------- */ .parent { text-align: left; } .parent h1 { text-align: center; margin-bottom: 1.5rem; clear: both; } .parent h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; border-bottom: 2px solid #e8e2d0; padding-bottom: 0.3rem; } #pin-gate { text-align: center; } #pin-form input { font-size: 1.5rem; text-align: center; width: 180px; padding: 0.5rem; border: 2px solid var(--accent); border-radius: 10px; margin-right: 0.5rem; } #pin-form button, .inline-form button, #list-form button, .row-actions button, .toggle-btns button { font-size: 1rem; font-family: inherit; font-weight: 700; background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 0.6rem 1.2rem; cursor: pointer; } button.secondary { background: var(--muted); } button.danger { background: var(--bad); } .inline-form { display: flex; gap: 0.5rem; margin: 0.75rem 0; flex-wrap: wrap; } .inline-form input, .inline-form select, #list-form input, #list-form textarea { font-size: 1rem; font-family: inherit; padding: 0.55rem; border: 2px solid #d8d2c0; border-radius: 10px; } .inline-form input { flex: 1; min-width: 140px; } .item-row { display: flex; align-items: center; gap: 0.6rem; background: var(--card); border-radius: 10px; padding: 0.45rem 0.75rem; margin: 0.2rem 0; box-shadow: 0 1px 4px rgba(45, 49, 66, 0.06); flex-wrap: wrap; } .item-row .grow { flex: 1; min-width: 120px; } .muted-label { font-size: 0.82rem; color: var(--muted); white-space: nowrap; } .item-row select { padding: 0.4rem; border-radius: 8px; border: 2px solid #d8d2c0; font-family: inherit; } .item-row button { font-size: 0.9rem; font-family: inherit; border: none; border-radius: 8px; padding: 0.4rem 0.9rem; cursor: pointer; color: #fff; background: var(--accent); } #list-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; } #list-editor-details summary { cursor: pointer; font-weight: 700; margin: 0.75rem 0; } .row-actions { display: flex; gap: 0.5rem; } .results-student { margin-bottom: 1.25rem; } .results-student h3 { margin-bottom: 0.4rem; } table.results { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 0.95rem; } table.results th, table.results td { padding: 0.5rem 0.75rem; text-align: left; } table.results th { background: #efe9d8; } table.results tr:nth-child(even) td { background: #faf7ee; } .score-good { color: var(--good); font-weight: 700; } .score-bad { color: var(--bad); font-weight: 700; } .link-btn { display: inline-block; background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 1rem; } /* ---------- kid home tabs ---------- */ .kid-nav { display: flex; gap: 0.5rem; justify-content: center; margin: 0.5rem 0 1.5rem; clear: both; flex-wrap: wrap; } .nav-pill { font-family: inherit; font-size: 1rem; font-weight: 700; background: var(--card); color: var(--muted); border: 2px solid #e8e2d0; border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; } .nav-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); } .tab-panel { text-align: left; } /* ---------- today list / item rows (shared by agenda + course pages) ---------- */ .today-row { display: flex; align-items: center; gap: 0.85rem; width: 100%; background: var(--card); border: none; border-radius: 14px; padding: 0.9rem 1.1rem; margin: 0.5rem 0; cursor: pointer; text-align: left; font-family: inherit; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); } .today-row .row-check { font-size: 1.4rem; flex-shrink: 0; } .today-row .row-title { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--ink); } .today-row .row-title small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; } .today-row .row-badge { font-size: 0.85rem; color: var(--muted); font-weight: 700; white-space: nowrap; } /* ---------- course cards ---------- */ .course-cards { display: flex; flex-direction: column; gap: 0.75rem; } .course-card { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; background: var(--card); border: none; border-left: 6px solid var(--accent); border-radius: 14px; padding: 1rem 1.2rem; cursor: pointer; font-family: inherit; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); } .course-card strong { font-size: 1.15rem; } .course-subject { color: var(--muted); font-size: 0.9rem; } .course-pct { font-size: 0.85rem; color: var(--muted); } .progress-track.small { height: 8px; margin: 0.2rem 0; } /* student course unit cards + gradebook unit cards (shared button-toggle style) */ #course-units .unit-block, .gb-units .unit-block { background: var(--card); border-radius: 16px; margin: 0.75rem 0; box-shadow: 0 2px 10px rgba(45, 49, 66, 0.08); overflow: hidden; } #course-units .unit-toggle, .gb-units .unit-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 1rem 1.1rem; cursor: pointer; font-family: inherit; text-align: left; gap: 0.75rem; border-bottom: 2px solid transparent; transition: border-color 0.15s; } #course-units .unit-block.open .unit-toggle, .gb-units .unit-block.open .unit-toggle { border-bottom-color: var(--accent); } #course-units .unit-toggle-left, .gb-units .unit-toggle-left { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; } #course-units .unit-num-badge, .gb-units .unit-num-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent); color: #fff; padding: 0.2em 0.55em; border-radius: 6px; flex-shrink: 0; } #course-units .unit-title-text, .gb-units .unit-title-text { font-size: 1.05rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #course-units .unit-toggle-right, .gb-units .unit-toggle-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; } #course-units .unit-done-count { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; } #course-units .unit-mini-progress { width: 56px; height: 6px; margin: 0; } #course-units .unit-chevron, .gb-units .unit-chevron { font-size: 1.15rem; color: var(--muted); display: inline-block; transition: transform 0.22s ease; } #course-units .unit-block:not(.open) .unit-chevron, .gb-units .unit-block:not(.open) .unit-chevron { transform: rotate(-90deg); } #course-units .unit-items-list, .gb-units .unit-items-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 0.85rem; } #course-units .unit-block.open .unit-items-list, .gb-units .unit-block.open .unit-items-list { max-height: 4000px; padding: 0.1rem 0.85rem 0.85rem; } .gb-units .unit-item-count { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; } .gb-overall { margin-top: 1.25rem; } .gb-overall strong { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; } /* admin course unit cards */ #cd-units .unit-block { background: var(--card); border-radius: 16px; margin: 0.75rem 0; padding: 0; box-shadow: 0 2px 10px rgba(45, 49, 66, 0.08); overflow: hidden; } #cd-units .unit-toggle { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; cursor: pointer; gap: 0.75rem; user-select: none; border-bottom: 2px solid transparent; transition: border-color 0.15s; } #cd-units .unit-block.open .unit-toggle { border-bottom-color: var(--accent); } #cd-units .unit-toggle-left { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; } #cd-units .unit-num-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent); color: #fff; padding: 0.2em 0.55em; border-radius: 6px; flex-shrink: 0; } #cd-units .unit-title-text { font-size: 1rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #cd-units .unit-toggle-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; } #cd-units .unit-item-count { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; } #cd-units .unit-chevron { font-size: 1.1rem; color: var(--muted); transition: transform 0.22s ease; } #cd-units .unit-block:not(.open) .unit-chevron { transform: rotate(-90deg); } #cd-units .unit-items-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 0.85rem; } #cd-units .unit-block.open .unit-items-list { max-height: 4000px; padding: 0.5rem 0.85rem 0.85rem; } /* ---------- item viewers (lesson/assignment/quiz) ---------- */ .item-card { background: var(--card); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: 0 4px 12px rgba(45, 49, 66, 0.08); text-align: left; } .item-kicker { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; } .item-card h1 { font-size: 1.5rem; margin-bottom: 1rem; } .lesson-body { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; } .lesson-body img, .lesson-body iframe { max-width: 100%; border-radius: 10px; } .points-label { color: var(--muted); font-weight: 700; margin-bottom: 0.75rem; } .status-banner { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 12px; background: #fdf1d6; font-weight: 700; } .status-banner.good { background: var(--good-bg); color: var(--good); } /* ---------- quiz ---------- */ .quiz-question { margin-bottom: 1.25rem; } .q-prompt { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.05rem; } .quiz-choice { display: block; margin: 0.35rem 0; font-size: 1rem; cursor: pointer; } .quiz-choice input { margin-right: 0.5rem; } .quiz-short-input { width: 100%; max-width: 320px; font-size: 1rem; font-family: inherit; padding: 0.5rem; border: 2px solid #d8d2c0; border-radius: 10px; } .quiz-question.review .q-your-answer { color: var(--muted); } .quiz-question.review .q-correct-answer { color: var(--good); font-weight: 700; } /* ---------- flashcards ---------- */ .flip-card { text-align: center; } .flash-face { font-size: 1.6rem; font-weight: 700; padding: 2rem 1rem; min-height: 3rem; } #flash-back { color: var(--accent-dark); } .flash-grade-row { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; } .flash-grade-row[hidden] { display: none; } .grade-btn { font-size: 1.1rem; font-weight: 700; font-family: inherit; border: none; border-radius: 12px; padding: 0.75rem 1.5rem; cursor: pointer; color: #fff; } .grade-btn.again { background: var(--bad); } .grade-btn.got-it { background: var(--good); } /* ---------- admin console ---------- */ .admin-header { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--card); padding: 1rem 1.5rem; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); } .admin-logo { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; } .admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; } .admin-main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; } .admin-main h1 { margin-bottom: 1rem; clear: both; } .admin-main h2 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; } .panel { text-align: left; } /* ---------- filter bar ---------- */ .filter-bar { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; } .filter-bar input[type="search"] { flex: 1; font-family: inherit; font-size: 0.95rem; padding: 0.4rem 0.7rem; border: 2px solid #d8d2c0; border-radius: 10px; } /* ---------- mastery progress ---------- */ .mastery-stat { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; } .mastery-bar { display: inline-block; width: 70px; height: 7px; background: #e8e2d0; border-radius: 4px; overflow: hidden; flex-shrink: 0; } .mastery-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; } /* ---------- assign popup ---------- */ #assign-popup { position: absolute; z-index: 200; background: var(--card); border: 2px solid #d8d2c0; border-radius: 12px; padding: 0.6rem; box-shadow: 0 4px 18px rgba(0,0,0,0.15); min-width: 160px; } .assign-popup-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.4rem; } #assign-popup-students { display: flex; flex-direction: column; gap: 0.3rem; } .assign-popup-student { font-size: 0.95rem; font-family: inherit; font-weight: 600; background: #f5f1e8; color: var(--ink); border: none; border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer; text-align: left; } .assign-popup-student:hover { background: var(--accent); color: #fff; } /* ---------- hidden list items ---------- */ .list-hidden-item { opacity: 0.45; } /* ---------- toggle button rows (new/bulk import) ---------- */ .toggle-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; } .toggle-btns button.active { background: var(--accent) !important; color: #fff !important; } .section-form-title { font-size: 1rem; font-weight: 700; margin: 0 0 0; color: var(--ink); } /* 2-column layout for wide screens */ .panel-cols { display: flex; flex-direction: column; gap: 1.5rem; } .panel-col { min-width: 0; } @media (min-width: 1100px) { .panel-cols { flex-direction: row; align-items: start; gap: 2.5rem; } .panel-col { flex: 1; } .panel-col:first-child { flex: 1.2; } } .admin-card { background: var(--card); border-radius: 14px; padding: 1.25rem; margin: 0.75rem 0; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); display: flex; flex-direction: column; gap: 0.75rem; } .admin-card label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; } .admin-card input, .admin-card select, .admin-card textarea { font-family: inherit; font-size: 1rem; padding: 0.5rem; border: 2px solid #d8d2c0; border-radius: 10px; font-weight: 400; } .checkbox-label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; margin-right: 1rem; } /* admin-card sets label { flex-direction: column } — override for checkboxes */ .admin-card .checkbox-label { flex-direction: row; font-size: 1rem; } .color-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; } .archived-badge { background: #e8e2d0; color: var(--muted); font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 999px; } /* ---------- list/deck groups ---------- */ .list-group { margin-bottom: 1rem; } .list-group-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #5a5240; background: #e8e2d0; padding: 0.55rem 0.9rem; border-radius: 8px; margin-bottom: 0.4rem; cursor: pointer; user-select: none; list-style: none; transition: background 0.15s; } .list-group-header:hover { background: #ddd7c6; } .list-group-header::-webkit-details-marker { display: none; } .list-group-header::before { content: '▼'; font-size: 0.75rem; transition: transform 0.2s; flex-shrink: 0; } .list-group:not([open]) .list-group-header::before { transform: rotate(-90deg); } /* ---------- roster chips ---------- */ #cd-roster { display: flex; flex-wrap: wrap; gap: 0.5rem; } #cd-roster .checkbox-label { margin-right: 0; background: #f7f2e3; border: 1.5px solid #d8d2c0; border-radius: 999px; padding: 0.3rem 0.85rem; cursor: pointer; font-size: 0.95rem; transition: background 0.12s, border-color 0.12s; } #cd-roster .checkbox-label:hover { border-color: var(--accent); } /* ---------- admin list panels — 2-col grid on wider screens ---------- */ #course-rows, #student-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.4rem; } #course-rows .item-row, #student-rows .item-row { margin: 0; } button.small { font-size: 0.85rem; padding: 0.4rem 0.8rem; } button.tiny { font-size: 0.75rem; padding: 0.15rem 0.5rem; } .hint.tiny { font-size: 0.8rem; margin: 0.25rem 0; } .unit-block { background: var(--card); border-radius: 14px; padding: 1rem 1.1rem; margin: 0.75rem 0; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); } .unit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .unit-header h3 { font-size: 1.05rem; } .quiz-q-row { display: grid; grid-template-columns: 9rem 1fr 1fr 1fr 4rem auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; } .quiz-q-row select, .quiz-q-row input { font-family: inherit; font-size: 0.9rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px; } /* ---------- planner ---------- */ .week-label { font-weight: 700; } /* planner week view */ .planner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: 1rem; } .planner-day { background: var(--card); border-radius: 14px; padding: 0.85rem; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06); min-height: 120px; display: flex; flex-direction: column; } .planner-day h3 { font-size: 0.95rem; margin-bottom: 0.5rem; } .planner-day h3 small { display: block; font-weight: 400; color: var(--muted); } /* planner month view */ .planner-grid.planner-month { display: block; } .planner-month-header { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-bottom: 3px; } .planner-month-header div { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); padding: 0.2rem 0; } .planner-month-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-bottom: 3px; } .planner-day-compact { border-radius: 8px; padding: 0.5rem; min-height: 60px; display: flex; flex-direction: column; } .planner-day-compact h3 { font-size: 0.75rem; margin-bottom: 0.3rem; } .planner-day-compact .planner-task { font-size: 0.72rem; padding: 0.2rem 0.4rem; } .planner-day-compact .planner-task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90%; } .planner-day-compact .secondary.small { font-size: 0.7rem; padding: 0.2rem 0.4rem; margin-top: 0.2rem; } /* view toggle active state */ .secondary.active-view { background: var(--accent); color: #fff; } .planner-tasks { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; min-height: 1.5rem; } .planner-task { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; background: #f7f2e3; border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.85rem; } .planner-task.done { opacity: 0.55; text-decoration: line-through; } .planner-task[draggable] { cursor: grab; } .planner-task[draggable]:active { cursor: grabbing; } .planner-task.dragging { opacity: 0.35; } .planner-test-badge { background: color-mix(in srgb, var(--accent) 18%, var(--card)); border-left: 3px solid var(--accent); font-size: 0.78rem; cursor: default; pointer-events: none; } .planner-tasks.drop-target { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 8px; outline: 2px dashed var(--accent); } .add-task-form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; } .add-task-form select, .add-task-form input { font-size: 0.85rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px; font-family: inherit; } .or-divider { text-align: center; font-size: 0.75rem; color: var(--muted); } .task-save-btn { font-size: 0.85rem; } .grade-input { width: 4.5rem; padding: 0.4rem; border: 2px solid #d8d2c0; border-radius: 8px; font-family: inherit; } @media (max-width: 700px) { .planner-grid { grid-template-columns: 1fr; } .quiz-q-row { grid-template-columns: 1fr 1fr; } } @media (max-width: 480px) { .app-title { font-size: 1.8rem; } .spell-input { font-size: 1.6rem; } .study-word { font-size: 2rem; } .today-row .row-title { font-size: 0.95rem; } } /* ---------- page scanning ---------- */ .scan-card { background: var(--card); border: 1.5px dashed var(--accent); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; } .scan-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; } .scan-controls button { flex: 0 0 auto; } .scan-controls button.secondary { background: var(--muted); } .scan-controls button:disabled { background: #ccc; cursor: not-allowed; } #scan-preview { max-width: 220px; max-height: 220px; border-radius: 8px; object-fit: contain; } /* ---------- scan config settings ---------- */ .scan-provider-box { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; } .scan-provider-box legend { font-weight: 600; padding: 0 0.3rem; } .radio-label { display: block; margin: 0.3rem 0; cursor: pointer; } .radio-label input { margin-right: 0.4rem; } /* ---------- new features: locked items, due dates, overdue, history, modal ---------- */ .today-row.locked { opacity: 0.55; cursor: not-allowed; background: var(--bg); border-color: var(--muted); } .due-date { color: var(--muted); font-size: 0.78rem; display: block; } td.overdue, .overdue { background: var(--bad-bg) !important; } .attempt-history { margin: 0.75rem 0; font-size: 0.9rem; } .attempt-history summary { cursor: pointer; color: var(--accent); } .attempt-history table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; } .attempt-history td { border: 1px solid #ddd; padding: 0.3rem 0.5rem; } .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal-box { background: var(--card); border-radius: var(--radius); padding: 1.5rem; max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto; } .modal-box h3 { margin-bottom: 1rem; } .modal-box .secondary { margin-top: 1rem; } /* ---------- evidence forms ---------- */ .evidence-form { margin: 0.75rem 0; border: 1.5px dashed var(--accent); border-radius: 10px; padding: 0.75rem; } .evidence-form summary { cursor: pointer; color: var(--accent); font-weight: 600; } .evidence-inner { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; } .evidence-inner textarea { width: 100%; border: 1.5px solid #d8d2c0; border-radius: 8px; padding: 0.5rem; font-family: inherit; font-size: 1rem; resize: vertical; } .evidence-photo-row { display: flex; align-items: center; gap: 0.5rem; } .evidence-note-label select { width: 100%; padding: 0.4rem 0.6rem; border: 1.5px solid #d8d2c0; border-radius: 8px; font-family: inherit; } .parent-comment { background: var(--good-bg); border-radius: 10px; padding: 0.75rem 1rem; margin: 0.75rem 0; color: var(--good); } .status-banner.bad { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 0.75rem 1rem; margin: 0.75rem 0; } /* ---------- rich text editor (lesson input) ---------- */ .rte-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; } .rte-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; padding: 0.4rem 0.6rem; background: #f0ead8; border: 2px solid #d8d2c0; border-bottom: none; border-radius: 10px 10px 0 0; } .rte-btn { font-size: 0.85rem; font-family: inherit; font-weight: 600; background: var(--card); color: var(--ink); border: 1.5px solid #c8c2b0; border-radius: 6px; padding: 0.25rem 0.55rem; cursor: pointer; line-height: 1.4; } .rte-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); } .rte-sep { display: inline-block; width: 1px; height: 1.4rem; background: #c8c2b0; margin: 0 0.15rem; flex-shrink: 0; } .rte-editor { min-height: 200px; outline: none; cursor: text; border: 2px solid #d8d2c0; border-radius: 0 0 10px 10px; padding: 0.75rem; margin-bottom: 0; font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; } .rte-editor:focus { border-color: var(--accent); } .rte-editor:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; white-space: pre-wrap; } .rte-editor h2 { font-size: 1.3rem; margin: 0.6rem 0 0.3rem; } .rte-editor h3 { font-size: 1.1rem; margin: 0.5rem 0 0.25rem; } .rte-editor ul, .rte-editor ol { margin: 0.4rem 0 0.4rem 1.5rem; } .rte-editor a { color: var(--accent-dark); } .rte-editor img, .rte-editor iframe { max-width: 100%; border-radius: 10px; } /* ---------- offline 3-state tasks ---------- */ .today-row-offline { background: var(--card); border: 1.5px solid #e2dccf; border-radius: 14px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; text-align: left; } .offline-main { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .offline-main .row-title { flex: 1; font-weight: 600; } .offline-controls { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; } .offline-status-btn { padding: 0.3rem 0.75rem; border: 1.5px solid var(--muted); border-radius: 20px; background: transparent; font-size: 0.85rem; cursor: pointer; } .offline-status-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; } .offline-evidence-form { border: none; padding: 0; } .offline-evidence-form summary { font-size: 0.85rem; color: var(--muted); cursor: pointer; } /* ---------- grading queue cards ---------- */ .grading-card { background: var(--card); border: 1.5px solid #e2dccf; border-radius: 14px; padding: 1rem; margin-bottom: 0.75rem; } .grading-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; } .grading-header .grow { flex: 1; font-weight: 600; } .grading-footer { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.6rem; } .comment-input { flex: 1; min-width: 140px; padding: 0.4rem 0.6rem; border: 1.5px solid #d8d2c0; border-radius: 8px; font-family: inherit; } .badge-tag { background: var(--gold); color: #333; border-radius: 20px; padding: 0.2rem 0.6rem; font-size: 0.8rem; font-weight: 600; } /* ---------- themes ---------- */ body.theme-green { --accent: #2e9e5b; --accent-dark: #247a47; --bg: #f0faf4; } body.theme-purple { --accent: #7c5cbf; --accent-dark: #6245a0; --bg: #f8f4ff; } body.theme-orange { --accent: #e8802a; --accent-dark: #c96a1a; --bg: #fff8f0; } body.theme-pink { --accent: #d45d8a; --accent-dark: #b4487a; --bg: #fff0f5; } /* ---------- kid top bar + theme picker ---------- */ .kid-topbar { display: flex; justify-content: space-between; align-items: center; } .theme-picker-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 0.25rem 0.5rem; color: var(--muted); line-height: 1; } .theme-dots { display: flex; gap: 0.6rem; justify-content: flex-end; margin-bottom: 0.75rem; } .theme-dot { width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform 0.12s, border-color 0.12s; } .theme-dot:hover { transform: scale(1.2); } .theme-dot.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg); } .theme-dot.theme-blue { background: #4f86f7; } .theme-dot.theme-green { background: #2e9e5b; } .theme-dot.theme-purple { background: #7c5cbf; } .theme-dot.theme-orange { background: #e8802a; } .theme-dot.theme-pink { background: #d45d8a; } /* ---------- celebration overlay ---------- */ #celebration-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; } #celebration-content { background: var(--card); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; max-width: 360px; width: 92%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); animation: pop-in 0.25s ease; } @keyframes pop-in { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } } .celebration-emoji { font-size: 5rem; animation: bounce 0.6s ease infinite alternate; display: block; } @keyframes bounce { to { transform: translateY(-14px); } } #celebration-content h2 { font-size: 1.8rem; margin: 0.5rem 0 1rem; } .streak-badge { font-size: 2.6rem; font-weight: 800; color: var(--accent); } .streak-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; } .best-streak-label { font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-bottom: 0.5rem; } /* ---------- streak pill on kid home ---------- */ .streak-pill { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--good-bg); color: var(--good); border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; } /* ---------- feedback indicator ---------- */ .feedback-badge { display: inline-block; background: var(--gold); color: #333; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 0.1rem 0.45rem; margin-left: 0.35rem; vertical-align: middle; } .parent-comment { background: var(--good-bg); border-radius: 10px; padding: 0.9rem 1rem; margin: 0.75rem 0; color: var(--good); border-left: 4px solid var(--good); font-size: 1.05rem; } /* ---------- print list button ---------- */ .big-btn.print-list { background: #6b7280; color: #fff; font-size: 1.2rem; } /* ---------- grading badge on admin nav ---------- */ .nav-pill.grading-pending { background: var(--bad); color: #fff; border-color: var(--bad); } /* ---------- admin theme swatches ---------- */ .theme-swatch-row { display: flex; gap: 0.4rem; align-items: center; } .theme-swatch { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.1s; } .theme-swatch:hover { transform: scale(1.2); } .theme-swatch.selected { border-color: var(--ink); } .theme-swatch.theme-blue { background: #4f86f7; } .theme-swatch.theme-green { background: #2e9e5b; } .theme-swatch.theme-purple { background: #7c5cbf; } .theme-swatch.theme-orange { background: #e8802a; } .theme-swatch.theme-pink { background: #d45d8a; } /* ---------- student portal: test history ---------- */ .thr-heading { margin: 1.5rem 0 0.5rem; font-size: 1rem; } .test-history-row { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.35rem 0; border-bottom: 1px solid var(--muted); font-size: 0.9rem; flex-wrap: wrap; } .thr-date { color: var(--muted); min-width: 6rem; flex-shrink: 0; } .thr-list { flex: 1; min-width: 8rem; } .thr-score { margin-left: auto; font-weight: 600; white-space: nowrap; } /* ---------- toast notification ---------- */ #toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; background: var(--good); color: #fff; padding: 0.7rem 1.2rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 18px rgba(0,0,0,0.18); transition: opacity 0.35s, transform 0.35s; opacity: 1; transform: translateY(0); } #toast.toast-error { background: var(--bad); } #toast.toast-out { opacity: 0; transform: translateY(0.5rem); } .planner-pending { border: 2px dashed var(--accent) !important; background: color-mix(in srgb, var(--accent) 10%, var(--card)) !important; color: var(--accent) !important; opacity: 0.85; cursor: default; }