2026-04-14 17:41:39 +02:00

510 lines
19 KiB
CSS

@font-face {
src: url('./fonts/Gilroy-ExtraBold.otf') format("OpenType");
font-family: "GilroyBold";
}
@font-face {
src: url('./fonts/Gilroy-Light.otf') format("OpenType");
font-family: "GilroyLight";
}
:root {
--bg-base: #111213;
--bg-modal: #18191b;
--bg-sidebar: #111213;
--bg-card: #1e2022;
--bg-card-hover:#252729;
--bg-input: #1a1c1e;
--accent: #E8830A;
--accent-hover: #F5960F;
--accent-dim: rgba(232,131,10,0.12);
--accent-dim2: rgba(232,131,10,0.22);
--text-primary: #ffffff;
--text-secondary: rgba(255,255,255,0.55);
--text-muted: rgba(255,255,255,0.25);
--border: rgba(255,255,255,0.07);
--border-hover: rgba(255,255,255,0.13);
--green: #4CAF50;
--red: #EF5350;
--blue: #42A5F5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
width: 100vw; height: 100vh;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
font-family: "GilroyLight", "Segoe UI", sans-serif;
}
body { background: transparent; }
#app { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
/* ──────────────────── BACKDROP / MODAL ──────────────────── */
.mv-backdrop {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(0,0,0,0.55);
backdrop-filter: blur(2px);
}
.mv-backdrop-transparent {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: transparent;
}
.mv-modal {
width: 1200px;
height: 760px;
background: var(--bg-modal);
border-radius: 14px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.12);
display: flex;
flex-direction: column;
box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.mv-modal-wide { width: 1300px; height: 800px; }
/* ──────────────────── HEADER ──────────────────── */
.mv-header {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px;
background: var(--bg-base);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.mv-header-left { display: flex; align-items: center; gap: 10px; }
.mv-header-icon {
width: 34px; height: 34px; border-radius: 8px;
background: var(--accent-dim2);
border: 1px solid rgba(232,131,10,0.3);
display: flex; align-items: center; justify-content: center;
overflow: hidden;
}
.mv-logo-img { width: 28px; height: 28px; object-fit: contain; }
.mv-logo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 14px; }
.mv-header-title { display: flex; flex-direction: column; gap: 1px; }
.mv-title-main { font-family: "GilroyBold", sans-serif; font-size: 16px; color: var(--text-primary); letter-spacing: 0.3px; }
.mv-title-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.4px; text-transform: uppercase; }
.mv-header-right { display: flex; align-items: center; gap: 10px; }
.mv-player-name { font-size: 12px; color: var(--text-secondary); }
.mv-close-btn {
width: 28px; height: 28px; border-radius: 7px;
border: 1px solid var(--border-hover);
background: rgba(255,255,255,0.04);
color: var(--text-secondary); cursor: pointer;
display: flex; align-items: center; justify-content: center;
font-size: 11px; transition: all 0.15s;
}
.mv-close-btn:hover { background: rgba(255,255,255,0.1); color: white; }
/* ──────────────────── BODY LAYOUT ──────────────────── */
.mv-body { display: flex; flex: 1; overflow: hidden; }
/* ──────────────────── SIDEBAR ──────────────────── */
.mv-sidebar {
width: 175px; flex-shrink: 0;
background: var(--bg-sidebar);
border-right: 1px solid var(--border);
padding: 8px 0;
display: flex; flex-direction: column;
}
.mv-sidebar-item {
display: flex; align-items: center; gap: 10px;
padding: 11px 16px;
cursor: pointer;
border-radius: 0;
color: var(--text-secondary);
font-size: 15px;
transition: all 0.15s;
margin: 1px 8px;
border-radius: 8px;
border-left: 2px solid transparent;
}
.mv-sidebar-item i { font-size: 16px; width: 20px; text-align: center; }
.mv-sidebar-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); }
.mv-sidebar-item.active {
background: var(--accent-dim);
border-left: 2px solid var(--accent);
color: var(--accent);
font-family: "GilroyBold", sans-serif;
}
.mv-sidebar-item.active i { color: var(--accent); }
.mv-sidebar-item.active-fav { color: #FFD700; }
.mv-sidebar-item.active-fav i { color: #FFD700; }
.mv-sidebar-divider { height: 1px; background: var(--border); margin: 6px 14px; }
.mv-sidebar-spacer { flex: 1; }
.mv-admin-item { color: var(--text-muted); font-size: 11px; }
.mv-admin-item:hover { color: var(--accent); }
/* ──────────────────── MAIN AREA ──────────────────── */
.mv-main { flex: 1; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.mv-main-content { display: flex; overflow: hidden; flex: 1; }
.mv-topbar {
display: flex; align-items: center; gap: 12px;
padding: 10px 14px;
flex-shrink: 0;
}
.mv-search-wrap {
flex: 1; position: relative;
}
.mv-search-icon {
position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
color: var(--text-muted); font-size: 11px;
}
.mv-search {
width: 100%; padding: 8px 10px 8px 28px;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-secondary);
font-size: 12px; font-family: inherit;
outline: none; transition: border 0.15s;
}
.mv-search:focus { border-color: rgba(232,131,10,0.35); }
.mv-search::placeholder { color: var(--text-muted); }
.mv-impound-badge {
font-size: 11px; color: var(--accent);
background: var(--accent-dim);
border: 1px solid rgba(232,131,10,0.2);
padding: 5px 10px; border-radius: 6px;
white-space: nowrap;
}
/* ──────────────────── VEHICLE GRID ──────────────────── */
.mv-content-row {
display: flex; flex: 1; overflow: hidden;
}
.mv-grid {
flex: 1; overflow-y: auto;
padding: 14px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
align-content: start;
}
.mv-grid::-webkit-scrollbar { width: 0px; }
.mv-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 8px 8px;
text-align: center;
cursor: pointer;
position: relative;
transition: all 0.15s;
}
.mv-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.mv-card-active { border-color: var(--accent) !important; background: var(--bg-card-hover); }
.mv-card-status {
position: absolute; top: 6px; left: 6px;
font-size: 11px; padding: 3px 7px; border-radius: 3px;
font-family: "GilroyBold", sans-serif; letter-spacing: 0.05em;
}
.status-in { background: rgba(76,175,80,0.2); color: #81C784; border: 1px solid rgba(76,175,80,0.3); }
.status-out { background: rgba(232,131,10,0.2); color: var(--accent); border: 1px solid rgba(232,131,10,0.3); }
.mv-card-img { width: 115px; height: 70px; object-fit: contain; margin: 8px auto 8px; display: block; }
.mv-card-name {
font-size: 14px; font-family: "GilroyBold", sans-serif;
color: var(--text-primary); margin-bottom: 2px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-card-plate { font-size: 13px; color: var(--text-muted); letter-spacing: 0.08em; }
.mv-card-fav {
position: absolute; bottom: 6px; right: 7px;
font-size: 10px; color: #FFD700; opacity: 0.7; cursor: pointer; transition: opacity 0.15s;
}
.mv-card-fav:hover { opacity: 1; }
.mv-empty {
grid-column: 1/-1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
color: var(--text-muted); gap: 8px; padding: 30px;
}
.mv-empty i { font-size: 2.5rem; }
.mv-empty p { font-size: 12px; }
/* ──────────────────── DETAIL PANEL ──────────────────── */
.mv-detail {
width: 300px; flex-shrink: 0;
overflow-y: auto; padding: 16px;
display: flex; flex-direction: column; gap: 8px;
border-left: 1px solid var(--border);
background: rgba(0,0,0,0.15);
}
.mv-detail::-webkit-scrollbar { width: 0px; }
.mv-back-btn {
align-self: flex-start;
padding: 6px 12px;
background: rgba(255,255,255,0.05);
border: 1px solid var(--border);
border-radius: 7px;
color: var(--text-secondary);
font-size: 11px; cursor: pointer;
font-family: inherit; transition: background 0.15s;
}
.mv-back-btn:hover { background: rgba(255,255,255,0.1); }
.mv-detail-img-wrap { text-align: center; padding: 8px 0; }
.mv-detail-img { width: 160px; height: 90px; object-fit: contain; }
.mv-detail-name { font-family: "GilroyBold", sans-serif; font-size: 22px; color: white; text-align: center; }
.mv-detail-plate { font-size: 14px; color: var(--text-secondary); text-align: center; }
.mv-detail-garage{ font-size: 13px; color: var(--text-muted); text-align: center; }
.mv-detail-status {
text-align: center; font-size: 12px; padding: 6px 12px;
border-radius: 6px; display: inline-block; align-self: center;
}
.ds-in { background: rgba(76,175,80,0.15); color: #81C784; border: 1px solid rgba(76,175,80,0.2); }
.ds-out { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(232,131,10,0.2); }
.mv-takeout-btn {
padding: 13px; border-radius: 8px;
background: var(--accent); border: none;
color: white; font-family: "GilroyBold", sans-serif;
font-size: 14px; cursor: pointer; letter-spacing: 0.04em;
transition: background 0.15s, transform 0.1s;
}
.mv-takeout-btn:hover { background: var(--accent-hover); }
.mv-takeout-btn:active { transform: scale(0.98); }
.mv-already-out {
text-align: center; font-size: 11px; color: var(--text-muted);
padding: 8px; background: rgba(255,255,255,0.03);
border-radius: 6px; border: 1px solid var(--border);
}
.mv-detail-fav {
text-align: center; font-size: 11px; color: #FFD700;
cursor: pointer; opacity: 0.7; transition: opacity 0.15s;
}
.mv-detail-fav:hover { opacity: 1; }
/* ──────────────────── ADMIN SIDEBAR ──────────────────── */
.mv-admin-sidebar { width: 220px; }
.mv-admin-list { flex: 1; overflow-y: auto; }
.mv-admin-list::-webkit-scrollbar { width: 3px; }
.mv-admin-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.mv-admin-list-item {
display: flex; align-items: center; gap: 8px;
padding: 9px 12px; margin: 2px 6px; border-radius: 8px;
cursor: pointer; transition: background 0.12s;
border-left: 2px solid transparent;
}
.mv-admin-list-item:hover { background: rgba(255,255,255,0.04); }
.admin-item-active { background: var(--accent-dim) !important; border-left: 2px solid var(--accent); }
.mv-admin-item-icon {
width: 28px; height: 28px; border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-size: 11px; flex-shrink: 0;
background: rgba(255,255,255,0.06);
color: var(--text-secondary);
}
.type-icon-normal { background: rgba(76,175,80,0.15); color: #81C784; }
.type-icon-aircraft { background: rgba(66,165,245,0.15); color: #64B5F6; }
.type-icon-boat { background: rgba(0,188,212,0.15); color: #4DD0E1; }
.type-icon-jobgarage { background: rgba(232,131,10,0.15); color: var(--accent); }
.type-icon-impound, .type-icon-impoundboat, .type-icon-impoundplane
{ background: rgba(239,83,80,0.15); color: #EF9A9A; }
.mv-admin-item-info { flex: 1; min-width: 0; }
.mv-admin-item-label { font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-admin-item-type { font-size: 10px; color: var(--text-muted); margin-top: 1px; text-transform: uppercase; letter-spacing: 0.05em; }
.mv-admin-item-btns { display: flex; gap: 4px; opacity: 0; transition: opacity 0.12s; }
.mv-admin-list-item:hover .mv-admin-item-btns { opacity: 1; }
.mv-icon-btn { width: 24px; height: 24px; border-radius: 5px; border: none; cursor: pointer; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.mv-icon-btn-blue { background: rgba(66,165,245,0.25); color: #64B5F6; }
.mv-icon-btn-red { background: rgba(239,83,80,0.25); color: #EF9A9A; }
.mv-icon-btn:hover { opacity: 0.85; }
/* ──────────────────── ADMIN FORM ──────────────────── */
.mv-admin-main { }
.mv-btn-orange {
padding: 7px 14px; border-radius: 7px;
background: var(--accent); border: none;
color: white; font-family: "GilroyBold", sans-serif;
font-size: 11px; cursor: pointer; letter-spacing: 0.03em;
transition: background 0.15s; white-space: nowrap;
display: flex; align-items: center; gap: 5px;
}
.mv-btn-orange:hover { background: var(--accent-hover); }
.mv-form-scroll { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mv-form-scroll::-webkit-scrollbar { width: 3px; }
.mv-form-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.mv-form-section {
background: rgba(255,255,255,0.02);
border: 1px solid var(--border);
border-radius: 9px; padding: 12px;
}
.mv-form-section-title {
font-family: "GilroyBold", sans-serif; font-size: 10px;
color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mv-form-section-title i { color: var(--accent); }
.mv-hint-pill {
font-family: "GilroyLight", sans-serif; font-size: 10px;
color: rgba(232,131,10,0.7); background: var(--accent-dim);
padding: 2px 8px; border-radius: 10px; margin-left: 6px;
text-transform: none; letter-spacing: 0; font-weight: normal;
}
.mv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mv-form-field { display: flex; flex-direction: column; gap: 4px; }
.mv-form-field label { font-size: 10px; color: var(--text-muted); }
.mv-field-hint { color: rgba(255,255,255,0.2); font-size: 9px; }
.mv-form-field-check { flex-direction: row; align-items: center; gap: 8px; }
.mv-form-field input, .mv-form-field select {
padding: 7px 10px;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px; color: white;
font-family: inherit; font-size: 11px; outline: none;
transition: border 0.15s;
}
.mv-form-field input:focus, .mv-form-field select:focus { border-color: rgba(232,131,10,0.4); }
.mv-form-field select option { background: #1a1a1a; }
.mv-form-field input:disabled { opacity: 0.45; cursor: not-allowed; }
.mv-pos-block { margin-bottom: 10px; }
.mv-pos-label { font-size: 10px; color: var(--text-secondary); margin-bottom: 5px; }
.mv-pos-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 5px; }
.mv-pos-row input {
padding: 6px 7px; background: var(--bg-input);
border: 1px solid var(--border); border-radius: 5px;
color: white; font-size: 10px; font-family: inherit; outline: none;
}
.mv-pos-row input:focus { border-color: rgba(232,131,10,0.35); }
.mv-capture-btn {
padding: 5px 11px; border-radius: 5px;
background: rgba(232,131,10,0.12);
border: 1px solid rgba(232,131,10,0.25);
color: var(--accent); font-size: 10px;
font-family: inherit; cursor: pointer; transition: background 0.15s;
display: inline-flex; align-items: center; gap: 5px;
}
.mv-capture-btn:hover { background: rgba(232,131,10,0.2); }
.mv-admin-empty {
flex: 1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
color: var(--text-muted); gap: 10px;
}
.mv-admin-empty i { font-size: 2.5rem; }
.mv-admin-empty p { font-size: 12px; }
/* ──────────────────── OVERLAYS ──────────────────── */
.mv-confirm-overlay, .mv-capture-overlay {
position: fixed; inset: 0;
background: rgba(0,0,0,0.65);
display: flex; align-items: center; justify-content: center;
z-index: 9999;
}
.mv-capture-overlay { pointer-events: none; }
.mv-confirm-box, .mv-capture-box {
background: var(--bg-modal);
border: 1px solid var(--border);
border-radius: 12px; padding: 28px 24px;
text-align: center; max-width: 340px; width: 90%;
color: white; font-family: inherit;
}
.mv-confirm-icon { font-size: 2rem; color: var(--red); margin-bottom: 12px; display: block; }
.mv-confirm-title { font-family: "GilroyBold", sans-serif; font-size: 15px; margin-bottom: 6px; }
.mv-confirm-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.mv-confirm-btns { display: flex; gap: 10px; justify-content: center; }
.mv-btn-danger {
padding: 9px 20px; border-radius: 7px;
background: var(--red); border: none;
color: white; font-family: "GilroyBold", sans-serif;
font-size: 12px; cursor: pointer; transition: opacity 0.15s;
display: flex; align-items: center; gap: 5px;
}
.mv-btn-danger:hover { opacity: 0.85; }
.mv-btn-ghost {
padding: 9px 18px; border-radius: 7px;
background: rgba(255,255,255,0.06);
border: 1px solid var(--border-hover);
color: var(--text-secondary);
font-family: inherit; font-size: 12px; cursor: pointer;
transition: background 0.15s;
}
.mv-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.mv-capture-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 10px; display: block; }
.mv-capture-title { font-family: "GilroyBold", sans-serif; font-size: 15px; margin-bottom: 8px; }
.mv-capture-field { font-size: 12px; color: var(--accent); background: var(--accent-dim); padding: 4px 12px; border-radius: 5px; display: inline-block; margin-bottom: 10px; }
.mv-capture-hint { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.mv-capture-cancel{ font-size: 11px; color: var(--text-muted); }
kbd {
background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
border-radius: 4px; padding: 1px 6px; font-size: 11px;
font-family: inherit; color: white;
}
/* Nearby badge */
.status-nearby { background: rgba(232,131,10,0.25); color: var(--accent); border: 1px solid rgba(232,131,10,0.4); }
/* Einparken Button */
.mv-parkin-btn {
padding: 13px; border-radius: 8px;
background: rgba(232,131,10,0.15);
border: 1px solid rgba(232,131,10,0.4);
color: var(--accent);
font-family: "GilroyBold", sans-serif;
font-size: 14px; cursor: pointer; letter-spacing: 0.04em;
transition: background 0.15s, transform 0.1s;
margin-top: 4px;
}
.mv-parkin-btn:hover { background: rgba(232,131,10,0.28); }
.mv-parkin-btn:active { transform: scale(0.98); }