Files
easy-ocpp/static/app.css
T
ManuelandClaude Fable 5 e5dab3e08c easy-occp v0.2.0 – OCPP-Wallbox-Management mit Live-Messwerten
Erstveröffentlichung: OCPP 1.6J Central System mit Web-UI (axum, askama,
htmx, SQLite). Chip-/Mitarbeiterverwaltung, Remote-Start/Stop, Statistik,
Live-Anzeige von kWh/Leistung/SoC während der Ladung inkl. automatischer
MeterValues-Konfiguration der Wallboxen.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 23:15:12 +02:00

431 lines
18 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* =========================================================================
easy-occp — Dark Cockpit Design-System
Navy-Sidebar + dunkler Content + Cyan-Akzent (EV-Ästhetik).
========================================================================= */
:root {
/* Surfaces */
--bg: #0b1220;
--surface: #131c2e;
--surface-2: #1a2337;
--surface-3: #222d44;
--sidebar: #0f172a;
--topbar: #0f172a;
/* Border & Text */
--border: #1f2a41;
--border-strong: #2a3650;
--fg: #e8edf6;
--fg-2: #cbd5e1;
--muted: #8894ab;
--muted-2: #64748b;
/* Brand & Status (hochgesättigt für Dark-BG) */
--brand: #22d3ee; /* cyan-400 */
--brand-2: #06b6d4; /* cyan-500 */
--brand-soft: #0e2a38;
--ok: #34d399; /* emerald-400 */
--ok-soft: #0e2f26;
--warn: #fbbf24;
--warn-soft: #3a2c0b;
--danger: #f87171;
--danger-soft: #3a1716;
--charge: #a78bfa; /* violet-400 — "lädt" */
--charge-soft: #261e3d;
--off: #64748b;
--off-soft: #1a2337;
/* Radius & Shadow */
--radius-sm: 8px;
--radius: 12px;
--radius-lg: 16px;
--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-2: 0 8px 24px rgba(0, 0, 0, 0.35);
--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--mono: ui-monospace, "JetBrains Mono", Consolas, monospace;
--sidebar-w: 240px;
--topbar-h: 56px;
--content-pad: 1.75rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--fg);
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #07131d; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: 0.9em; color: var(--fg-2); }
h1 { font-size: 1.65rem; font-weight: 650; margin: 0 0 0.35rem; letter-spacing: -0.015em; color: #f4f7ff; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.85rem; letter-spacing: -0.005em; color: var(--fg); }
h3 { font-size: 0.95rem; font-weight: 600; margin: 1.35rem 0 0.5rem; color: var(--fg-2); }
h2:first-child, h3:first-child { margin-top: 0; }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-title-row .sub { color: var(--muted); margin-top: 0.2rem; }
/* =========================================================================
App-Shell
========================================================================= */
.shell {
display: grid;
grid-template-columns: var(--sidebar-w) 1fr;
grid-template-rows: var(--topbar-h) 1fr;
grid-template-areas:
"side topbar"
"side main";
min-height: 100vh;
}
.sidebar {
grid-area: side;
background: var(--sidebar);
color: var(--fg-2);
display: flex; flex-direction: column;
padding: 1rem 0.75rem;
gap: 0.35rem;
position: sticky; top: 0; height: 100vh;
border-right: 1px solid var(--border);
}
.sidebar .brand {
display: flex; align-items: center; gap: 0.55rem;
padding: 0.25rem 0.65rem 1rem;
border-bottom: 1px solid var(--border);
margin-bottom: 0.75rem;
}
.sidebar .brand a {
color: #f4f7ff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em;
display: inline-flex; align-items: center; gap: 0.4rem;
}
.sidebar .brand a::before {
content: ""; width: 10px; height: 10px; border-radius: 3px;
background: linear-gradient(135deg, var(--brand) 0%, #a78bfa 100%);
box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.sidebar .brand .tag { color: var(--muted-2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar nav a {
display: flex; align-items: center; gap: 0.7rem;
padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
color: var(--fg-2); font-weight: 500; font-size: 0.9rem;
transition: background 0.12s ease, color 0.12s ease;
}
.sidebar nav a:hover { background: var(--surface-2); color: #f4f7ff; }
.sidebar nav a.active {
background: linear-gradient(90deg, rgba(34,211,238,0.15) 0%, rgba(34,211,238,0.05) 100%);
color: var(--brand);
box-shadow: inset 2px 0 0 var(--brand);
}
.sidebar nav a .ico { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.sidebar nav a.active .ico { opacity: 1; }
.sidebar .spacer { flex: 1; }
.sidebar .foot { font-size: 0.72rem; color: var(--muted-2); padding: 0.5rem 0.75rem; border-top: 1px solid var(--border); letter-spacing: 0.05em; }
.topbar {
grid-area: topbar;
background: var(--topbar);
border-bottom: 1px solid var(--border);
display: flex; align-items: center;
padding: 0 var(--content-pad);
gap: 1rem;
position: sticky; top: 0; z-index: 5;
}
.topbar .crumb { color: var(--muted); font-size: 0.9rem; }
.topbar .crumb strong { color: var(--fg); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .userbox { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); }
.topbar .userbox .who {
display: inline-flex; align-items: center; gap: 0.5rem;
padding: 0.3rem 0.75rem 0.3rem 0.35rem; border-radius: 999px;
background: var(--surface-2); color: var(--fg); font-weight: 500; font-size: 0.85rem;
border: 1px solid var(--border);
}
.topbar .userbox .who .avatar {
width: 22px; height: 22px; border-radius: 999px;
background: linear-gradient(135deg, var(--brand) 0%, #a78bfa 100%);
color: #07131d;
display: inline-flex; align-items: center; justify-content: center;
font-size: 0.72rem; font-weight: 800;
}
main.content {
grid-area: main;
padding: var(--content-pad);
max-width: 1440px; width: 100%;
background: var(--bg);
}
/* Standalone (Login) */
.standalone {
min-height: 100vh;
display: grid; place-items: center;
padding: 2rem;
background:
radial-gradient(circle at 20% 10%, rgba(34,211,238,0.12), transparent 40%),
radial-gradient(circle at 80% 80%, rgba(167,139,250,0.10), transparent 40%),
var(--bg);
}
.standalone .brand {
display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
margin-bottom: 1.5rem;
}
.standalone .brand strong {
font-size: 1.35rem; color: #f4f7ff;
display: inline-flex; align-items: center; gap: 0.5rem;
}
.standalone .brand strong::before {
content: ""; width: 14px; height: 14px; border-radius: 4px;
background: linear-gradient(135deg, var(--brand) 0%, #a78bfa 100%);
box-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}
.standalone .brand .tag { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
/* =========================================================================
Karten & Grids
========================================================================= */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.1rem 1.2rem;
box-shadow: var(--shadow-1);
}
.card { margin-bottom: 1.25rem; }
.card:last-child { margin-bottom: 0; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.card .card-head {
display: flex; align-items: center; justify-content: space-between;
gap: 1rem; margin-bottom: 0.75rem;
}
.card .card-head h2, .card .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.wallboxes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* KPI */
.kpi {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 1.1rem 1.2rem;
display: flex; flex-direction: column; gap: 0.25rem;
box-shadow: var(--shadow-1);
position: relative; overflow: hidden;
}
.kpi::before {
content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.kpi .label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.kpi .num { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.025em; color: #f4f7ff; font-variant-numeric: tabular-nums; }
.kpi .unit { color: var(--muted); font-size: 1rem; font-weight: 500; margin-left: 0.3rem; letter-spacing: normal; }
.kpi .foot { color: var(--muted); font-size: 0.8rem; }
.kpi.accent {
background: linear-gradient(135deg, #0e2a38 0%, #1a2337 100%);
border-color: rgba(34,211,238,0.35);
}
.kpi.accent::before { background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.kpi.accent .num { color: var(--brand); }
/* Entity-Karte */
.entity {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 1rem 1.1rem;
display: flex; flex-direction: column; gap: 0.7rem;
box-shadow: var(--shadow-1);
transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.entity:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.entity .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.entity .title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.entity .title a { color: var(--fg); }
.entity .title a:hover { color: var(--brand); }
.entity .sub { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.entity .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.82rem; color: var(--muted); }
.entity .meta strong { color: var(--fg); font-weight: 600; }
.entity .foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--border); }
/* =========================================================================
Status & Badges
========================================================================= */
.badge {
display: inline-flex; align-items: center; gap: 0.4rem;
padding: 0.2rem 0.6rem; border-radius: 999px;
font-size: 0.75rem; font-weight: 600;
background: var(--off-soft); color: var(--muted);
border: 1px solid var(--border);
line-height: 1.4; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(52,211,153,0.3); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(251,191,36,0.3); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248,113,113,0.3); }
.badge.charge { background: var(--charge-soft); color: var(--charge); border-color: rgba(167,139,250,0.35); }
.badge.info { background: var(--brand-soft); color: var(--brand); border-color: rgba(34,211,238,0.3); }
.badge.off { background: var(--off-soft); color: var(--muted); border-color: var(--border); }
.badge.charge .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0.6); }
50% { box-shadow: 0 0 0 6px rgba(167,139,250,0.0); }
}
.status-dot { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--off); }
.status-dot.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-dot.warn::before { background: var(--warn); }
.status-dot.danger::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.status-dot.charge::before { background: var(--charge); animation: pulse 1.6s ease-in-out infinite; }
/* =========================================================================
Tabellen
========================================================================= */
table.data {
width: 100%; border-collapse: separate; border-spacing: 0;
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
margin-bottom: 1.25rem;
}
h2 + table.data, h3 + table.data, h2 + .tabs, h3 + .tabs { margin-top: 0.25rem; }
details.card + h2, .card + h2, table.data + h2 { margin-top: 2.2rem; }
table.data th, table.data td {
padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border);
text-align: left; vertical-align: middle; font-size: 0.9rem;
}
table.data thead th {
background: var(--surface-2); color: var(--muted);
font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.empty { text-align: center; color: var(--muted); padding: 2rem; font-style: italic; }
table.data td a { color: var(--fg); }
table.data td a:hover { color: var(--brand); }
/* =========================================================================
Formulare
========================================================================= */
form.row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; }
form label {
display: flex; flex-direction: column; gap: 5px;
color: var(--muted); font-size: 0.72rem; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.06em;
}
input, select, textarea {
font: inherit; color: var(--fg);
padding: 0.55rem 0.75rem; border: 1px solid var(--border-strong);
border-radius: var(--radius-sm); background: var(--surface-2); min-width: 200px;
transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
text-transform: none; letter-spacing: normal; font-weight: 400;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
outline: 0; border-color: var(--brand);
background: var(--surface-3);
box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
select { cursor: pointer; }
select option { background: var(--surface); color: var(--fg); }
button {
font: inherit; padding: 0.55rem 1.05rem; cursor: pointer;
border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--fg);
border-radius: var(--radius-sm); font-weight: 600;
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.06s ease;
}
button:hover { background: var(--surface-3); border-color: var(--muted-2); }
button:active { transform: translateY(1px); }
button.primary {
background: var(--brand); color: #07131d; border-color: var(--brand);
box-shadow: 0 0 0 1px rgba(34,211,238,0.2), 0 1px 0 rgba(0,0,0,0.3);
}
button.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #07131d; }
button.primary:disabled { opacity: 0.4; cursor: not-allowed; }
button.ghost { background: transparent; border-color: transparent; color: var(--brand); }
button.ghost:hover { background: var(--brand-soft); border-color: transparent; }
button.linkbtn { background: transparent; border: 0; color: var(--brand); padding: 0.2rem 0.3rem; font-weight: 600; }
button.linkbtn.danger { color: var(--danger); }
button.linkbtn:hover { text-decoration: underline; background: transparent; border: 0; }
button.sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; }
/* Details / Summary */
details.card > summary {
list-style: none; cursor: pointer;
display: flex; align-items: center; justify-content: space-between;
font-weight: 600; color: var(--fg);
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 1.2rem; }
details.card[open] > summary::after { content: "−"; }
details.card[open] > summary { margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
/* =========================================================================
Flash, Tabs, Hints
========================================================================= */
.hint { color: var(--muted); font-size: 0.85rem; }
.flash { background: var(--ok-soft); border: 1px solid rgba(52,211,153,0.3); color: var(--ok); padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.err { background: var(--danger-soft); border: 1px solid rgba(248,113,113,0.3); color: var(--danger); padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 1rem; }
.tabs a {
padding: 0.35rem 0.95rem; border-radius: 999px;
color: var(--muted); font-weight: 600; font-size: 0.85rem;
}
.tabs a:hover { color: var(--fg); }
.tabs a.active { background: var(--surface-3); color: var(--brand); box-shadow: var(--shadow-1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
/* Login-Karte */
.login-card {
width: min(400px, 100%);
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 2rem;
box-shadow: var(--shadow-2);
}
.login-card h1 { text-align: center; margin-bottom: 1.35rem; }
.login-card form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-card form label { font-size: 0.7rem; }
.login-card button { width: 100%; padding: 0.7rem; }
.login-card .hint { text-align: center; margin-top: 1.25rem; }
/* Utility */
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 0.4rem; }
.row-inline { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.sep { color: var(--muted-2); margin: 0 0.35rem; }
small.mono { color: var(--muted); font-weight: 400; }
.empty-state {
text-align: center; padding: 2.5rem 1rem;
background: var(--surface-2); border: 1px dashed var(--border-strong);
border-radius: var(--radius); color: var(--muted);
}
.empty-state .title { color: var(--fg); font-weight: 600; margin-bottom: 0.25rem; }
.ok { color: var(--ok); font-weight: 600; }
.off { color: var(--muted); }
/* Mobile */
@media (max-width: 900px) {
:root { --sidebar-w: 64px; --content-pad: 1rem; }
.sidebar nav a span.lbl { display: none; }
.sidebar .brand .tag, .sidebar .brand a .full { display: none; }
.sidebar nav a { justify-content: center; padding: 0.6rem; }
.sidebar .foot { display: none; }
}