Files
hagfish/static/style.css
T

509 lines
10 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root,
[data-theme="light"] {
--bg: #f4f1ec;
--bg-panel: #fafaf5;
--nav-bg: rgba(255, 253, 250, 0.92);
--ink: #1a1d22;
--ink-muted: #595f68;
--ink-dim: #9299a2;
--accent: #2c5a7a;
--border: rgba(26, 29, 34, 0.1);
--danger: #a03030;
--input-bg: #f0ede7;
--surface-hover: rgba(26, 29, 34, 0.04);
}
[data-theme="macchiato"] {
--bg: #181926;
--bg-panel: #1e2030;
--nav-bg: rgba(36, 39, 58, 0.65);
--ink: #cad3f5;
--ink-muted: #a5adcb;
--ink-dim: #8087a2;
--accent: #8aadf4;
--border: rgba(165, 173, 203, 0.15);
--danger: #ed8796;
--input-bg: #1e2030;
--surface-hover: rgba(138, 173, 244, 0.12);
}
[data-theme="macchiato"] .nav-brand {
color: #cad3f5;
text-shadow: 0 0 8px rgba(138, 173, 244, 0.25);
}
[data-theme="macchiato"] .apply-btn {
box-shadow: 0 0 10px rgba(138, 173, 244, 0.3);
}
[data-theme="macchiato"] .theme-toggle {
background: #24273a;
border-color: rgba(138, 173, 244, 0.4);
box-shadow:
0 0 10px rgba(138, 173, 244, 0.4),
0 0 25px rgba(138, 173, 244, 0.2);
animation: neon-breathe-toggle 4s ease-in-out infinite;
}
@keyframes neon-breathe-toggle {
0%, 100% {
box-shadow:
0 0 10px rgba(138, 173, 244, 0.5),
0 0 25px rgba(138, 173, 244, 0.3),
0 0 50px rgba(116, 150, 230, 0.2);
}
50% {
box-shadow:
0 0 15px rgba(138, 173, 244, 0.6),
0 0 35px rgba(138, 173, 244, 0.4),
0 0 70px rgba(116, 150, 230, 0.25);
}
}
html { scroll-behavior: smooth; }
body {
min-height: 100vh;
min-height: 100dvh;
background: var(--bg);
color: var(--ink);
font-family: 'Noto Sans', sans-serif;
font-size: 0.92rem;
font-weight: 300;
line-height: 1.65;
display: flex;
flex-direction: column;
transition: background 0.3s ease, color 0.3s ease;
}
a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: all 0.2s ease;
}
a:hover { border-bottom-color: var(--accent); }
/* ---- Nav ---- */
nav {
position: fixed; top: 0; left: 0;
width: 100%; z-index: 20;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 1rem;
padding: 1.25rem 2.5rem;
background: var(--nav-bg);
backdrop-filter: blur(12px) saturate(120%);
-webkit-backdrop-filter: blur(12px) saturate(120%);
border-bottom: 1px solid var(--border);
transition: background 0.3s ease;
}
.back-link {
grid-column: 1;
justify-self: start;
font-family: 'Noto Sans', sans-serif;
font-weight: 400;
font-size: 0.7rem;
letter-spacing: 0.15em;
text-transform: uppercase;
white-space: nowrap;
color: var(--ink-muted);
text-decoration: none;
padding: 0.35rem 0.6rem;
border: 1px solid var(--border);
border-radius: 2px;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.back-link:hover {
color: var(--ink);
border-color: var(--ink-muted);
background: var(--bg-panel);
border-bottom-color: var(--ink-muted);
}
.nav-brand {
grid-column: 2;
justify-self: center;
display: inline-flex;
align-items: baseline;
gap: 0.35rem;
white-space: nowrap;
font-family: 'Noto Sans', sans-serif;
font-weight: 700;
font-size: 1.1rem;
letter-spacing: -0.02em;
color: var(--ink);
text-decoration: none;
}
.nav-brand:hover { color: var(--accent); border-bottom: none; }
.update-date-display {
grid-column: 3;
justify-self: end;
font-family: 'Noto Sans', sans-serif;
font-weight: 400;
font-size: 0.72rem;
letter-spacing: 0.08em;
color: var(--ink-muted);
white-space: nowrap;
padding: 0.35rem 0.8rem;
border: 1px solid var(--border);
border-radius: 2px;
background: var(--input-bg);
}
.brand-sep { font-weight: 300; color: var(--ink-dim); }
.brand-sub {
font-weight: 400;
font-size: 0.78rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink-muted);
align-self: center;
padding-top: 2px;
}
/* ---- Main ---- */
.page-body {
flex: 1;
display: flex;
padding: calc(65px + 2.5rem) 2rem 2rem;
gap: 2rem;
overflow: hidden;
}
.sidebar {
width: 320px;
flex-shrink: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.filters-panel {
background: var(--bg-panel);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid var(--border);
border-radius: 3px;
padding: 1.5rem;
box-shadow: 0 8px 30px rgba(26, 29, 34, 0.06);
animation: panel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
opacity: 0;
transform: translateX(-10px);
transition: background 0.3s ease, border-color 0.3s ease;
height: 100%;
}
@keyframes panel-in {
0% { opacity: 0; transform: translateX(-10px); }
100% { opacity: 1; transform: translateX(0); }
}
.dashboard-wrapper {
flex: 1;
display: flex;
min-width: 0;
height: 100%;
}
.dashboard {
width: 100%;
height: 100%;
background: var(--bg-panel);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid var(--border);
border-radius: 3px;
padding: 2rem;
box-shadow: 0 8px 30px rgba(26, 29, 34, 0.06);
animation: panel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
opacity: 0;
transform: translateY(10px);
transition: background 0.3s ease, border-color 0.3s ease;
position: relative;
display: flex;
flex-direction: column;
}
/* ---- Loading Overlay ---- */
.loading-overlay {
position: absolute;
inset: 0;
background: var(--bg-panel);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
border-radius: 3px;
color: var(--ink-muted);
font-size: 0.88rem;
letter-spacing: 0.05em;
}
.loading-overlay.hidden {
display: none;
}
/* ---- Empty State ---- */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 3rem 1rem;
color: var(--ink-dim);
font-size: 0.85rem;
text-align: center;
line-height: 1.6;
flex: 1;
}
/* ---- Filters ---- */
.filters {
display: flex;
flex-direction: column;
gap: 1rem;
height: 100%;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.4rem;
position: relative;
}
.filter-group label {
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--ink-dim);
}
.filter-group select {
padding: 0.5rem 0.75rem;
background: var(--input-bg);
border: 1px solid var(--border);
border-radius: 2px;
color: var(--ink);
font-family: 'Noto Sans', sans-serif;
font-size: 0.82rem;
outline: none;
transition: border-color 0.2s;
cursor: pointer;
}
.filter-group select:focus { border-color: var(--accent); }
/* ---- Multi-Select Dropdown ---- */
.filter-group.multi-select {
position: relative;
}
.dropdown-trigger {
width: 100%;
padding: 0.5rem 0.75rem;
background: var(--input-bg);
border: 1px solid var(--border);
border-radius: 2px;
color: var(--ink);
font-family: 'Noto Sans', sans-serif;
font-size: 0.82rem;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: border-color 0.2s;
}
.dropdown-trigger:hover {
border-color: var(--accent);
}
.dropdown-trigger::after {
content: '▼';
font-size: 0.6rem;
margin-left: 0.5rem;
opacity: 0.6;
}
.checkbox-dropdown-list {
position: absolute;
top: 100%;
left: 0;
right: 0;
max-height: 200px;
overflow-y: auto;
background: var(--bg-panel);
border: 1px solid var(--border);
border-top: none;
border-radius: 0 0 2px 2px;
z-index: 100;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
display: none;
padding: 0.5rem 0;
}
.checkbox-dropdown-list.open {
display: block;
}
.dropdown-separator {
border-top: 1px solid var(--border);
margin: 0.25rem 0;
}
.checkbox-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
cursor: pointer;
transition: background 0.1s;
}
.checkbox-item:hover {
background: var(--surface-hover);
}
.checkbox-item input[type="checkbox"] {
cursor: pointer;
accent-color: var(--accent);
margin-right: 0.5rem;
}
.select-all-wrapper {
font-weight: 600;
border-bottom: 1px solid var(--border);
margin-bottom: 0.25rem;
padding-bottom: 0.25rem;
}
.apply-btn {
width: 100%;
padding: 0.5rem 2rem;
background: var(--accent);
color: var(--bg-panel);
border: none;
border-radius: 2px;
font-family: 'Noto Sans', sans-serif;
font-weight: 700;
font-size: 0.82rem;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
transition: opacity 0.2s, box-shadow 0.2s;
}
.apply-btn:hover {
opacity: 0.85;
box-shadow: 0 0 8px rgba(138, 173, 244, 0.4);
}
/* ---- Charts ---- */
.charts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
flex: 1;
min-height: 0;
}
.chart-container {
background: var(--input-bg);
border: 1px solid var(--border);
border-radius: 2px;
padding: 1rem;
position: relative;
}
.chart-container.full-width {
grid-column: span 2;
height: 450px;
flex-shrink: 0;
}
.chart-container:nth-child(2),
.chart-container:nth-child(3) {
flex: 1;
min-height: 350px;
}
.chart-title {
font-size: 0.75rem;
font-weight: 600;
margin-bottom: 0.8rem;
color: var(--ink);
letter-spacing: 0.02em;
}
/* ---- Theme Toggle ---- */
.theme-toggle {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
width: 28px;
height: 28px;
border-radius: 50%;
border: 1px solid var(--border);
cursor: pointer;
padding: 0;
z-index: 30;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.theme-toggle:hover { transform: scale(1.08); }
[data-theme="light"] .theme-toggle {
background: linear-gradient(135deg, #24273a 0%, #8aadf4 100%);
border-color: rgba(26, 29, 34, 0.2);
}
footer {
position: relative;
z-index: 10;
padding: 0.9rem 2rem;
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
font-family: 'Noto Sans', sans-serif;
font-weight: 300;
font-size: 0.72rem;
letter-spacing: 0.05em;
color: var(--ink-muted);
border-top: 1px solid var(--border);
background: var(--nav-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: background 0.3s ease;
}
/* ---- Responsive ---- */
@media (max-width: 820px) {
.sidebar {
display: none;
}
.page-body {
padding: calc(55px + 1.25rem) 1rem 3rem;
}
.dashboard {
padding: 1.5rem;
}
.update-date-display {
display: none;
}
}
@media (max-width: 460px) {
.nav-brand .brand-sub { display: none; }
.nav-brand .brand-sep { display: none; }
.dashboard { padding: 1rem; }
}