"Refactor database and styling for improved performance

This commit is contained in:
Till Tomczak 2025-05-29 11:49:11 +02:00
parent ee25880e39
commit 565124d874
3 changed files with 508 additions and 2 deletions

Binary file not shown.

View File

@ -4484,6 +4484,512 @@ footer {
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.04),
0 1px 2px rgba(0, 0, 0, 0.02);
transform: translateY(0);
}
.user-menu-button-new:hover {
@apply transform -translate-y-0.5;
background: rgba(241, 245, 249, 0.8);
box-shadow:
0 10px 20px rgba(0, 0, 0, 0.06),
0 2px 6px rgba(0, 0, 0, 0.04);
}
.dark .user-menu-button-new {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.15),
0 1px 2px rgba(0, 0, 0, 0.1);
}
.dark .user-menu-button-new:hover {
background: rgba(30, 41, 59, 0.8);
box-shadow:
0 10px 20px rgba(0, 0, 0, 0.15),
0 2px 6px rgba(0, 0, 0, 0.1);
}
/* User Avatar - Neues Design */
.user-avatar-new {
@apply h-8 w-8 rounded-full flex items-center justify-center text-white font-semibold text-sm shadow-md transition-all duration-300;
background: linear-gradient(135deg, #000000, #333333);
box-shadow:
0 2px 6px rgba(0, 0, 0, 0.2),
0 1px 3px rgba(0, 0, 0, 0.1);
}
.dark .user-avatar-new {
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
color: #0f172a;
box-shadow:
0 2px 6px rgba(0, 0, 0, 0.3),
0 1px 3px rgba(0, 0, 0, 0.2);
}
/* Login Button - Neues Design */
.login-button-new {
@apply flex items-center px-4 py-2 rounded-lg text-sm font-medium shadow-sm transition-all duration-300;
background: #000000;
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.1),
0 1px 2px rgba(0, 0, 0, 0.08);
}
.login-button-new:hover {
@apply transform -translate-y-0.5;
background: #333333;
box-shadow:
0 10px 20px rgba(0, 0, 0, 0.15),
0 3px 6px rgba(0, 0, 0, 0.1);
}
.dark .login-button-new {
background: #ffffff;
color: #000000;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.2),
0 1px 2px rgba(0, 0, 0, 0.15);
}
.dark .login-button-new:hover {
background: #f1f5f9;
box-shadow:
0 10px 20px rgba(0, 0, 0, 0.25),
0 3px 6px rgba(0, 0, 0, 0.2);
}
/* Mobile Menu - Neues Design */
.mobile-menu-new {
@apply w-full overflow-hidden transition-all duration-300 z-40;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
border-bottom: 1px solid rgba(241, 245, 249, 0.8);
max-height: 0;
opacity: 0;
}
.mobile-menu-new.open {
max-height: 500px;
opacity: 1;
border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}
.dark .mobile-menu-new {
background: rgba(15, 23, 42, 0.8);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
.mobile-nav-item {
@apply flex items-center space-x-3 px-4 py-3 rounded-lg text-slate-800 dark:text-slate-200 transition-all duration-300;
}
.mobile-nav-item:hover {
background: rgba(241, 245, 249, 0.8);
}
.dark .mobile-nav-item:hover {
background: rgba(30, 41, 59, 0.6);
}
.mobile-nav-item.active {
background: rgba(241, 245, 249, 0.9);
color: #000000;
font-weight: 500;
}
.dark .mobile-nav-item.active {
background: rgba(30, 41, 59, 0.8);
color: #ffffff;
}
/* Dashboard Stat Cards mit schwarzem Hintergrund im Dark Mode */
.mb-stat-card {
background: linear-gradient(135deg, rgba(240, 249, 255, 0.6) 0%, rgba(230, 242, 255, 0.6) 100%);
color: #0f172a;
position: relative;
overflow: hidden;
border: none;
border-radius: var(--card-radius);
backdrop-filter: blur(20px) saturate(180%) brightness(110%);
-webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
padding: 1.5rem;
margin: 1rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .mb-stat-card {
background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(10, 10, 10, 0.7) 100%);
color: var(--text-primary, #f8fafc);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Stats und Jobs Page Card Styles */
.stats-card, .job-card {
@apply bg-white/60 dark:bg-black/80 backdrop-blur-2xl border border-gray-200/70 dark:border-slate-700/20 rounded-xl shadow-2xl transition-all duration-300;
backdrop-filter: blur(24px) saturate(200%) brightness(120%);
-webkit-backdrop-filter: blur(24px) saturate(200%) brightness(120%);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
border-radius: var(--card-radius);
}
/* Footer Styling - Verstärktes Glassmorphism */
footer {
@apply transition-all duration-300;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(30px) saturate(180%) brightness(120%);
-webkit-backdrop-filter: blur(30px) saturate(180%) brightness(120%);
border-top: 1px solid rgba(255, 255, 255, 0.2);
box-shadow:
0 -8px 32px rgba(0, 0, 0, 0.1),
0 -2px 8px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255, 255, 255, 0.2),
0 0 0 1px rgba(255, 255, 255, 0.05);
}
.dark footer {
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(30px) saturate(160%) brightness(110%);
-webkit-backdrop-filter: blur(30px) saturate(160%) brightness(110%);
border-top: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 -8px 32px rgba(0, 0, 0, 0.3),
0 -2px 8px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 0 0 1px rgba(255, 255, 255, 0.03);
}
/* Dropdown Pfeil Animation */
.dropdown-arrow {
@apply transition-transform duration-300;
}
/* Mercedes-Benz Hintergrund mit Star-Pattern */
.mercedes-star-bg {
position: relative;
}
.mercedes-star-bg::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80' opacity='0.05' fill='currentColor'%3E%3Cpath d='M58.6,4.5C53,1.6,46.7,0,40,0c-6.7,0-13,1.6-18.6,4.5v0C8.7,11.2,0,24.6,0,40c0,15.4,8.7,28.8,21.5,35.5C27,78.3,33.3,80,40,80c6.7,0,12.9-1.7,18.5-4.6C71.3,68.8,80,55.4,80,40C80,24.6,71.3,11.2,58.6,4.5z M4,40c0-13.1,7-24.5,17.5-30.9v0C26.6,6,32.5,4.2,39,4l-4.5,32.7L21.5,46.8v0L8.3,57.1C5.6,52,4,46.2,4,40z M58.6,70.8C53.1,74.1,46.8,76,40,76c-6.8,0-13.2-1.9-18.6-5.2c-4.9-2.9-8.9-6.9-11.9-11.7l11.9-4.9v0L40,46.6l18.6,7.5v0l12,4.9C67.6,63.9,63.4,67.9,58.6,70.8z M58.6,46.8L58.6,46.8l-12.9-10L41.1,4c6.3,0.2,12.3,2,17.4,5.1v0C69,15.4,76,26.9,76,40c0,6.2-1.5,12-4.3,17.1L58.6,46.8z'/%3E%3C/svg%3E");
background-position: center;
background-repeat: repeat;
background-size: 40px 40px;
z-index: -1;
opacity: 0.05;
}
.dark .mercedes-star-bg::after {
opacity: 0.02;
filter: invert(1) brightness(0.4);
}
/* Zusätzliche Glassmorphism-Verbesserungen */
.glass-effect {
backdrop-filter: blur(20px) saturate(180%) brightness(110%);
-webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dark .glass-effect {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
/* Verbesserte Hover-Effekte für alle interaktiven Elemente */
.glass-hover {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-hover:hover {
transform: translateY(-2px);
backdrop-filter: blur(25px) saturate(200%) brightness(120%);
-webkit-backdrop-filter: blur(25px) saturate(200%) brightness(120%);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.15),
0 8px 16px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.dark .glass-hover:hover {
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.4),
0 8px 16px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Neue verbesserte Drucker-Karten für die Drucker-Ansicht */
.printer-card-new {
@apply bg-gradient-to-br from-white/90 to-white/70 dark:from-slate-800/90 dark:to-slate-900/70 backdrop-blur-2xl rounded-xl border border-gray-200/70 dark:border-slate-700/30 p-5 shadow-2xl transition-all duration-300 hover:-translate-y-1 relative overflow-hidden;
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.08),
0 10px 20px rgba(0, 0, 0, 0.06),
0 0 0 1px rgba(255, 255, 255, 0.1);
border-radius: var(--card-radius, 1rem);
}
.dark .printer-card-new {
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.4),
0 10px 20px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Online Drucker-Karten mit stärkerem visuellen Unterschied */
.printer-card-new.online {
@apply bg-gradient-to-br from-green-50/90 to-emerald-50/80 dark:from-green-900/30 dark:to-emerald-900/20 border-green-200 dark:border-green-700/50;
box-shadow:
0 20px 40px rgba(0, 122, 85, 0.08),
0 10px 20px rgba(0, 122, 85, 0.06),
0 0 0 1px rgba(209, 250, 229, 0.4);
}
.dark .printer-card-new.online {
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
0 10px 20px rgba(0, 0, 0, 0.2),
0 0 0 1px rgba(16, 185, 129, 0.2);
}
/* Status-Badge mit verbesserten Styles */
.status-badge-new {
@apply px-2.5 py-1 rounded-full text-xs font-medium inline-flex items-center space-x-1 shadow-sm;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.dark .status-badge-new {
background: rgba(30, 41, 59, 0.7);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.status-badge-new.online {
@apply bg-green-100/90 text-green-800 dark:bg-green-900/60 dark:text-green-300;
}
.status-badge-new.offline {
@apply bg-red-100/90 text-red-800 dark:bg-red-900/60 dark:text-red-300;
}
/* Verbesserte Filterleiste */
.filter-bar-new {
@apply bg-white/80 dark:bg-slate-800/80 backdrop-blur-xl rounded-lg p-1.5 border border-gray-200/60 dark:border-slate-700/30 shadow-xl;
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.05),
0 5px 10px rgba(0, 0, 0, 0.03),
0 0 0 1px rgba(255, 255, 255, 0.2);
}
.dark .filter-bar-new {
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.2),
0 5px 10px rgba(0, 0, 0, 0.15),
0 0 0 1px rgba(255, 255, 255, 0.05);
}
.filter-btn-new {
@apply px-3.5 py-2 text-sm rounded-md transition-all duration-300 font-medium;
}
.filter-btn-new.active {
@apply bg-black text-white dark:bg-white dark:text-slate-900 shadow-md;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.dark .filter-btn-new.active {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Verbesserte Aktionsschaltflächen */
.action-btn-new {
@apply flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-300 shadow-md hover:-translate-y-0.5;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.action-btn-new.primary {
@apply bg-indigo-600 hover:bg-indigo-700 text-white dark:bg-indigo-600 dark:hover:bg-indigo-500;
box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}
.dark .action-btn-new.primary {
box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}
.action-btn-new.success {
@apply bg-green-600 hover:bg-green-700 text-white dark:bg-green-600 dark:hover:bg-green-500;
box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}
.dark .action-btn-new.success {
box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}
.action-btn-new.danger {
@apply bg-red-600 hover:bg-red-700 text-white dark:bg-red-600 dark:hover:bg-red-500;
box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
}
.dark .action-btn-new.danger {
box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}
/* Informationszeilen in Drucker-Karten */
.printer-info-row {
@apply flex items-center gap-2 text-xs sm:text-sm text-slate-700 dark:text-slate-300 mb-1.5;
}
.printer-info-icon {
@apply w-3.5 h-3.5 sm:w-4 sm:h-4 text-slate-500 dark:text-slate-400 flex-shrink-0;
}
/* Online-Indikator mit Pulseffekt */
.online-indicator {
@apply absolute top-2.5 right-2.5 w-3 h-3 bg-green-500 rounded-full shadow-lg;
box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}
@keyframes pulse-ring {
0% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
}
70% {
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
/* Header mit verbesserten Status-Anzeigen */
.status-overview-new {
@apply flex flex-wrap gap-3 text-xs sm:text-sm p-3 bg-white/60 dark:bg-slate-800/60 backdrop-blur-xl rounded-lg border border-gray-200/60 dark:border-slate-700/30 shadow-lg;
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.04),
0 5px 10px rgba(0, 0, 0, 0.02),
0 0 0 1px rgba(255, 255, 255, 0.1);
}
.dark .status-overview-new {
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.15),
0 5px 10px rgba(0, 0, 0, 0.1),
0 0 0 1px rgba(255, 255, 255, 0.03);
}
.status-dot {
@apply w-2.5 h-2.5 rounded-full;
}
.status-dot.online {
@apply bg-green-500;
animation: pulse-dot 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}
.status-dot.offline {
@apply bg-red-500;
}
@keyframes pulse-dot {
0% {
transform: scale(0.95);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
100% {
transform: scale(0.95);
opacity: 1;
}
}
/* Verbesserte Modals mit Glassmorphism */
.modal-new {
@apply fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40 backdrop-blur-sm;
}
.modal-content-new {
@apply bg-white/90 dark:bg-slate-800/90 backdrop-blur-2xl rounded-2xl p-6 w-full max-w-md shadow-2xl border border-gray-200/60 dark:border-slate-700/30 transform transition-all duration-300;
box-shadow:
0 25px 50px rgba(0, 0, 0, 0.15),
0 15px 30px rgba(0, 0, 0, 0.1),
0 20px 25px -5px rgba(0, 0, 0, 0.5),
0 10px 10px -5px rgba(0, 0, 0, 0.3);
}
/* User Dropdown Items */
.user-dropdown-item {
@apply flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-800 transition-all duration-200 cursor-pointer;
}
.user-dropdown-item:first-child {
@apply rounded-t-xl;
}
.user-dropdown-item:last-child {
@apply rounded-b-xl;
}
.user-dropdown-item:hover {
background: rgba(248, 250, 252, 0.8);
transform: translateX(2px);
}
.dark .user-dropdown-item:hover {
background: rgba(30, 41, 59, 0.8);
}
/* User Dropdown Icons */
.user-dropdown-icon {
@apply w-4 h-4 mr-3 text-slate-500 dark:text-slate-400 transition-colors duration-200;
}
.user-dropdown-item:hover .user-dropdown-icon {
@apply text-slate-700 dark:text-slate-200;
}
/* Divider in User Dropdown */
.user-dropdown-divider {
@apply border-t border-slate-200 dark:border-slate-700 my-1;
}
/* User Info Section in Dropdown */
.user-info-section {
@apply px-4 py-3 border-b border-slate-200 dark:border-slate-700;
background: rgba(248, 250, 252, 0.5);
}
.dark .user-info-section {
background: rgba(30, 41, 59, 0.5);
}
.user-info-name {
@apply text-sm font-semibold text-slate-900 dark:text-white;
}
.user-info-role {
@apply text-xs text-slate-500 dark:text-slate-400 mt-1;
}

File diff suppressed because one or more lines are too long