feat: Komplett-Redesign + Ausbau zur Plattform
- Ruhiges Dark-Designsystem (Tokens, Karten, Badges/Pills, KPIs) in global.css, animierter PixelBlast-Hintergrund entfernt (kleineres Bundle) - Aufgeraeumter App-Rahmen: feste Sidebar mit sichtbaren Labels, gruppierter Navigation, aktivem Zustand und Collapse - Wiederverwendbare UI-Bausteine unter src/components/ui/ - Ticketliste als scanbare Karten (TicketCard) statt rowSpan-Tabelle - Neue Bereiche: Kunden (CRM-360), Finanzen-Cockpit, Dokumente-Browser - Dashboard als echtes Cockpit (Ticket-/Finanz-/Dokument-Kennzahlen) - Alle Seiten auf einheitlichen PageHeader/Container/Tokens umgestellt Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8f6927fbb0
commit
d20a4de117
28 files changed
+1639
-840
No files matched your search
+310
-22
@@ -5,21 +5,69 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
--dark-bg: #1a202c;
|
||||
--dark-card-bg: rgba(45, 55, 72, 0.95);
|
||||
--dark-text: #e2e8f0;
|
||||
--green-primary: #10b981;
|
||||
--green-secondary: #059669;
|
||||
/* Surfaces (calm dark) */
|
||||
--bg: #0e131a;
|
||||
--surface-1: #151b23;
|
||||
--surface-2: #1b2430;
|
||||
--surface-3: #222d3a;
|
||||
--surface-hover: #243040;
|
||||
|
||||
/* Borders / lines */
|
||||
--border: rgba(255, 255, 255, 0.08);
|
||||
--border-strong: rgba(255, 255, 255, 0.14);
|
||||
--border-accent: rgba(16, 185, 129, 0.35);
|
||||
|
||||
/* Text */
|
||||
--text: #e6edf3;
|
||||
--text-muted: #9aa7b4;
|
||||
--text-faint: #6b7785;
|
||||
|
||||
/* Accent */
|
||||
--accent: #10b981;
|
||||
--accent-2: #059669;
|
||||
--accent-soft: rgba(16, 185, 129, 0.14);
|
||||
|
||||
/* Semantic */
|
||||
--info: #3b82f6;
|
||||
--warn: #f59e0b;
|
||||
--danger: #ef4444;
|
||||
--ok: #10b981;
|
||||
|
||||
/* Spacing */
|
||||
--sp-1: 4px; --sp-2: 8px; --sp-3: 12px;
|
||||
--sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
|
||||
|
||||
/* Radius */
|
||||
--r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
|
||||
|
||||
/* Elevation */
|
||||
--shadow-1: 0 1px 2px rgba(0,0,0,0.3);
|
||||
--shadow-2: 0 4px 14px rgba(0,0,0,0.3);
|
||||
--shadow-3: 0 12px 32px rgba(0,0,0,0.4);
|
||||
|
||||
/* Legacy aliases (Rueckwaertskompatibilitaet) */
|
||||
--dark-bg: var(--bg);
|
||||
--dark-card-bg: var(--surface-2);
|
||||
--dark-text: var(--text);
|
||||
--green-primary: var(--accent);
|
||||
--green-secondary: var(--accent-2);
|
||||
--gray-700: #374151;
|
||||
--gray-800: #1f2937;
|
||||
--gray-900: #111827;
|
||||
|
||||
--sidebar-w: 248px;
|
||||
--sidebar-w-collapsed: 72px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lato', sans-serif;
|
||||
background-color: var(--dark-bg);
|
||||
color: var(--dark-text);
|
||||
font-family: 'Lato', system-ui, -apple-system, sans-serif;
|
||||
background: radial-gradient(1200px 700px at 80% -10%, rgba(16,185,129,0.06), transparent 60%),
|
||||
radial-gradient(900px 600px at -10% 110%, rgba(59,130,246,0.05), transparent 55%),
|
||||
var(--bg);
|
||||
background-attachment: fixed;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* Scrollbar Styling */
|
||||
@@ -74,8 +122,10 @@ body {
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-top: 64px;
|
||||
padding: 16px;
|
||||
padding: var(--sp-5);
|
||||
max-width: 1320px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
@@ -432,19 +482,19 @@ textarea.form-control {
|
||||
color: var(--dark-text);
|
||||
}
|
||||
|
||||
/* Status Colors */
|
||||
.status-open { background: #4CAF50 !important; color: #fff !important; }
|
||||
.status-occupied { background: #607D8B !important; color: #fff !important; }
|
||||
.status-assigned { background: #009688 !important; color: #fff !important; }
|
||||
.status-awaiting { background: #ff9800 !important; color: #fff !important; }
|
||||
.status-closed { background: #9e9e9e !important; color: #fff !important; }
|
||||
/* Status Colors (ruhiger, semantisch) */
|
||||
.status-open { background: rgba(16,185,129,0.18) !important; color: #34d399 !important; }
|
||||
.status-occupied { background: rgba(148,163,184,0.18) !important; color: #cbd5e0 !important; }
|
||||
.status-assigned { background: rgba(20,184,166,0.18) !important; color: #2dd4bf !important; }
|
||||
.status-awaiting { background: rgba(245,158,11,0.18) !important; color: #fbbf24 !important; }
|
||||
.status-closed { background: rgba(148,163,184,0.14) !important; color: #94a3b8 !important; }
|
||||
|
||||
/* Priority Colors */
|
||||
.priority-none { background: #2196F3 !important; color: #fff !important; }
|
||||
.priority-low { background: #4CAF50 !important; color: #fff !important; }
|
||||
.priority-medium { background: #ffc107 !important; color: #000 !important; }
|
||||
.priority-high { background: #ff9800 !important; color: #fff !important; }
|
||||
.priority-critical { background: #f44336 !important; color: #fff !important; }
|
||||
/* Priority Colors (ruhiger, semantisch) */
|
||||
.priority-none { background: rgba(59,130,246,0.16) !important; color: #93c5fd !important; }
|
||||
.priority-low { background: rgba(16,185,129,0.16) !important; color: #34d399 !important; }
|
||||
.priority-medium { background: rgba(245,158,11,0.18) !important; color: #fbbf24 !important; }
|
||||
.priority-high { background: rgba(249,115,22,0.18) !important; color: #fb923c !important; }
|
||||
.priority-critical { background: rgba(239,68,68,0.18) !important; color: #f87171 !important; }
|
||||
|
||||
/* Dropdown */
|
||||
.dropdown {
|
||||
@@ -828,3 +878,241 @@ textarea.form-control {
|
||||
.navbar-nav { display: none; }
|
||||
.ticket-tab { padding: 8px 12px; font-size: 13px; }
|
||||
}
|
||||
|
||||
/* ============================================================= */
|
||||
/* =================== REDESIGN (Designsystem) =============== */
|
||||
/* ============================================================= */
|
||||
|
||||
/* --- App-Shell --- */
|
||||
.app-shell { display: flex; height: 100vh; overflow: hidden; }
|
||||
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.app-scroll { flex: 1; overflow-y: auto; }
|
||||
|
||||
/* --- Sidebar (fix, Labels sichtbar, gruppiert) --- */
|
||||
.side {
|
||||
width: var(--sidebar-w);
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(180deg, var(--surface-1), var(--bg));
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
.side.collapsed { width: var(--sidebar-w-collapsed); }
|
||||
.side-head {
|
||||
display: flex; align-items: center; gap: var(--sp-3);
|
||||
padding: var(--sp-4); border-bottom: 1px solid var(--border);
|
||||
min-height: 64px;
|
||||
}
|
||||
.side-logo {
|
||||
width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff; font-weight: 800;
|
||||
}
|
||||
.side-brand { font-weight: 800; font-size: 16px; letter-spacing: 0.2px; white-space: nowrap; }
|
||||
.side-brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-muted); }
|
||||
.side-nav { flex: 1; overflow-y: auto; padding: var(--sp-3) var(--sp-2); }
|
||||
.side-group { margin-bottom: var(--sp-4); }
|
||||
.side-group-label {
|
||||
font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px;
|
||||
color: var(--text-faint); padding: 0 var(--sp-3) var(--sp-2);
|
||||
}
|
||||
.side.collapsed .side-group-label,
|
||||
.side.collapsed .side-link-label,
|
||||
.side.collapsed .side-brand { display: none; }
|
||||
.side-link {
|
||||
display: flex; align-items: center; gap: var(--sp-3);
|
||||
padding: 10px var(--sp-3); margin: 2px var(--sp-1);
|
||||
border-radius: var(--r-sm); color: var(--text-muted);
|
||||
text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
|
||||
}
|
||||
.side-link svg { width: 20px; height: 20px; flex-shrink: 0; }
|
||||
.side-link:hover { background: var(--surface-2); color: var(--text); }
|
||||
.side-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
|
||||
.side-link.active svg { color: var(--accent); }
|
||||
.side-foot { border-top: 1px solid var(--border); padding: var(--sp-3); }
|
||||
.side-toggle {
|
||||
background: transparent; border: none; color: var(--text-muted);
|
||||
cursor: pointer; padding: var(--sp-2); border-radius: var(--r-sm);
|
||||
display: flex; align-items: center; gap: var(--sp-2); width: 100%;
|
||||
}
|
||||
.side-toggle:hover { background: var(--surface-2); color: var(--text); }
|
||||
|
||||
/* --- Page header + container --- */
|
||||
.page { padding: var(--sp-5); max-width: 1320px; margin: 0 auto; width: 100%; }
|
||||
.page-header {
|
||||
display: flex; align-items: flex-start; justify-content: space-between;
|
||||
gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
|
||||
}
|
||||
.page-title { font-size: 24px; font-weight: 800; margin: 0; }
|
||||
.page-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
|
||||
.page-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
|
||||
|
||||
/* --- UI Card / Section --- */
|
||||
.ui-card {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-md);
|
||||
box-shadow: var(--shadow-1);
|
||||
}
|
||||
.ui-card.pad { padding: var(--sp-4); }
|
||||
.ui-card-head {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
gap: var(--sp-3); padding: var(--sp-4); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.ui-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
|
||||
.ui-card-body { padding: var(--sp-4); }
|
||||
|
||||
/* --- Buttons (Redesign-Varianten) --- */
|
||||
.ui-btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
||||
padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid transparent;
|
||||
font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
|
||||
background: var(--surface-2); color: var(--text); text-decoration: none;
|
||||
}
|
||||
.ui-btn:hover { background: var(--surface-hover); }
|
||||
.ui-btn-primary { background: var(--accent); color: #06231a; border-color: transparent; }
|
||||
.ui-btn-primary:hover { background: #34d399; }
|
||||
.ui-btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-muted); }
|
||||
.ui-btn-ghost:hover { background: var(--surface-2); color: var(--text); }
|
||||
.ui-btn-danger { background: rgba(239,68,68,0.15); color: #f87171; }
|
||||
.ui-btn-danger:hover { background: rgba(239,68,68,0.25); }
|
||||
.ui-btn-sm { padding: 6px 10px; font-size: 13px; }
|
||||
.ui-btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
||||
|
||||
/* --- Badges / Pills --- */
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 3px 10px; border-radius: var(--r-pill);
|
||||
font-size: 12px; font-weight: 600; line-height: 1.4;
|
||||
background: var(--surface-2); color: var(--text-muted);
|
||||
}
|
||||
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
||||
.badge-info { background: rgba(59,130,246,0.16); color: #93c5fd; }
|
||||
.badge-ok { background: rgba(16,185,129,0.16); color: #34d399; }
|
||||
.badge-warn { background: rgba(245,158,11,0.18); color: #fbbf24; }
|
||||
.badge-danger { background: rgba(239,68,68,0.18); color: #f87171; }
|
||||
.badge-muted { background: var(--surface-2); color: var(--text-muted); }
|
||||
|
||||
/* --- KPI / Stat cards --- */
|
||||
.kpi-grid {
|
||||
display: grid; gap: var(--sp-4);
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
margin-bottom: var(--sp-5);
|
||||
}
|
||||
.kpi {
|
||||
background: var(--surface-1); border: 1px solid var(--border);
|
||||
border-radius: var(--r-md); padding: var(--sp-4);
|
||||
display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
|
||||
}
|
||||
.kpi-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
|
||||
.kpi-label { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
|
||||
.kpi-value { font-size: 28px; font-weight: 800; }
|
||||
.kpi-sub { font-size: 12px; color: var(--text-faint); }
|
||||
/* legacy dashboard stat classes -> new look */
|
||||
.stats-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); margin-bottom: var(--sp-5); }
|
||||
.stat-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); display: flex; align-items: center; gap: var(--sp-4); }
|
||||
.stat-info { display: flex; flex-direction: column; }
|
||||
.stat-value { font-size: 26px; font-weight: 800; }
|
||||
.stat-label { color: var(--text-muted); font-size: 13px; }
|
||||
.dashboard-section { margin-top: var(--sp-5); }
|
||||
.quick-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }
|
||||
|
||||
/* --- Ticket Card (ersetzt Tabelle) --- */
|
||||
.tickets-list { display: flex; flex-direction: column; gap: var(--sp-3); }
|
||||
.tcard {
|
||||
background: var(--surface-1); border: 1px solid var(--border);
|
||||
border-radius: var(--r-md); overflow: hidden; transition: border-color 0.15s ease;
|
||||
}
|
||||
.tcard:hover { border-color: var(--border-strong); }
|
||||
.tcard.open { border-color: var(--border-accent); }
|
||||
.tcard-main {
|
||||
display: grid; grid-template-columns: 92px 1fr auto; gap: var(--sp-4);
|
||||
padding: var(--sp-4); align-items: center; cursor: pointer;
|
||||
}
|
||||
.tcard-woid { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
|
||||
.tcard-woid .id { font-weight: 800; font-size: 15px; color: var(--accent); }
|
||||
.tcard-woid .age { font-size: 11px; color: var(--text-faint); }
|
||||
.tcard-body { min-width: 0; }
|
||||
.tcard-row1 { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: 4px; }
|
||||
.tcard-customer { font-weight: 700; }
|
||||
.tcard-loc { color: var(--text-muted); font-size: 13px; }
|
||||
.tcard-topic { color: var(--text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.tcard-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
|
||||
.tcard-side { display: flex; align-items: center; gap: var(--sp-3); }
|
||||
.tcard-detail { border-top: 1px solid var(--border); padding: var(--sp-4); background: var(--surface-1); }
|
||||
.chevron { color: var(--text-muted); transition: transform 0.2s ease; }
|
||||
.chevron.up { transform: rotate(180deg); }
|
||||
@media (max-width: 720px) {
|
||||
.tcard-main { grid-template-columns: 64px 1fr; }
|
||||
.tcard-side { grid-column: 1 / -1; justify-content: space-between; }
|
||||
}
|
||||
|
||||
/* --- Generic data list rows (Kunden/Finanzen/Dokumente) --- */
|
||||
.list { display: flex; flex-direction: column; }
|
||||
.list-row {
|
||||
display: flex; align-items: center; gap: var(--sp-3);
|
||||
padding: 12px var(--sp-4); border-bottom: 1px solid var(--border);
|
||||
transition: background 0.12s ease; text-decoration: none; color: var(--text);
|
||||
}
|
||||
.list-row:last-child { border-bottom: none; }
|
||||
.list-row:hover { background: var(--surface-2); }
|
||||
.list-row .grow { flex: 1; min-width: 0; }
|
||||
.list-row .muted { color: var(--text-muted); font-size: 13px; }
|
||||
|
||||
/* --- Clean table (ohne rowSpan-Tricks) --- */
|
||||
.ui-table { width: 100%; border-collapse: collapse; }
|
||||
.ui-table th {
|
||||
text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
|
||||
color: var(--text-faint); font-weight: 600; padding: 10px var(--sp-3);
|
||||
border-bottom: 1px solid var(--border); background: transparent;
|
||||
}
|
||||
.ui-table td { padding: 11px var(--sp-3); border-bottom: 1px solid var(--border); font-size: 14px; }
|
||||
.ui-table tbody tr:hover td { background: var(--surface-2); }
|
||||
|
||||
/* --- Segmented control / toolbar --- */
|
||||
.toolbar { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-4); }
|
||||
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
|
||||
.seg button {
|
||||
border: none; background: transparent; color: var(--text-muted);
|
||||
padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
|
||||
}
|
||||
.seg button.active { background: var(--accent-soft); color: var(--accent); }
|
||||
.search-input { flex: 1; min-width: 200px; }
|
||||
|
||||
/* --- Empty state --- */
|
||||
.empty { text-align: center; color: var(--text-muted); padding: var(--sp-6) var(--sp-4); }
|
||||
.empty .empty-icon { font-size: 32px; opacity: 0.5; margin-bottom: var(--sp-3); }
|
||||
|
||||
/* --- Field --- */
|
||||
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-3); }
|
||||
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
|
||||
|
||||
/* --- Tab restyle (ruhiger) --- */
|
||||
.ticket-tabs { border-bottom-color: var(--border); }
|
||||
.ticket-tab { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
|
||||
.ticket-tab:hover { background: var(--surface-hover); color: var(--text); }
|
||||
.ticket-tab-active { background: var(--accent); color: #06231a; }
|
||||
|
||||
/* --- Soften legacy cards/forms --- */
|
||||
.card { background: var(--surface-1) !important; border: 1px solid var(--border) !important; border-radius: var(--r-md); }
|
||||
.card-header { background: var(--surface-2); border-bottom: 1px solid var(--border); }
|
||||
.modern-card { background: var(--surface-1); border: 1px solid var(--border); }
|
||||
.modern-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
|
||||
.form-control, .form-select { background: var(--surface-2) !important; border: 1px solid var(--border) !important; border-radius: var(--r-sm); }
|
||||
.form-control:focus, .form-select:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
|
||||
.footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: var(--sp-4); margin-top: 0; }
|
||||
|
||||
/* --- Utilities --- */
|
||||
.muted { color: var(--text-muted); }
|
||||
.faint { color: var(--text-faint); }
|
||||
.flex { display: flex; }
|
||||
.flex-col { display: flex; flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
|
||||
.grow { flex: 1; min-width: 0; }
|
||||
.wrap { flex-wrap: wrap; }
|
||||
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
||||
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
Reference in new issue
Block a user