liftman/public/style.css
2026-05-22 23:05:37 +02:00

789 lines
12 KiB
CSS

:root {
--bg: #f3f4f6;
--panel: #ffffff;
--line: #d9dee7;
--line-strong: #c8d0dc;
--text: #1f2937;
--muted: #6b7280;
--accent: #2563eb;
--accent-dark: #1d4ed8;
--warning: #b45309;
--danger: #b91c1c;
--success: #15803d;
--shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
--radius: 12px;
}
* {
box-sizing: border-box;
}
html {
color-scheme: light;
}
body {
margin: 0;
font-family: "Segoe UI", Arial, sans-serif;
font-size: 15px;
line-height: 1.5;
color: var(--text);
background:
radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 28%),
linear-gradient(180deg, #f7faff, var(--bg) 18%);
}
button,
input,
select,
textarea {
font: inherit;
}
button {
cursor: pointer;
border: 0;
}
button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
input,
select,
textarea {
width: 100%;
border: 1px solid var(--line);
border-radius: 8px;
padding: 0.75rem 0.85rem;
background: #fff;
color: var(--text);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea {
resize: vertical;
}
label {
font-size: 0.95rem;
font-weight: 600;
color: var(--text);
}
#pageShell {
width: min(1180px, calc(100% - 2rem));
margin: 0 auto;
padding: 1.5rem 0 2.5rem;
}
#heroText,
.panel-head p,
#routeText,
.muted-text,
.feedback-text,
.entry-card p,
.dashboard-card p,
.auth-link-row {
color: var(--muted);
}
#mainLayout,
#appShell {
display: grid;
gap: 1rem;
}
.landing-layout {
gap: 1.25rem;
}
.auth-panel {
max-width: 560px;
margin: 0 auto;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.25rem;
box-shadow: var(--shadow);
}
.landing-header {
position: sticky;
top: 1rem;
z-index: 2;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
var(--panel);
backdrop-filter: blur(8px);
}
#siteHeader {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
border-color: #d6e2f7;
background:
linear-gradient(135deg, rgba(239, 245, 255, 0.96), rgba(255, 255, 255, 0.98)),
var(--panel);
}
.brand-block {
display: inline-flex;
align-items: center;
gap: 0.9rem;
min-width: 0;
}
.brand-link {
color: inherit;
text-decoration: none;
}
.brand-copy {
min-width: 0;
}
.brand-logo {
width: 52px;
height: 52px;
object-fit: contain;
border-radius: 14px;
flex: 0 0 auto;
background: #fff;
box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}
.brand-name {
margin: 0;
font-size: 1.1rem;
font-weight: 700;
color: var(--accent-dark);
}
.brand-subtitle {
margin: 0.15rem 0 0;
color: var(--muted);
font-size: 0.92rem;
}
.landing-header .brand-block {
gap: 1rem;
}
.landing-header .brand-copy {
display: grid;
gap: 0.2rem;
}
.landing-header .brand-logo {
width: 68px;
height: 68px;
padding: 0.2rem;
border-radius: 18px;
}
.landing-header .brand-name {
line-height: 1.15;
}
.top-nav {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.nav-link {
display: inline-flex;
align-items: center;
border: 1px solid var(--line);
border-radius: 8px;
padding: 0.55rem 0.8rem;
color: var(--text);
background: #fff;
text-decoration: none;
font-weight: 600;
}
.nav-link:hover {
background: #f8fafc;
}
.nav-link-active {
border-color: var(--line-strong);
background: #eef4ff;
color: var(--accent-dark);
}
.section-heading {
display: grid;
gap: 0.2rem;
}
.page-title {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
}
.landing-kicker {
margin: 0 0 0.6rem;
color: var(--accent-dark);
font-size: 0.84rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.landing-title {
margin: 0;
font-size: clamp(2rem, 4vw, 3.4rem);
line-height: 1.05;
max-width: 12ch;
}
.landing-lead {
margin: 0;
font-size: 1.02rem;
color: var(--muted);
max-width: 68ch;
}
.page-text {
margin: 0;
color: var(--muted);
}
.panel-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
margin-bottom: 1rem;
}
.panel-actions,
.inline-actions,
.device-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.panel-head h2,
.entry-card h3,
.dashboard-card h3 {
margin: 0;
}
.panel-head h2 {
font-size: 1.15rem;
}
.tab-button,
.ghost-button,
.primary-button,
.secondary-button {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 8px;
padding: 0.7rem 1rem;
font-weight: 600;
text-decoration: none;
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tab-button,
.ghost-button {
border: 1px solid var(--line);
background: #fff;
color: var(--text);
}
.primary-button {
background: var(--accent);
color: #fff;
}
.primary-button:hover {
background: var(--accent-dark);
}
.secondary-button {
background: #eef4ff;
color: var(--accent-dark);
border: 1px solid #cfe0ff;
}
.secondary-button:hover {
background: #e3edff;
}
.ghost-button:hover,
.tab-button:hover {
background: #f8fafc;
}
.app-topbar .ghost-button {
border-color: #bfd3fb;
background: rgba(255, 255, 255, 0.88);
}
.app-topbar .ghost-button:hover {
background: #eff5ff;
}
.compact-button {
padding: 0.55rem 0.8rem;
font-size: 0.92rem;
}
.auth-form,
#logForm {
display: grid;
gap: 0.85rem;
}
#deviceForm {
display: grid;
gap: 0.85rem;
}
.hidden {
display: none !important;
}
#topBar {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: center;
}
.app-topbar {
border-color: #cfe0ff;
background:
linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.96) 28%),
var(--panel);
}
.topbar-heading {
display: flex;
align-items: center;
gap: 0.9rem;
min-width: 0;
}
.topbar-logo {
width: 50px;
height: 50px;
object-fit: contain;
border-radius: 14px;
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
padding: 0.2rem;
flex: 0 0 auto;
}
.landing-hero {
display: grid;
grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.8fr);
gap: 1rem;
align-items: stretch;
padding: 1.5rem;
background:
radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 32%),
linear-gradient(180deg, #ffffff, #f7f9fc);
}
.landing-hero-copy {
display: grid;
gap: 1rem;
}
.landing-hero-logo {
width: min(100%, 320px);
max-height: 320px;
justify-self: center;
align-self: center;
object-fit: contain;
border-radius: 24px;
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
padding: 0.6rem;
}
.hero-sidecard {
display: grid;
align-content: start;
gap: 0.9rem;
padding: 1rem;
border: 1px solid #dbe4f0;
border-radius: 14px;
background: linear-gradient(180deg, #eef4ff, #ffffff);
}
.hero-sidecard-label {
margin: 0;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-dark);
}
.hero-sidecard-text {
margin: 0;
color: var(--text);
font-weight: 600;
}
.landing-login-link {
padding: 0.45rem 0.75rem;
font-size: 0.92rem;
border-color: #bfd3fb;
color: var(--accent-dark);
background: rgba(255, 255, 255, 0.9);
}
.landing-feature-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
}
.landing-feature-card,
.landing-service-item {
border: 1px solid var(--line);
border-radius: 12px;
background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.landing-feature-card {
padding: 1rem;
}
.landing-feature-card h3,
.landing-service-item h3 {
margin: 0 0 0.55rem;
}
.landing-feature-card p,
.landing-service-item p,
.landing-cta-text {
margin: 0;
color: var(--muted);
}
.landing-service-list {
display: grid;
gap: 0.9rem;
}
.landing-service-item {
padding: 1rem 1rem 1rem 1.15rem;
border-left: 4px solid #cfe0ff;
}
.landing-cta {
display: grid;
gap: 1rem;
background:
linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 1) 38%),
#fff;
}
.landing-contact-row {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.25rem;
color: var(--text);
font-weight: 600;
}
.dashboard-grid,
.entries-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
}
.dashboard-card,
.entry-card {
padding: 1rem;
border-radius: 10px;
background: #fff;
border: 1px solid var(--line);
min-height: 100%;
}
.empty-card {
display: grid;
place-items: center;
text-align: center;
min-height: 180px;
}
.card-topline {
display: flex;
justify-content: space-between;
gap: 0.75rem;
align-items: center;
margin-bottom: 0.8rem;
flex-wrap: wrap;
}
.status-chip,
.serial-chip {
display: inline-flex;
align-items: center;
border-radius: 999px;
padding: 0.3rem 0.65rem;
font-size: 0.82rem;
font-weight: 600;
}
.serial-chip {
background: #f3f4f6;
color: var(--text);
}
.success-chip {
background: #eaf7ef;
color: var(--success);
}
.warning-chip {
background: #fff4e5;
color: var(--warning);
}
.danger-chip {
background: #fdecec;
color: var(--danger);
}
.countdown-box {
margin: 1rem 0 0.75rem;
padding: 0.85rem 0.95rem;
border-radius: 8px;
background: #f8fafc;
border: 1px solid var(--line);
font-size: 1rem;
font-weight: 700;
}
.form-grid,
#entryControls {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
#entryControls {
margin-bottom: 0.75rem;
}
.field-wrap {
display: grid;
gap: 0.45rem;
}
.readonly-input {
background: #f8fafc;
color: var(--muted);
}
.field-wide {
grid-column: 1 / -1;
}
.form-actions {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
margin-top: 0.5rem;
}
.feedback-text {
min-height: 1.25rem;
margin: 0;
}
.feedback-success {
color: var(--success);
}
.feedback-error {
color: var(--danger);
}
.file-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.9rem;
}
.summary-card {
padding: 0.95rem 1rem;
border-radius: 10px;
border: 1px solid var(--line);
background: #f8fafc;
color: var(--text);
line-height: 1.6;
}
.device-card {
display: grid;
}
.device-actions {
margin-top: 1rem;
}
.modal-open {
overflow: hidden;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.52);
}
.modal-panel {
width: min(760px, 100%);
max-height: calc(100vh - 2rem);
overflow: auto;
border: 1px solid #d6e2f7;
border-radius: 16px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
#fff;
box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
padding: 1.25rem;
}
.modal-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
}
.modal-close {
flex: 0 0 auto;
}
.file-link {
display: inline-flex;
align-items: center;
padding: 0.45rem 0.7rem;
border-radius: 8px;
border: 1px solid var(--line);
background: #f8fafc;
color: var(--accent-dark);
text-decoration: none;
}
.file-link:hover {
background: #eef4ff;
border-color: #cfe0ff;
}
.auth-link-row {
margin: 0.4rem 0 0;
}
.auth-link-row a {
color: var(--accent-dark);
font-weight: 600;
text-decoration: none;
}
.auth-link-row a:hover {
text-decoration: underline;
}
@media (max-width: 960px) {
.landing-hero,
.landing-feature-grid,
.dashboard-grid,
.entries-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 720px) {
#pageShell {
width: min(100% - 1rem, 1180px);
padding-top: 1rem;
}
#siteHeader,
#topBar,
.panel-head,
.form-actions,
.modal-head {
display: grid;
align-items: start;
}
.brand-block,
.topbar-heading {
align-items: start;
}
.landing-hero,
.landing-feature-grid,
.form-grid,
#entryControls,
.dashboard-grid,
.entries-grid {
grid-template-columns: 1fr;
}
#mainTitle {
max-width: none;
font-size: 1.6rem;
}
.landing-title {
max-width: none;
}
.landing-hero-logo {
width: min(100%, 220px);
max-height: 220px;
}
.brand-logo,
.topbar-logo {
width: 44px;
height: 44px;
}
}