Files
tutor-service/internal/webapp/static/styles.css

638 lines
10 KiB
CSS
Raw Normal View History

2026-04-26 18:39:09 +09:00
:root {
color-scheme: light;
--bg: #f5f7f4;
--surface: #ffffff;
--surface-muted: #eef2ec;
--text: #18201b;
--muted: #5b665f;
--line: #d8dfd5;
--accent: #19764b;
--accent-dark: #105c39;
--danger: #a93a2f;
--warn: #b45f1a;
--warn-bg: #fff6eb;
--weak: #a93a2f;
--weak-bg: #fdf2f1;
--good: #1a6b8f;
--good-bg: #eef7fb;
--strong: #19764b;
--strong-bg: #f0faf3;
--neutral: #6b7570;
--neutral-bg: #f4f5f4;
2026-04-26 18:39:09 +09:00
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2026-04-26 18:39:09 +09:00
}
button,
input,
2026-04-26 18:52:16 +09:00
textarea,
select {
2026-04-26 18:39:09 +09:00
font: inherit;
}
.workspace {
display: none;
2026-04-26 18:39:09 +09:00
grid-template-columns: minmax(260px, 320px) minmax(360px, 1fr) minmax(280px, 360px);
gap: 1px;
min-height: 100vh;
background: var(--line);
}
.setup-pane,
.practice-pane,
.feedback-pane {
background: var(--surface);
padding: 28px;
}
.practice-pane {
display: flex;
flex-direction: column;
gap: 22px;
}
.eyebrow {
margin: 0 0 10px;
color: var(--accent);
font-size: 12px;
font-weight: 750;
letter-spacing: 0.06em;
}
html[lang="ko"] .eyebrow {
text-transform: none;
letter-spacing: 0.02em;
2026-04-26 18:39:09 +09:00
}
h1,
h2 {
margin: 0;
line-height: 1.08;
}
h1 {
font-size: clamp(36px, 5vw, 64px);
line-height: 1.05;
2026-04-26 18:39:09 +09:00
}
h2 {
font-size: 22px;
}
.lede {
max-width: 28ch;
margin: 18px 0 30px;
color: var(--muted);
line-height: 1.5;
}
.stacked-form,
.answer-form {
display: grid;
gap: 14px;
}
2026-04-26 18:52:16 +09:00
.material-form,
.asset-form {
align-items: end;
display: grid;
gap: 14px;
grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
}
.wide-field {
grid-column: 1 / -1;
}
2026-04-26 18:39:09 +09:00
label {
display: grid;
gap: 7px;
color: var(--muted);
font-size: 13px;
font-weight: 650;
}
input,
2026-04-26 18:52:16 +09:00
textarea,
select {
2026-04-26 18:39:09 +09:00
width: 100%;
border: 1px solid var(--line);
border-radius: 6px;
background: #fbfcfa;
color: var(--text);
padding: 12px;
outline: none;
appearance: none;
}
select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b665f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 36px;
2026-04-26 18:39:09 +09:00
}
textarea {
min-height: 160px;
resize: vertical;
line-height: 1.45;
}
input:focus,
2026-04-26 18:52:16 +09:00
textarea:focus,
select:focus {
2026-04-26 18:39:09 +09:00
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(25, 118, 75, 0.12);
}
button {
min-height: 44px;
border: 0;
border-radius: 6px;
background: var(--accent);
color: #fff;
cursor: pointer;
font-weight: 750;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
position: relative;
2026-04-26 18:39:09 +09:00
}
button:hover:not(:disabled) {
background: var(--accent-dark);
}
button:active:not(:disabled) {
transform: translateY(1px);
}
2026-04-26 18:39:09 +09:00
button:disabled {
cursor: not-allowed;
opacity: 0.48;
}
.btn-spinner {
display: none;
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.35);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
button.is-loading .btn-text {
opacity: 0.9;
}
button.is-loading .btn-spinner {
display: inline-block;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.status-line {
display: flex;
align-items: center;
gap: 8px;
2026-04-26 18:39:09 +09:00
min-height: 20px;
margin: 18px 0 0;
font-size: 13px;
color: var(--muted);
2026-04-26 18:39:09 +09:00
}
.status-icon {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
}
.status-line.is-busy .status-icon {
background: var(--warn);
animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.35;
}
2026-04-26 18:39:09 +09:00
}
.error-line {
min-height: 20px;
margin: 10px 0 0;
font-size: 13px;
2026-04-26 18:39:09 +09:00
color: var(--danger);
}
.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.question-list {
display: grid;
gap: 10px;
}
.question-button {
border: 1px solid var(--line);
border-left: 3px solid transparent;
2026-04-26 18:39:09 +09:00
background: #fbfcfa;
color: var(--text);
padding: 16px;
min-height: 72px;
text-align: left;
border-radius: 6px;
transition: border-color 0.15s ease, background 0.15s ease;
}
.question-button:hover:not(:disabled) {
border-color: var(--accent);
2026-04-26 18:39:09 +09:00
}
.question-button[aria-pressed="true"] {
border-color: var(--accent);
border-left-color: var(--accent);
2026-04-26 18:39:09 +09:00
background: var(--surface-muted);
}
.question-id {
display: block;
margin-bottom: 5px;
color: var(--accent);
font-size: 12px;
font-weight: 750;
}
.empty-state {
border: 1px dashed var(--line);
border-radius: 6px;
color: var(--muted);
padding: 22px 18px;
text-align: center;
font-size: 13px;
line-height: 1.5;
}
.empty-hint::before {
content: "";
display: block;
width: 24px;
height: 24px;
margin: 0 auto 10px;
opacity: 0.45;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235b665f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
background-size: contain;
2026-04-26 18:39:09 +09:00
}
.feedback {
display: grid;
gap: 16px;
margin-top: 22px;
}
.progress-heading {
margin-top: 34px;
}
.small-button {
min-height: 34px;
padding: 0 12px;
font-size: 12px;
}
2026-04-26 18:39:09 +09:00
.metric-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--line);
}
.metric-row:last-child {
border-bottom: 0;
}
2026-04-26 18:39:09 +09:00
.grade {
font-size: 38px;
font-weight: 800;
line-height: 1.1;
}
.grade-miss {
color: var(--weak);
}
.grade-partial {
color: var(--warn);
}
.grade-solid {
color: var(--good);
}
.grade-strong {
color: var(--strong);
2026-04-26 18:39:09 +09:00
}
.readiness-value {
color: var(--accent);
font-size: 48px;
font-weight: 850;
line-height: 1;
}
.concept-pill {
display: inline-flex;
margin: 4px 6px 4px 0;
border: 1px solid var(--line);
border-radius: 999px;
padding: 6px 10px;
color: var(--muted);
font-size: 12px;
font-weight: 650;
background: var(--surface);
}
.pill-neutral {
background: var(--neutral-bg);
border-color: #d5dad3;
color: var(--neutral);
}
.pill-weak {
background: var(--weak-bg);
border-color: #e8bdb9;
color: var(--weak);
}
.pill-warn {
background: var(--warn-bg);
border-color: #edd5b5;
color: var(--warn);
}
.pill-good {
background: var(--good-bg);
border-color: #b8d9e8;
color: var(--good);
}
.pill-strong {
background: var(--strong-bg);
border-color: #b8dfc6;
color: var(--strong);
}
2026-04-26 18:39:09 +09:00
.small-list {
margin: 0;
padding-left: 18px;
color: var(--muted);
line-height: 1.45;
}
2026-04-26 18:52:16 +09:00
.content-workspace {
border-top: 2px solid var(--line);
2026-04-26 18:52:16 +09:00
display: grid;
gap: 18px;
padding-top: 28px;
margin-top: 6px;
2026-04-26 18:52:16 +09:00
}
.ontology-view {
display: grid;
gap: 12px;
}
.summary-strip {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.summary-chip {
background: var(--surface-muted);
border-radius: 999px;
2026-04-26 18:52:16 +09:00
color: var(--muted);
font-size: 12px;
font-weight: 750;
padding: 7px 12px;
2026-04-26 18:52:16 +09:00
}
.prompt-text {
background: #fbfcfa;
border: 1px solid var(--line);
border-radius: 6px;
margin: 0;
padding: 14px;
white-space: pre-wrap;
font-size: 13px;
line-height: 1.5;
color: var(--text);
2026-04-26 18:52:16 +09:00
}
.login-view {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 28px;
background: linear-gradient(160deg, #f5f7f4 0%, #e8efe5 100%);
}
.login-card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 18px;
padding: 52px 40px 44px;
max-width: 440px;
width: 100%;
text-align: center;
box-shadow: 0 12px 40px rgba(24, 32, 27, 0.07);
}
.login-card .eyebrow {
display: inline-block;
letter-spacing: 0.14em;
font-size: 11px;
text-transform: uppercase;
color: var(--accent);
font-weight: 750;
margin-bottom: 10px;
}
html[lang="ko"] .login-card .eyebrow {
text-transform: none;
letter-spacing: 0.04em;
}
.login-card h1 {
font-size: clamp(34px, 5.5vw, 56px);
margin: 8px 0 18px;
line-height: 1.05;
}
.login-card .lede {
margin: 0 auto 32px;
max-width: 32ch;
color: var(--muted);
font-size: 15px;
line-height: 1.55;
}
.login-divider {
height: 1px;
background: var(--line);
margin: 28px 0 24px;
position: relative;
}
.login-divider::before {
content: attr(data-label);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--surface);
padding: 0 12px;
color: var(--muted);
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.login-legal {
margin-top: 18px;
font-size: 12px;
color: var(--muted);
line-height: 1.5;
}
.login-legal a {
color: var(--muted);
text-decoration: underline;
text-underline-offset: 2px;
}
.login-error {
margin-top: 14px;
padding: 10px 14px;
border-radius: 8px;
background: var(--weak-bg);
color: var(--weak);
font-size: 13px;
display: none;
}
.login-error.visible {
display: block;
}
.login-header {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
position: relative;
}
.login-header .eyebrow {
margin-bottom: 0;
}
.workspace-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.lang-switch {
display: inline-flex;
gap: 4px;
background: var(--surface-muted);
border-radius: 6px;
padding: 3px;
}
.lang-btn {
min-height: 28px;
padding: 0 10px;
font-size: 11px;
font-weight: 750;
letter-spacing: 0.04em;
border-radius: 4px;
background: transparent;
color: var(--muted);
}
.lang-btn:hover:not(:disabled) {
background: rgba(24, 32, 27, 0.04);
color: var(--text);
}
.lang-btn.is-active {
background: var(--surface);
color: var(--accent);
box-shadow: 0 1px 2px rgba(24, 32, 27, 0.06);
}
.user-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 18px;
padding: 10px 12px;
background: var(--surface-muted);
border-radius: 6px;
}
.user-info {
font-size: 13px;
font-weight: 650;
color: var(--text);
}
2026-04-26 18:39:09 +09:00
@media (max-width: 980px) {
.workspace {
grid-template-columns: 1fr;
}
h1 {
font-size: 42px;
}
2026-04-26 18:52:16 +09:00
.material-form,
.asset-form {
grid-template-columns: 1fr;
}
2026-04-26 18:39:09 +09:00
}