Files
boker/static/css/style.css
T
2026-03-15 14:23:35 -07:00

610 lines
9.9 KiB
CSS

:root {
--bg: #07111f;
--bg-accent: #0b1830;
--panel: rgba(11, 24, 48, 0.82);
--panel-strong: rgba(13, 28, 55, 0.95);
--line: rgba(157, 176, 199, 0.14);
--text: #e5eefb;
--text-muted: #9db0c7;
--green: #22c55e;
--red: #ef4444;
--amber: #f59e0b;
--gold: #f5c76a;
--shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
--radius: 24px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Inter", sans-serif;
color: var(--text);
background:
radial-gradient(circle at top left, rgba(124, 156, 255, 0.16), transparent 22%),
radial-gradient(circle at top right, rgba(94, 234, 212, 0.11), transparent 18%),
linear-gradient(180deg, #06101d 0%, #091426 100%);
min-height: 100vh;
}
body::before {
content: "";
position: fixed;
inset: 0;
background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
background-size: 34px 34px;
pointer-events: none;
opacity: 0.4;
}
a {
color: var(--text);
text-decoration: none;
}
.site-shell {
width: min(1260px, calc(100% - 32px));
margin: 0 auto;
padding: 28px 0 52px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
margin-bottom: 28px;
padding: 18px 22px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(6, 16, 29, 0.74);
backdrop-filter: blur(16px);
box-shadow: var(--shadow);
}
.brand {
font-size: 1.3rem;
font-weight: 800;
letter-spacing: -0.03em;
}
.brand-subtitle {
margin: 4px 0 0;
color: var(--text-muted);
font-size: 0.93rem;
}
.nav-links {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.nav-links a,
.ghost-button {
color: var(--text);
background: transparent;
border: none;
font: inherit;
cursor: pointer;
padding: 10px 14px;
border-radius: 999px;
}
.nav-links a:hover,
.ghost-button:hover {
background: rgba(124, 156, 255, 0.12);
}
.flash-stack {
display: grid;
gap: 10px;
margin-bottom: 20px;
}
.flash {
border-radius: 18px;
padding: 14px 16px;
border: 1px solid var(--line);
backdrop-filter: blur(14px);
}
.flash.success {
background: rgba(34, 197, 94, 0.12);
}
.flash.error {
background: rgba(244, 63, 94, 0.12);
}
.page-content {
display: grid;
gap: 24px;
}
.hero-card,
.panel {
border-radius: var(--radius);
border: 1px solid var(--line);
background: var(--panel);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
}
.hero-card {
padding: 28px;
background:
linear-gradient(135deg, rgba(124, 156, 255, 0.13), transparent 40%),
linear-gradient(180deg, rgba(11, 24, 48, 0.96), rgba(9, 20, 38, 0.92));
}
.hero-card.compact {
padding: 24px 28px;
}
.panel {
padding: 24px;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 18px;
}
.eyebrow {
margin: 0 0 6px;
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.74rem;
color: var(--gold);
font-weight: 700;
}
h1,
h2 {
margin: 0;
letter-spacing: -0.04em;
}
h1 {
font-size: clamp(2rem, 4vw, 3.2rem);
}
h2 {
font-size: 1.38rem;
}
.muted-text {
color: var(--text-muted);
line-height: 1.6;
}
.muted-text.small,
.tiny-text {
font-size: 0.88rem;
}
.tiny-text {
color: #8092ab;
}
.grid {
display: grid;
gap: 24px;
}
.two-col {
grid-template-columns: 1.7fr 1fr;
}
.three-col {
grid-template-columns: repeat(3, 1fr);
}
.chart-panel {
min-height: 420px;
}
.chart-panel-large {
min-height: 500px;
}
.chart-frame {
position: relative;
min-height: 360px;
}
.chart-panel-large .chart-frame {
min-height: 430px;
}
.chart-frame-interactive {
cursor: zoom-in;
}
.chart-frame-interactive:focus-visible {
outline: 2px solid rgba(245, 199, 106, 0.7);
outline-offset: 6px;
}
.chart-panel canvas,
.chart-frame canvas,
.chart-modal-frame canvas {
width: 100% !important;
height: 100% !important;
}
.stat-panel,
.stat-card {
display: grid;
align-content: start;
}
.stat-list {
display: grid;
gap: 14px;
}
.stat-row {
display: flex;
justify-content: space-between;
gap: 14px;
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
.stat-card {
gap: 8px;
}
.stat-card span {
color: var(--text-muted);
}
.stat-card strong {
font-size: 1.75rem;
letter-spacing: -0.04em;
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: 14px 14px;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
th {
color: var(--text-muted);
font-size: 0.83rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
tbody tr:hover {
background: rgba(124, 156, 255, 0.06);
}
.positive {
color: var(--green);
font-weight: 700;
}
.negative {
color: var(--red);
font-weight: 700;
}
.neutral {
color: var(--amber);
font-weight: 700;
}
.form-shell {
display: flex;
justify-content: center;
}
.form-shell.narrow {
min-height: 55vh;
align-items: center;
}
.form-card {
display: grid;
gap: 16px;
}
.form-card label {
display: grid;
gap: 8px;
}
.form-card span {
font-size: 0.94rem;
color: var(--text-muted);
}
input,
select,
textarea,
button {
font: inherit;
}
input,
select,
textarea {
width: 100%;
padding: 13px 14px;
border-radius: 16px;
border: 1px solid rgba(157, 176, 199, 0.18);
background: rgba(7, 17, 31, 0.78);
color: var(--text);
outline: none;
}
input:focus,
select:focus,
textarea:focus {
border-color: rgba(124, 156, 255, 0.7);
box-shadow: 0 0 0 4px rgba(124, 156, 255, 0.14);
}
.primary-button {
padding: 14px 18px;
border: none;
border-radius: 16px;
background: linear-gradient(135deg, #f4a261 0%, #2a9d8f 100%);
color: #07111f;
font-weight: 800;
cursor: pointer;
}
.secondary-button {
padding: 11px 14px;
border: 1px solid var(--line);
border-radius: 14px;
background: rgba(255, 255, 255, 0.04);
color: var(--text);
font-weight: 600;
cursor: pointer;
}
.secondary-button:hover {
background: rgba(255, 255, 255, 0.08);
}
.helper-box {
display: flex;
gap: 10px;
align-items: flex-start;
border-radius: 18px;
border: 1px solid var(--line);
padding: 14px 16px;
color: var(--text-muted);
background: rgba(244, 162, 97, 0.06);
}
.note-list {
margin: 0;
padding-left: 18px;
color: var(--text-muted);
white-space: normal;
}
.event-feed {
display: grid;
gap: 12px;
max-height: 580px;
overflow-y: auto;
padding-right: 2px;
}
.event-feed.condensed {
max-height: 420px;
}
.event-card {
padding: 16px;
border-radius: 20px;
border: 1px solid var(--line);
background: rgba(7, 17, 31, 0.72);
}
.event-card-top {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
}
.event-amount {
margin: 10px 0 6px;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: -0.04em;
}
.pill {
border-radius: 999px;
padding: 6px 10px;
background: rgba(244, 162, 97, 0.12);
color: #ffd3ab;
font-size: 0.77rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.stack-gap {
display: grid;
gap: 24px;
}
.narrow {
max-width: 520px;
width: 100%;
}
.small-table table th,
.small-table table td {
padding: 12px;
}
@media (max-width: 980px) {
.two-col,
.three-col,
.session-layout,
.admin-layout {
grid-template-columns: 1fr;
}
.topbar {
border-radius: 28px;
padding: 20px;
align-items: flex-start;
flex-direction: column;
}
}
@media (max-width: 640px) {
.site-shell {
width: min(100% - 18px, 100%);
padding-top: 18px;
}
.panel,
.hero-card {
padding: 18px;
border-radius: 22px;
}
h1 {
font-size: 2rem;
}
.nav-links {
width: 100%;
}
}
.panel-header-with-actions {
align-items: center;
}
.panel-actions {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.sortable-table th {
padding-top: 10px;
padding-bottom: 10px;
}
.sort-button {
display: inline-flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 0;
border: none;
background: transparent;
color: inherit;
text-transform: inherit;
letter-spacing: inherit;
font: inherit;
cursor: pointer;
}
.sort-button:hover,
.sort-button.is-active {
color: var(--text);
}
.sort-indicator {
color: var(--text-soft, #8092ab);
font-size: 0.9em;
}
.chart-modal {
position: fixed;
inset: 0;
display: none;
align-items: stretch;
justify-content: center;
padding: 24px;
z-index: 200;
}
.chart-modal.is-open {
display: flex;
}
.chart-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(3, 6, 12, 0.76);
backdrop-filter: blur(10px);
}
.chart-modal-card {
position: relative;
z-index: 1;
width: min(1280px, 100%);
min-height: calc(100vh - 48px);
border-radius: 28px;
border: 1px solid var(--line);
background: rgba(11, 17, 24, 0.96);
box-shadow: var(--shadow);
padding: 24px;
display: grid;
grid-template-rows: auto 1fr;
gap: 18px;
}
.chart-modal-frame {
min-height: 70vh;
}
body.modal-open {
overflow: hidden;
}
@media (max-width: 980px) {
.leaderboard-layout {
grid-template-columns: 1fr;
}
.chart-modal {
padding: 12px;
}
.chart-modal-card {
min-height: calc(100vh - 24px);
padding: 18px;
}
.chart-modal-frame {
min-height: 62vh;
}
}