Files
ClimbingBoardGPT/webapp/static/app.css
2026-05-22 13:57:56 -04:00

348 lines
5.8 KiB
CSS

:root {
--bg: #263238;
--bg-alt: #1f2a30;
--panel: #2f3d43;
--panel-soft: #37474f;
--ink: #eceff1;
--muted: #b0bec5;
--faint: #90a4ae;
--border: #455a64;
--accent: #80cbc4;
--accent-2: #ffcc80;
--danger: #ef9a9a;
--shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: var(--mono);
background:
radial-gradient(circle at top left, rgba(128, 203, 196, 0.07), transparent 32rem),
var(--bg);
color: var(--ink);
}
.site-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1.35rem 2rem;
border-bottom: 1px solid var(--border);
background: var(--bg-alt);
}
.eyebrow {
margin: 0 0 0.35rem;
color: var(--accent);
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.site-header h1 {
margin: 0;
font-size: clamp(1.35rem, 2vw, 2.05rem);
letter-spacing: -0.04em;
}
.site-header p {
margin: 0.4rem 0 0;
color: var(--muted);
}
.health {
font-size: 0.78rem;
color: var(--accent-2);
white-space: nowrap;
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.45rem 0.7rem;
background: rgba(0, 0, 0, 0.15);
}
.layout {
display: grid;
grid-template-columns: 370px minmax(0, 1fr);
gap: 1.25rem;
padding: 1.25rem;
max-width: 1520px;
margin: 0 auto;
}
.controls {
display: flex;
flex-direction: column;
gap: 1rem;
}
.card, .result-card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: var(--shadow);
padding: 1rem;
}
.card h2, .result-card h2 {
margin: 0 0 0.8rem;
font-size: 1.0rem;
color: var(--accent);
letter-spacing: -0.02em;
}
label {
display: block;
margin: 0.7rem 0;
font-size: 0.82rem;
color: var(--muted);
}
input, select, textarea {
display: block;
width: 100%;
margin-top: 0.28rem;
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.6rem 0.7rem;
font: inherit;
color: var(--ink);
background: #1c272c;
}
input:focus, select:focus, textarea:focus {
outline: 2px solid rgba(128, 203, 196, 0.32);
border-color: var(--accent);
}
textarea {
resize: vertical;
min-height: 96px;
font-size: 0.78rem;
}
button {
width: 100%;
border: 1px solid #4db6ac;
border-radius: 6px;
padding: 0.68rem 0.9rem;
margin-top: 0.4rem;
font-weight: 700;
color: #102022;
background: var(--accent);
cursor: pointer;
font-family: var(--mono);
}
button:hover { filter: brightness(1.06); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary {
background: transparent;
color: var(--accent);
border-color: var(--border);
}
.button-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.55rem;
}
.note p, .small {
color: var(--muted);
font-size: 0.82rem;
line-height: 1.45;
}
.builder-list {
list-style: none;
margin: 0.8rem 0 0;
padding: 0;
color: var(--muted);
font-size: 0.78rem;
max-height: 160px;
overflow: auto;
}
.builder-list li {
display: flex;
justify-content: space-between;
gap: 0.75rem;
padding: 0.25rem 0;
border-bottom: 1px dashed rgba(176, 190, 197, 0.16);
}
.result-header {
text-align: center;
margin-bottom: 0.85rem;
}
.result-header h2 { margin-bottom: 0.25rem; }
.result-header p {
margin: 0;
color: var(--muted);
font-size: 0.84rem;
}
.board-stage {
position: relative;
width: 100%;
max-width: 960px;
margin: 0 auto;
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--border);
background: #111827;
}
.board-stage img {
display: block;
width: 100%;
height: auto;
}
.board-stage svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: auto;
}
.click-target {
cursor: crosshair;
}
.route-marker, .builder-marker {
pointer-events: none;
}
.hover-marker {
pointer-events: none;
fill: none;
stroke: var(--accent-2);
stroke-width: 0.55;
opacity: 0.9;
}
.json-block {
margin-top: 1rem;
color: var(--muted);
}
.json-block pre {
overflow: auto;
max-height: 300px;
padding: 1rem;
background: #111a1f;
color: #cfd8dc;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 0.76rem;
}
@media (max-width: 900px) {
.layout { grid-template-columns: 1fr; }
.site-header { flex-direction: column; }
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.55rem;
}
.checkbox-label input {
width: auto;
margin: 0;
}
.warning-box {
margin: 0.7rem auto 0.85rem;
max-width: 760px;
border: 1px solid rgba(255, 204, 128, 0.55);
background: rgba(255, 204, 128, 0.12);
color: var(--accent-2);
border-radius: 8px;
padding: 0.65rem 0.8rem;
font-size: 0.8rem;
text-align: left;
white-space: pre-line;
}
.clear-board {
width: auto;
min-width: 150px;
margin: 0.85rem auto 0;
display: inline-block;
}
.field-help {
display: block;
margin-top: 0.35rem;
color: var(--faint);
font-size: 0.72rem;
line-height: 1.35;
}
.explain dl {
margin: 0;
}
.explain dt {
color: var(--accent-2);
font-size: 0.78rem;
margin-top: 0.75rem;
}
.explain dt:first-child {
margin-top: 0;
}
.explain dd {
margin: 0.22rem 0 0;
color: var(--muted);
font-size: 0.78rem;
line-height: 1.45;
}
.explain code {
color: var(--accent-2);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.05rem 0.25rem;
font-size: 0.74rem;
}
.link-list {
margin: 0;
padding-left: 1.1rem;
color: var(--muted);
font-size: 0.82rem;
line-height: 1.6;
}
.link-list a {
color: var(--accent);
text-decoration: none;
}
.link-list a:hover {
text-decoration: underline;
}
#data-acknowledgement-card p {
color: var(--muted);
font-size: 0.8rem;
line-height: 1.45;
}