Confetti only shows on the kid picker screen, not inside the student's account. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1374 lines
59 KiB
CSS
1374 lines
59 KiB
CSS
* { 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;
|
|
}
|
|
|
|
#view-course,
|
|
#view-lesson,
|
|
#view-assignment,
|
|
#view-quiz,
|
|
#view-flashcards,
|
|
#view-practice,
|
|
#view-test,
|
|
#view-worksheet {
|
|
max-width: 960px;
|
|
text-align: left;
|
|
}
|
|
|
|
#view-crossword {
|
|
max-width: 100%;
|
|
text-align: left;
|
|
padding-left: 1.25rem;
|
|
padding-right: 1.25rem;
|
|
}
|
|
|
|
.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; }
|
|
|
|
/* ---------- parent lock screen ---------- */
|
|
body:has(#console[hidden]) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(ellipse at 20% 75%, rgba(79,134,247,0.13) 0%, transparent 55%),
|
|
radial-gradient(ellipse at 80% 25%, rgba(246,185,59,0.11) 0%, transparent 55%),
|
|
radial-gradient(ellipse at 55% 90%, rgba(46,158,91,0.08) 0%, transparent 45%),
|
|
var(--bg);
|
|
}
|
|
body:has(#console[hidden])::before {
|
|
content: '';
|
|
position: fixed; inset: 0; pointer-events: none;
|
|
background:
|
|
radial-gradient(circle 180px at 10% 15%, rgba(79,134,247,0.09) 0%, transparent 100%),
|
|
radial-gradient(circle 140px at 90% 85%, rgba(246,185,59,0.1) 0%, transparent 100%);
|
|
}
|
|
|
|
#pin-gate {
|
|
background: var(--card);
|
|
border-radius: 28px;
|
|
padding: 2.5rem 2.5rem 2rem;
|
|
box-shadow: 0 8px 48px rgba(45,49,66,0.14), 0 1px 0 rgba(45,49,66,0.06);
|
|
max-width: 360px;
|
|
width: calc(100% - 2.5rem);
|
|
margin: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.pin-deco {
|
|
font-size: 2rem;
|
|
letter-spacing: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* ---------- kid picker (dark home screen) ---------- */
|
|
body:has(#view-home:not([hidden])) {
|
|
background: linear-gradient(145deg, #0f1628 0%, #1a0f3e 100%);
|
|
}
|
|
body:has(#view-home:not([hidden])) .app-title { color: #fff; }
|
|
body:has(#view-home:not([hidden])) .subtitle,
|
|
body:has(#view-home:not([hidden])) #no-kids { color: rgba(255,255,255,0.55); }
|
|
body:has(#view-home:not([hidden])) a.link-btn { color: rgba(255,255,255,0.35); }
|
|
body:has(#view-home:not([hidden])) .page-confetti span { opacity: 0.7; }
|
|
|
|
@keyframes confetti-float {
|
|
0%, 100% { transform: translateY(0px) rotate(-4deg); opacity: 0.45; }
|
|
50% { transform: translateY(-20px) rotate(6deg); opacity: 0.75; }
|
|
}
|
|
.page-confetti {
|
|
position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
|
|
display: none;
|
|
}
|
|
body:has(#view-home:not([hidden])) .page-confetti { display: block; }
|
|
.page-confetti span {
|
|
position: absolute; font-size: 1.8rem; user-select: none;
|
|
animation: confetti-float ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes card-enter {
|
|
from { opacity: 0; transform: translateY(26px) scale(0.93); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
@keyframes emoji-wobble {
|
|
0% { transform: rotate(0deg) scale(1); }
|
|
20% { transform: rotate(-15deg) scale(1.18); }
|
|
50% { transform: rotate(13deg) scale(1.14); }
|
|
75% { transform: rotate(-7deg) scale(1.07); }
|
|
100% { transform: rotate(0deg) scale(1); }
|
|
}
|
|
@keyframes glow-breathe {
|
|
0%, 100% { opacity: 0.42; }
|
|
50% { opacity: 0.65; }
|
|
}
|
|
|
|
.kid-cards {
|
|
display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
|
|
margin-bottom: 2.5rem;
|
|
position: relative; z-index: 1;
|
|
}
|
|
.kid-card {
|
|
background: var(--card);
|
|
border: none;
|
|
border-top: 5px solid var(--kid-accent, var(--accent));
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem 2rem;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
min-width: 140px;
|
|
animation: card-enter 0.42s ease backwards;
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
.kid-card::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -2px;
|
|
border-radius: var(--radius);
|
|
background: var(--kid-accent, var(--accent));
|
|
filter: blur(22px);
|
|
opacity: 0.42;
|
|
z-index: -1;
|
|
animation: glow-breathe 3s ease-in-out infinite;
|
|
transition: opacity 0.25s ease, filter 0.25s ease;
|
|
}
|
|
.kid-card:hover {
|
|
transform: translateY(-10px) scale(1.08);
|
|
}
|
|
.kid-card:hover::after {
|
|
opacity: 0.92;
|
|
filter: blur(32px);
|
|
animation-play-state: paused;
|
|
}
|
|
.kid-card:hover .avatar { animation: emoji-wobble 0.48s ease; }
|
|
.kid-card .avatar { display: block; font-size: 3rem; margin-bottom: 0.5rem; }
|
|
|
|
.app-title, .subtitle { position: relative; z-index: 1; }
|
|
|
|
/* ---------- 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.5s ease-out; }
|
|
.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);
|
|
transition: transform 0.12s;
|
|
}
|
|
.check-btn:active { transform: scale(0.94) translateY(2px); 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; }
|
|
@keyframes tab-slide-right {
|
|
from { transform: translateX(56px); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
@keyframes tab-slide-left {
|
|
from { transform: translateX(-56px); opacity: 0; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
.tab-panel.sliding-right { animation: tab-slide-right 0.26s ease; }
|
|
.tab-panel.sliding-left { animation: tab-slide-left 0.26s ease; }
|
|
|
|
/* ---------- 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; }
|
|
.lesson-body h1, .lesson-body h2, .lesson-body h3 { font-weight: 700; margin: 1.1rem 0 0.4rem; line-height: 1.3; }
|
|
.lesson-body h1 { font-size: 1.35rem; }
|
|
.lesson-body h2 { font-size: 1.15rem; }
|
|
.lesson-body h3 { font-size: 1rem; }
|
|
.lesson-body p { margin-bottom: 0.75rem; }
|
|
.lesson-body ul, .lesson-body ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
|
|
.lesson-body li { margin-bottom: 0.25rem; }
|
|
.lesson-body blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 0.75rem 0; color: var(--muted); font-style: italic; }
|
|
.lesson-body a { color: var(--accent); text-decoration: underline; }
|
|
.lesson-body hr { border: none; border-top: 1px solid #ddd; margin: 1rem 0; }
|
|
.next-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
|
|
.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); }
|
|
@keyframes card-flash-correct {
|
|
0% { background: var(--card); }
|
|
30% { background: color-mix(in srgb, var(--good) 25%, var(--card)); }
|
|
100% { background: var(--card); }
|
|
}
|
|
@keyframes card-flash-wrong {
|
|
0% { background: var(--card); }
|
|
30% { background: color-mix(in srgb, var(--bad) 20%, var(--card)); }
|
|
100% { background: var(--card); }
|
|
}
|
|
.word-card.flash-correct { animation: card-flash-correct 0.55s ease; }
|
|
.word-card.flash-wrong { animation: card-flash-wrong 0.45s ease; }
|
|
@keyframes flash-flip-out {
|
|
from { transform: perspective(800px) rotateY(0deg); }
|
|
to { transform: perspective(800px) rotateY(90deg); }
|
|
}
|
|
@keyframes flash-flip-in {
|
|
from { transform: perspective(800px) rotateY(-90deg); }
|
|
to { transform: perspective(800px) rotateY(0deg); }
|
|
}
|
|
#flash-card.flip-out { animation: flash-flip-out 0.18s ease-in forwards; }
|
|
#flash-card.flip-in { animation: flash-flip-in 0.18s ease-out forwards; }
|
|
|
|
/* ---------- 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; }
|
|
|
|
/* ---------- parent dashboard card (on student home) ---------- */
|
|
.parent-dash-card {
|
|
display: inline-flex; align-items: center; gap: 0.6rem;
|
|
background: rgba(255,255,255,0.12);
|
|
color: rgba(255,255,255,0.7);
|
|
border: 1.5px solid rgba(255,255,255,0.18);
|
|
border-radius: 14px;
|
|
padding: 0.65rem 1.25rem;
|
|
font-size: 0.95rem; font-weight: 600;
|
|
text-decoration: none;
|
|
backdrop-filter: blur(8px);
|
|
transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
|
|
cursor: pointer;
|
|
position: relative; z-index: 1;
|
|
}
|
|
.parent-dash-card:hover {
|
|
background: rgba(255,255,255,0.22);
|
|
color: #fff;
|
|
border-color: rgba(255,255,255,0.35);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* ---------- 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-task.insert-before { border-top: 2px solid var(--accent); }
|
|
.planner-done-btn { flex-shrink: 0; width: 20px; height: 20px; padding: 0; border: 1.5px solid #bbb; border-radius: 4px; background: transparent; color: transparent; font-size: 0.72rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s, background 0.15s; }
|
|
.planner-done-btn.is-done { border-color: var(--good); color: var(--good); background: var(--good-bg); }
|
|
.planner-day.today { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.planner-day.today > h3 { color: var(--accent); }
|
|
.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; }
|
|
.grade-score-row { display: flex; align-items: center; gap: 0.4rem; }
|
|
.grade-max-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
|
|
|
|
@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; }
|
|
body.theme-red { --accent: #e84040; --accent-dark: #c42828; --bg: #fff5f5; }
|
|
body.theme-teal { --accent: #20a8a0; --accent-dark: #178880; --bg: #f0faf9; }
|
|
body.theme-yellow { --accent: #c8960c; --accent-dark: #a87a06; --bg: #fffbf0; }
|
|
body.theme-indigo { --accent: #5b6abf; --accent-dark: #4a57a0; --bg: #f4f5ff; }
|
|
|
|
/* ---------- kid top bar + theme picker ---------- */
|
|
.kid-topbar { display: flex; justify-content: space-between; align-items: center; }
|
|
.kid-topbar-actions { display: flex; gap: 0.25rem; 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; }
|
|
.theme-dot.theme-red { background: #e84040; }
|
|
.theme-dot.theme-teal { background: #20a8a0; }
|
|
.theme-dot.theme-yellow { background: #c8960c; }
|
|
.theme-dot.theme-indigo { background: #5b6abf; }
|
|
|
|
/* ---------- icon / animal picker ---------- */
|
|
.icon-grid {
|
|
display: grid; grid-template-columns: repeat(8, 1fr);
|
|
gap: 0.35rem; margin-bottom: 0.75rem;
|
|
background: var(--card); border-radius: var(--radius);
|
|
padding: 0.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.1);
|
|
}
|
|
.icon-choice {
|
|
font-size: 1.6rem; background: none; border: 2px solid transparent;
|
|
border-radius: 0.5rem; cursor: pointer; padding: 0.2rem;
|
|
transition: transform 0.1s, border-color 0.1s;
|
|
}
|
|
.icon-choice:hover { transform: scale(1.2); }
|
|
.icon-choice.active { border-color: var(--accent); background: var(--bg); }
|
|
|
|
/* ---------- background patterns ---------- */
|
|
body.bg-dots {
|
|
background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 2.5px, transparent 2.5px);
|
|
background-size: 26px 26px;
|
|
}
|
|
body.bg-stripes {
|
|
background-image: repeating-linear-gradient(
|
|
45deg, transparent, transparent 14px,
|
|
color-mix(in srgb, var(--accent) 18%, transparent) 14px,
|
|
color-mix(in srgb, var(--accent) 18%, transparent) 28px
|
|
);
|
|
}
|
|
body.bg-grid {
|
|
background-image:
|
|
linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px),
|
|
linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px);
|
|
background-size: 32px 32px;
|
|
}
|
|
body.bg-stars {
|
|
background-image:
|
|
radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 1.5px, transparent 1.5px),
|
|
radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1px),
|
|
radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 2px, transparent 2px);
|
|
background-size: 48px 48px, 28px 28px, 68px 68px;
|
|
background-position: 5px 8px, 18px 32px, 46px 18px;
|
|
}
|
|
body.bg-bubbles {
|
|
background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 18px, transparent 18px);
|
|
background-size: 64px 64px;
|
|
}
|
|
|
|
/* ---------- bg pattern picker ---------- */
|
|
.bg-pattern-panel {
|
|
display: flex; gap: 0.5rem; flex-wrap: wrap;
|
|
padding: 0.6rem 0.75rem; background: var(--card);
|
|
border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
.bg-pattern-btn {
|
|
width: 46px; height: 46px; border-radius: 8px;
|
|
border: 2.5px solid transparent; cursor: pointer;
|
|
background-color: var(--bg); flex-shrink: 0;
|
|
transition: border-color 0.15s, transform 0.15s;
|
|
}
|
|
.bg-pattern-btn:hover { transform: scale(1.12); }
|
|
.bg-pattern-btn.active { border-color: var(--accent); }
|
|
.bg-pattern-btn[data-pattern="dots"] {
|
|
background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent) 2.5px, transparent 2.5px);
|
|
background-size: 9px 9px;
|
|
}
|
|
.bg-pattern-btn[data-pattern="stripes"] {
|
|
background-image: repeating-linear-gradient(
|
|
45deg, transparent, transparent 5px,
|
|
color-mix(in srgb, var(--accent) 30%, transparent) 5px,
|
|
color-mix(in srgb, var(--accent) 30%, transparent) 10px
|
|
);
|
|
}
|
|
.bg-pattern-btn[data-pattern="grid"] {
|
|
background-image:
|
|
linear-gradient(color-mix(in srgb, var(--accent) 25%, transparent) 1px, transparent 1px),
|
|
linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, transparent) 1px, transparent 1px);
|
|
background-size: 10px 10px;
|
|
}
|
|
.bg-pattern-btn[data-pattern="stars"] {
|
|
background-image:
|
|
radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent) 1.5px, transparent 1.5px),
|
|
radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 1px);
|
|
background-size: 14px 14px, 8px 8px;
|
|
background-position: 2px 3px, 6px 10px;
|
|
}
|
|
.bg-pattern-btn[data-pattern="bubbles"] {
|
|
background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent) 8px, transparent 8px);
|
|
background-size: 22px 22px;
|
|
}
|
|
|
|
/* ---------- welcome toast ---------- */
|
|
.welcome-toast {
|
|
position: fixed; top: 50%; left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: var(--card); border-radius: var(--radius);
|
|
padding: 2.2rem 3.5rem; text-align: center;
|
|
box-shadow: 0 16px 56px rgba(0,0,0,0.22); z-index: 1000;
|
|
pointer-events: none;
|
|
animation: welcome-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
}
|
|
.welcome-emoji { display: block; font-size: 4.5rem; margin-bottom: 0.4rem; }
|
|
.welcome-name { font-size: 2.2rem; font-weight: 800; }
|
|
@keyframes welcome-in {
|
|
from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
|
|
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
|
}
|
|
@keyframes welcome-out {
|
|
to { opacity: 0; transform: translate(-50%, -54%) scale(0.88); }
|
|
}
|
|
.welcome-toast-out { animation: welcome-out 0.4s ease forwards; }
|
|
|
|
/* ---------- done stamp ---------- */
|
|
.done-stamp-wrap {
|
|
position: fixed; inset: 0;
|
|
display: flex; align-items: flex-end; justify-content: center;
|
|
padding-bottom: 10vh;
|
|
z-index: 1000; pointer-events: none;
|
|
background: rgba(0,0,0,0.06);
|
|
}
|
|
.done-stamp {
|
|
background: var(--card); border-radius: 50%;
|
|
width: 170px; height: 170px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 5.5rem;
|
|
box-shadow: 0 10px 48px rgba(0,0,0,0.22);
|
|
animation: stamp-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
}
|
|
@keyframes stamp-in {
|
|
from { transform: scale(0) rotate(-18deg); opacity: 0; }
|
|
to { transform: scale(1) rotate(0deg); opacity: 1; }
|
|
}
|
|
@keyframes stamp-out {
|
|
to { transform: scale(0.75) rotate(6deg); opacity: 0; }
|
|
}
|
|
.done-stamp-out { animation: stamp-out 0.35s ease forwards; }
|
|
|
|
/* ---------- mini celebration (confetti + toast) ---------- */
|
|
@keyframes confetti-fall {
|
|
to { transform: translateY(105vh) rotate(540deg); opacity: 0; }
|
|
}
|
|
.mini-celebration-toast {
|
|
position: fixed; top: 45%; left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: var(--card); border-radius: var(--radius);
|
|
padding: 1.6rem 3.2rem; font-size: 2.4rem; font-weight: 800;
|
|
text-align: center; white-space: nowrap;
|
|
box-shadow: 0 12px 48px rgba(0,0,0,0.28); z-index: 1000;
|
|
animation: pop-in 0.25s ease; pointer-events: none;
|
|
}
|
|
@keyframes mini-toast-out {
|
|
to { opacity: 0; transform: translate(-50%, -65%) scale(0.88); }
|
|
}
|
|
|
|
/* ---------- 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;
|
|
}
|
|
|
|
/* ---------- quiz / matching instructions ---------- */
|
|
.quiz-instructions {
|
|
background: var(--bg); border-left: 3px solid var(--accent);
|
|
border-radius: 6px; padding: 0.55rem 0.9rem;
|
|
font-size: 0.95rem; color: var(--ink);
|
|
margin-bottom: 1rem; text-align: left;
|
|
}
|
|
|
|
/* ---------- matching quiz ---------- */
|
|
.match-word-bank {
|
|
background: var(--bg); border: 2px solid var(--accent);
|
|
border-radius: var(--radius); padding: 0.75rem 1rem;
|
|
margin-bottom: 1rem; text-align: left;
|
|
}
|
|
.match-bank-list {
|
|
display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
|
|
margin-top: 0.4rem;
|
|
}
|
|
.match-bank-item { font-size: 0.95rem; }
|
|
.match-instructions { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
|
|
.match-row {
|
|
display: flex; align-items: center; gap: 0.6rem;
|
|
text-align: left;
|
|
}
|
|
.match-input {
|
|
width: 2.6rem; text-align: center; font-size: 1.1rem; font-weight: 700;
|
|
text-transform: uppercase; border: 2px solid var(--accent);
|
|
border-radius: 8px; padding: 0.3rem; flex-shrink: 0;
|
|
}
|
|
.match-clue { flex: 1; font-size: 0.95rem; }
|
|
.match-review-row {
|
|
display: flex; align-items: center; gap: 0.6rem;
|
|
text-align: left; flex-wrap: wrap;
|
|
}
|
|
.match-blank-badge {
|
|
display: inline-block; width: 2.2rem; text-align: center;
|
|
font-size: 1rem; font-weight: 700; border-radius: 6px;
|
|
padding: 0.15rem 0; flex-shrink: 0;
|
|
}
|
|
.match-blank-badge.correct { background: var(--good-bg); color: var(--good); }
|
|
.match-blank-badge.wrong { background: var(--bad-bg); color: var(--bad); }
|
|
|
|
/* admin matching pair rows */
|
|
.matching-pair-row {
|
|
display: grid; grid-template-columns: 1fr 2fr auto;
|
|
gap: 0.4rem; margin-bottom: 0.4rem; align-items: center;
|
|
}
|
|
|
|
/* ---------- 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; }
|
|
.theme-swatch.theme-red { background: #e84040; }
|
|
.theme-swatch.theme-teal { background: #20a8a0; }
|
|
.theme-swatch.theme-yellow { background: #c8960c; }
|
|
.theme-swatch.theme-indigo { background: #5b6abf; }
|
|
|
|
/* ---------- 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; }
|
|
|
|
/* ---------- planner add-task modal ---------- */
|
|
.planner-add-box { max-width: 620px; width: 95%; max-height: 88vh; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
|
|
.planner-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
|
|
.planner-modal-header h3 { margin: 0; font-size: 1.1rem; }
|
|
.day-tabs { display: flex; gap: 0.35rem; }
|
|
.day-tab { flex: 1; padding: 0.45rem 0.3rem; border: 2px solid #d8d2c0; border-radius: 8px; background: var(--bg); cursor: pointer; font-family: inherit; font-size: 0.8rem; text-align: center; line-height: 1.25; }
|
|
.day-tab span { display: block; font-weight: 700; }
|
|
.day-tab small { color: var(--muted); font-size: 0.7rem; }
|
|
.day-tab.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
|
|
.day-tab.active small { color: var(--accent); opacity: 0.75; }
|
|
.planner-item-search { width: 100%; box-sizing: border-box; padding: 0.55rem 0.75rem; font-size: 0.95rem; font-family: inherit; border: 2px solid #d8d2c0; border-radius: 10px; background: var(--bg); color: var(--ink); }
|
|
.planner-item-search:focus { outline: none; border-color: var(--accent); }
|
|
.item-list { flex: 1; overflow-y: auto; border: 1.5px solid #e0ddd0; border-radius: 10px; min-height: 180px; max-height: 340px; }
|
|
.item-group-header { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0.45rem 0.75rem 0.2rem; background: var(--bg); position: sticky; top: 0; }
|
|
.item-list-item { padding: 0.5rem 0.75rem; cursor: pointer; border-bottom: 1px solid #ede9dc; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
|
|
.item-list-item:last-child { border-bottom: none; }
|
|
.item-list-item:hover, .item-list-item:focus { background: color-mix(in srgb, var(--accent) 10%, var(--card)); outline: none; }
|
|
.item-list-item.added { background: var(--good-bg); color: var(--good); cursor: default; }
|
|
.item-list-item .item-label { flex: 1; }
|
|
.item-list-item .item-course { font-size: 0.72rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
|
|
.planner-offline-row { display: flex; gap: 0.5rem; padding-top: 0.75rem; border-top: 1.5px solid #e0ddd0; }
|
|
.planner-offline-row input { flex: 1; }
|
|
|
|
/* ---------- crossword ---------- */
|
|
.cw-layout { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; margin-top: 1rem; }
|
|
.cw-grid-wrap { overflow: auto; }
|
|
.cw-grid { display: grid; border: 2px solid #555; line-height: 1; width: fit-content; }
|
|
.cw-cell {
|
|
width: 34px; height: 34px;
|
|
background: #fff; border: 1px solid #999;
|
|
position: relative; box-sizing: border-box; flex-shrink: 0;
|
|
}
|
|
.cw-cell.black { background: #222; border-color: #222; }
|
|
.cw-cell.selected { background: color-mix(in srgb, var(--accent) 60%, #fff); }
|
|
.cw-cell.word-hi { background: color-mix(in srgb, var(--accent) 25%, #fff); }
|
|
.cw-cell.correct-word { background: #c8f0c8; }
|
|
.cw-cell.wrong-word { background: #f8d0d0; }
|
|
.cw-num {
|
|
position: absolute; top: 1px; left: 2px;
|
|
font-size: 7px; line-height: 1; color: #333;
|
|
pointer-events: none; z-index: 1;
|
|
}
|
|
.cw-input {
|
|
position: absolute; inset: 0; width: 100%; height: 100%;
|
|
border: none; background: transparent; text-align: center;
|
|
font-size: 1rem; font-weight: 700; text-transform: uppercase;
|
|
font-family: monospace; cursor: pointer; color: inherit;
|
|
padding-top: 8px; caret-color: transparent; outline: none;
|
|
}
|
|
.cw-sidebar { flex: 1; min-width: 180px; max-width: 320px; }
|
|
.cw-clues { margin-bottom: 1rem; }
|
|
.cw-clues h3 { font-size: 0.9rem; margin-bottom: 0.35rem; }
|
|
.cw-clue-list { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; }
|
|
.cw-clue-list li {
|
|
padding: 0.2rem 0.35rem; font-size: 0.85rem;
|
|
border-radius: 4px; cursor: pointer; line-height: 1.35;
|
|
}
|
|
.cw-clue-list li.word-hi { background: color-mix(in srgb, var(--accent) 25%, transparent); }
|
|
.cw-clue-list li.selected-clue { background: var(--accent); color: #fff; }
|
|
.cw-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
/* admin editor crossword rows */
|
|
.cw-entry-cols { display: flex; gap: 1.5rem; flex-wrap: wrap; }
|
|
.cw-clue-row { display: flex; gap: 0.5rem; margin-bottom: 0.35rem; align-items: center; }
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.cw-cell { background: #2a2a2a; border-color: #555; }
|
|
.cw-cell.black { background: #111; border-color: #111; }
|
|
.cw-num { color: #ccc; }
|
|
.cw-input { color: #eee; }
|
|
.cw-cell.selected { background: color-mix(in srgb, var(--accent) 50%, #2a2a2a); }
|
|
.cw-cell.word-hi { background: color-mix(in srgb, var(--accent) 25%, #2a2a2a); }
|
|
.cw-cell.correct-word { background: #1a3a1a; }
|
|
.cw-cell.wrong-word { background: #3a1a1a; }
|
|
}
|
|
|
|
/* ---------- worksheet ---------- */
|
|
.ws-header {
|
|
display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
|
|
margin-bottom: 1.25rem; font-size: 1rem;
|
|
}
|
|
.ws-name-input { width: 12rem; }
|
|
.ws-date-input { width: 7rem; }
|
|
.ws-section-title {
|
|
margin: 1.25rem 0 .5rem; font-size: 1rem; font-weight: 700;
|
|
border-bottom: 1px solid var(--border); padding-bottom: .3rem;
|
|
}
|
|
.ws-question { margin-bottom: 1rem; }
|
|
.ws-fitb { font-size: 1rem; line-height: 1.8; margin: 0; }
|
|
.ws-qnum { font-weight: 700; }
|
|
.ws-blank-input {
|
|
display: inline-block; width: 7rem; border: none;
|
|
border-bottom: 2px solid var(--accent); background: transparent;
|
|
font-size: 1rem; font-family: inherit; padding: 0 .25rem;
|
|
outline: none; margin: 0 .2rem; vertical-align: baseline;
|
|
}
|
|
.ws-blank-input:focus { border-bottom-color: var(--accent-dark); }
|
|
.ws-blank-input.ws-correct { border-bottom-color: var(--good); color: var(--good); }
|
|
.ws-blank-input.ws-wrong { border-bottom-color: var(--bad); color: var(--bad); }
|
|
.ws-correct-answer { font-size: .85rem; color: var(--good); font-style: italic; }
|
|
.ws-tf { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0; }
|
|
.ws-tf-btn {
|
|
min-width: 2.2rem; padding: .35rem .6rem; border: 2px solid var(--border);
|
|
border-radius: 6px; background: transparent; font-size: 1rem; font-weight: 700;
|
|
cursor: pointer; transition: all .15s; color: inherit;
|
|
}
|
|
.ws-tf-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
.ws-tf-btn.selected.ws-correct { background: var(--good); border-color: var(--good); }
|
|
.ws-tf-btn.selected.ws-wrong { background: var(--bad); border-color: var(--bad); }
|
|
.ws-tf-stmt { flex: 1; }
|
|
.ws-short { display: block; font-size: 1rem; margin-bottom: 1rem; }
|
|
.ws-short-answer {
|
|
display: block; width: 100%; margin-top: .4rem; resize: vertical;
|
|
border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem;
|
|
font-family: inherit; font-size: 1rem; background: var(--input-bg, transparent);
|
|
}
|
|
.ws-actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.ws-blank-input { color: #eee; }
|
|
}
|