39564-vm/assets/css/custom.css
2026-04-11 19:26:35 +00:00

455 lines
7.4 KiB
CSS

:root {
--bg: #f5f6f8;
--surface: #ffffff;
--surface-muted: #f8fafc;
--border: #d9dde3;
--border-strong: #c3c9d2;
--text: #101828;
--muted: #667085;
--accent: #1d2939;
--accent-soft: #eef2f6;
--success: #0f766e;
--warning: #b45309;
--danger: #b42318;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
--shadow-md: 0 12px 24px rgba(16, 24, 40, 0.06);
}
html {
scroll-behavior: smooth;
}
body {
background: var(--bg);
color: var(--text);
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
min-height: 100vh;
}
.app-shell {
background: var(--bg);
}
.site-header,
footer {
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(8px);
}
.navbar-brand,
.section-title,
.page-title,
.display-title,
h1,
h2,
h3,
h4,
h5,
h6 {
letter-spacing: -0.02em;
}
.display-title {
font-size: clamp(2.4rem, 4vw, 4.2rem);
line-height: 1.02;
font-weight: 700;
max-width: 11ch;
}
.page-title {
font-size: clamp(2rem, 3vw, 3rem);
line-height: 1.05;
font-weight: 700;
}
.section-title {
font-size: clamp(1.7rem, 2vw, 2.3rem);
line-height: 1.1;
font-weight: 700;
}
.lead {
font-size: 1.05rem;
line-height: 1.65;
}
.eyebrow {
color: var(--muted);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.surface-card,
.compact-card,
.metric-card,
.metric-inline,
.section-score-card,
.compact-panel,
.empty-state,
.score-chip {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}
.surface-card {
box-shadow: var(--shadow-md);
}
.compact-card,
.metric-card,
.metric-inline,
.section-score-card,
.compact-panel,
.empty-state {
padding: 1rem;
}
.hero-section,
.border-top,
.border-bottom {
border-color: var(--border) !important;
}
.metric-card,
.metric-inline {
display: flex;
flex-direction: column;
gap: 0.3rem;
height: 100%;
}
.metric-card strong,
.metric-inline strong {
font-size: 1.2rem;
font-weight: 700;
}
.metric-card span,
.metric-inline span,
.compact-card span {
color: var(--muted);
font-size: 0.92rem;
}
.pill-badge {
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border-strong);
border-radius: 999px;
padding: 0.25rem 0.65rem;
font-size: 0.78rem;
font-weight: 600;
color: var(--accent);
background: var(--accent-soft);
}
.pill-badge.subdued {
background: var(--surface-muted);
}
.feature-list,
.rank-list,
.answer-review-list {
margin: 0;
padding: 0;
list-style: none;
}
.feature-list li,
.rank-list li,
.answer-review-list li {
border-top: 1px solid var(--border);
padding: 0.9rem 0;
}
.feature-list li:first-child,
.rank-list li:first-child,
.answer-review-list li:first-child {
border-top: 0;
padding-top: 0;
}
.rank-list li,
.answer-review-list li {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.rank-list strong,
.answer-review-list em {
color: var(--accent);
font-style: normal;
font-weight: 700;
}
.compact-card {
display: flex;
flex-direction: column;
gap: 0.4rem;
min-height: 100%;
}
.score-chip {
padding: 1rem 1.1rem;
min-width: 140px;
}
.score-chip span {
display: block;
color: var(--muted);
font-size: 0.86rem;
}
.score-chip strong {
font-size: 2rem;
line-height: 1;
}
.attempt-header {
min-width: 0;
}
.attempt-identity {
flex: 1 1 18rem;
min-width: 0;
}
.attempt-email {
overflow-wrap: anywhere;
word-break: break-word;
}
.score-chip {
flex: 0 0 auto;
max-width: 100%;
}
.form-control,
.form-check-input,
.answer-card,
.accordion-item,
.accordion-button,
.btn,
.progress {
border-radius: var(--radius-sm) !important;
}
.form-control {
padding: 0.85rem 0.95rem;
border-color: var(--border-strong);
box-shadow: none;
}
.form-control:focus,
.form-check-input:focus,
.btn:focus,
.answer-card:focus-within {
border-color: #94a3b8;
box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.2);
}
.btn {
padding: 0.8rem 1.1rem;
font-weight: 600;
letter-spacing: -0.01em;
}
.btn-dark {
background: var(--accent);
border-color: var(--accent);
}
.btn-dark:hover,
.btn-dark:focus {
background: #111827;
border-color: #111827;
}
.answer-grid {
display: grid;
gap: 0.75rem;
}
.answer-card {
position: relative;
display: flex;
align-items: center;
min-height: 68px;
padding: 1rem 1rem 1rem 3rem;
border: 1px solid var(--border-strong);
background: var(--surface);
cursor: pointer;
transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.answer-card:hover {
border-color: #98a2b3;
background: var(--surface-muted);
}
.answer-card.is-selected {
border-color: var(--accent);
background: var(--accent-soft);
}
.answer-input {
position: absolute;
left: 1rem;
width: 1rem;
height: 1rem;
}
.answer-label {
font-weight: 600;
}
.question-title {
font-size: clamp(1.6rem, 2vw, 2.3rem);
line-height: 1.2;
max-width: 24ch;
}
.quiz-progress {
height: 0.55rem;
background: #e8ecf1;
}
.quiz-progress .progress-bar {
background: var(--accent);
}
.quiz-progress.slim {
height: 0.45rem;
}
.section-score-card {
padding: 1rem;
}
.admin-workspace {
max-width: 1680px;
padding-left: clamp(1rem, 2vw, 2rem);
padding-right: clamp(1rem, 2vw, 2rem);
}
.admin-table-wrap {
overflow-x: auto;
}
.admin-table {
width: 100%;
table-layout: fixed;
}
.admin-table thead th,
.admin-table tbody td {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
width: 6%;
}
.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
width: 20%;
}
.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
width: 12%;
}
.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
width: 13%;
}
.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
width: 8%;
}
.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
width: 18%;
}
.admin-table th:nth-child(7),
.admin-table td:nth-child(7) {
width: 11%;
}
.admin-table th:nth-child(8),
.admin-table td:nth-child(8) {
width: 12%;
white-space: nowrap;
}
.admin-table thead th {
color: var(--muted);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom-width: 1px;
border-color: var(--border);
}
.admin-table tbody td {
border-color: var(--border);
vertical-align: middle;
}
.accordion-item,
.accordion-button {
border-color: var(--border);
}
.accordion-button:not(.collapsed) {
background: var(--accent-soft);
color: var(--text);
box-shadow: none;
}
.empty-state {
text-align: center;
}
.alert {
border-radius: var(--radius-sm);
border-width: 1px;
}
.py-lg-6 {
padding-top: 5rem !important;
padding-bottom: 5rem !important;
}
@media (min-width: 1200px) {
.admin-table-wrap {
overflow-x: visible;
}
}
@media (max-width: 767.98px) {
.display-title {
max-width: none;
}
.question-title {
max-width: none;
}
}