feat: Major updates to backend structure and security enhancements

- Removed `COMMON_ERRORS.md` file to streamline documentation.
- Added `Flask-Limiter` for rate limiting and `redis` for session management in `requirements.txt`.
- Expanded `ROADMAP.md` to include completed security features and planned enhancements for version 2.2.
- Enhanced `setup_myp.sh` for ultra-secure kiosk installation, including system hardening and security configurations.
- Updated `app.py` to integrate CSRF protection and improved logging setup.
- Refactored user model to include username and active status for better user management.
- Improved job scheduler with uptime tracking and task management features.
- Updated various templates for a more cohesive user interface and experience.
This commit is contained in:
2025-05-25 20:33:38 +02:00
parent e21104611f
commit 2d33753b94
1288 changed files with 247388 additions and 3249 deletions

View File

@@ -0,0 +1,692 @@
/* Admin Panel Styles */
/* Core Variables */
:root {
--primary-color: #4f46e5;
--primary-hover: #4338ca;
--success-color: #10b981;
--success-hover: #059669;
--warning-color: #f59e0b;
--warning-hover: #d97706;
--error-color: #ef4444;
--error-hover: #dc2626;
--info-color: #3b82f6;
--info-hover: #2563eb;
}
/* Dark Mode Variables */
.dark {
--bg-color: #1e293b;
--card-bg: #334155;
--border-color: #475569;
--text-primary: #f8fafc;
--text-secondary: #cbd5e1;
--hover-bg: #475569;
}
/* Light Mode Variables */
:root {
--bg-color: #f8fafc;
--card-bg: #ffffff;
--border-color: #e2e8f0;
--text-primary: #1e293b;
--text-secondary: #64748b;
--hover-bg: #f1f5f9;
}
/* Admin Panel Container */
.admin-container {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
}
/* Navigation Tabs */
.nav-tabs {
display: flex;
border-bottom: 1px solid var(--border-color);
margin-bottom: 1rem;
overflow-x: auto;
scrollbar-width: thin;
}
.nav-tabs::-webkit-scrollbar {
height: 5px;
}
.nav-tabs::-webkit-scrollbar-thumb {
background-color: var(--border-color);
border-radius: 5px;
}
.nav-tab {
padding: 1rem 1.5rem;
color: var(--text-secondary);
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.nav-tab:hover {
color: var(--text-primary);
background-color: var(--hover-bg);
}
.nav-tab.active {
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
font-weight: 500;
}
.nav-tab .icon {
margin-right: 0.5rem;
}
/* Tab Content */
.tab-content {
margin-top: 2rem;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
/* Admin Stats */
.admin-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.stat-card {
background-color: var(--card-bg);
border-radius: 0.75rem;
border: 1px solid var(--border-color);
padding: 1.25rem;
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.stat-icon {
position: absolute;
top: 1rem;
right: 1rem;
opacity: 0.15;
font-size: 2.5rem;
}
.stat-title {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
font-weight: 500;
text-transform: uppercase;
}
.stat-value {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.stat-desc {
font-size: 0.875rem;
color: var(--text-secondary);
}
/* Primary Button */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
font-weight: 500;
font-size: 0.875rem;
border-radius: 0.375rem;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-hover);
}
.btn-secondary {
background-color: transparent;
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background-color: var(--hover-bg);
}
.btn-success {
background-color: var(--success-color);
color: white;
}
.btn-success:hover {
background-color: var(--success-hover);
}
.btn-error {
background-color: var(--error-color);
color: white;
}
.btn-error:hover {
background-color: var(--error-hover);
}
.btn-warning {
background-color: var(--warning-color);
color: white;
}
.btn-warning:hover {
background-color: var(--warning-hover);
}
.btn-info {
background-color: var(--info-color);
color: white;
}
.btn-info:hover {
background-color: var(--info-hover);
}
/* Form Elements */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-primary);
}
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: 0.625rem;
border: 1px solid var(--border-color);
border-radius: 0.375rem;
background-color: var(--card-bg);
color: var(--text-primary);
transition: border-color 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
/* Modal Styles */
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: none;
z-index: 50;
align-items: center;
justify-content: center;
overflow-y: auto;
transition: opacity 0.3s ease;
opacity: 0;
}
.modal.show {
display: flex;
opacity: 1;
}
.modal-dialog {
background-color: var(--card-bg);
border-radius: 0.5rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
width: 100%;
max-width: 500px;
transform: scale(0.9);
transition: transform 0.3s ease;
}
.modal.show .modal-dialog {
transform: scale(1);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border-color);
}
.modal-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 0.25rem;
cursor: pointer;
transition: color 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.modal-close:hover {
color: var(--error-color);
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.75rem;
padding: 1rem 1.5rem;
border-top: 1px solid var(--border-color);
}
/* Badge Styles */
.badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge-success {
background-color: rgba(16, 185, 129, 0.1);
color: var(--success-color);
}
.badge-error {
background-color: rgba(239, 68, 68, 0.1);
color: var(--error-color);
}
.badge-warning {
background-color: rgba(245, 158, 11, 0.1);
color: var(--warning-color);
}
.badge-info {
background-color: rgba(59, 130, 246, 0.1);
color: var(--info-color);
}
/* Log Entry Styles */
.log-entry {
padding: 0.75rem;
border-radius: 0.375rem;
margin-bottom: 0.5rem;
font-size: 0.875rem;
transition: background-color 0.2s ease;
}
.log-entry:hover {
background-color: var(--hover-bg);
}
.log-debug {
border-left: 3px solid #9ca3af;
background-color: rgba(156, 163, 175, 0.1);
}
.log-info {
border-left: 3px solid var(--info-color);
background-color: rgba(59, 130, 246, 0.1);
}
.log-warning {
border-left: 3px solid var(--warning-color);
background-color: rgba(245, 158, 11, 0.1);
}
.log-error {
border-left: 3px solid var(--error-color);
background-color: rgba(239, 68, 68, 0.1);
}
.log-critical {
border-left: 3px solid #7c3aed;
background-color: rgba(124, 58, 237, 0.1);
}
/* Scheduler Status */
.scheduler-status {
display: flex;
align-items: center;
padding: 1rem;
background-color: var(--card-bg);
border-radius: 0.5rem;
border: 1px solid var(--border-color);
margin-bottom: 1rem;
}
.status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 0.75rem;
}
.status-running {
background-color: var(--success-color);
animation: pulse 2s infinite;
}
.status-stopped {
background-color: var(--error-color);
}
.pulse {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
.status-text {
font-weight: 500;
}
.printer-card {
background-color: var(--card-bg);
border-radius: 0.5rem;
border: 1px solid var(--border-color);
padding: 1rem;
transition: all 0.2s ease;
}
.printer-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.printer-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 1rem;
}
.printer-name {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.printer-actions {
display: flex;
gap: 0.5rem;
}
.printer-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-bottom: 1rem;
}
.printer-status {
display: flex;
align-items: center;
font-size: 0.875rem;
margin-bottom: 0.5rem;
}
.printer-status .status-indicator {
width: 8px;
height: 8px;
}
.tasks-table {
width: 100%;
border-collapse: collapse;
}
.tasks-table th {
padding: 0.75rem 1rem;
text-align: left;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
color: var(--text-secondary);
border-bottom: 1px solid var(--border-color);
}
.tasks-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
}
.tasks-table tr:hover td {
background-color: var(--hover-bg);
}
@media (max-width: 768px) {
.admin-stats {
grid-template-columns: 1fr;
}
.modal-dialog {
max-width: 90%;
margin: 1rem;
}
}
.dark .stat-card {
background-color: var(--card-bg);
}
.dark .form-input,
.dark .form-select,
.dark .form-textarea {
background-color: var(--card-bg);
color: var(--text-primary);
border-color: var(--border-color);
}
.dark .modal-dialog {
background-color: var(--card-bg);
border-color: var(--border-color);
}
.text-success { color: var(--success-color); }
.text-error { color: var(--error-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.bg-success { background-color: var(--success-color); }
.bg-error { background-color: var(--error-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
/* Notification Styles */
.notification {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%) translateY(100%);
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 1rem 1.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
z-index: 40;
transition: transform 0.3s ease;
opacity: 0;
max-width: 90%;
width: auto;
}
.notification.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
.notification-success {
border-left: 4px solid var(--success-color);
}
.notification-error {
border-left: 4px solid var(--error-color);
}
.notification-warning {
border-left: 4px solid var(--warning-color);
}
.notification-info {
border-left: 4px solid var(--info-color);
}
/* Verbesserte Sichtbarkeit */
.hidden {
display: none !important;
}
/* Progress Bar Classes */
.progress-bar {
width: 100%;
background-color: #e5e7eb;
border-radius: 9999px;
height: 0.625rem;
}
.dark .progress-bar {
background-color: #374151;
}
.progress-bar-fill {
height: 0.625rem;
border-radius: 9999px;
}
.progress-bar-fill-blue {
background-color: #2563eb;
}
.dark .progress-bar-fill-blue {
background-color: #3b82f6;
}
.progress-bar-fill-green {
background-color: #16a34a;
}
.dark .progress-bar-fill-green {
background-color: #22c55e;
}
.progress-bar-fill-purple {
background-color: #9333ea;
}
.dark .progress-bar-fill-purple {
background-color: #a855f7;
}
/* Alert styles for flash messages */
.alert {
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
font-weight: 500;
}
.alert-success {
background-color: #d1fae5;
color: #047857;
}
.dark .alert-success {
background-color: #065f46;
color: #a7f3d0;
}
.alert-error {
background-color: #fee2e2;
color: #b91c1c;
}
.dark .alert-error {
background-color: #991b1b;
color: #fecaca;
}
.alert-warning {
background-color: #fef3c7;
color: #92400e;
}
.dark .alert-warning {
background-color: #78350f;
color: #fde68a;
}
.alert-info {
background-color: #dbeafe;
color: #1e40af;
}
.dark .alert-info {
background-color: #1e3a8a;
color: #bfdbfe;
}

View File

@@ -0,0 +1,267 @@
/**
* MYP Platform Komponenten-Bibliothek
* Erweiterte UI-Komponenten basierend auf Tailwind CSS
*/
@layer components {
/* Karten und Container */
.card {
@apply bg-white dark:bg-dark-card rounded-xl shadow-sm border border-light-border dark:border-dark-border p-6 m-4 transition-colors duration-300;
}
.card-hover {
@apply hover:shadow-md hover:bg-light-card-hover dark:hover:bg-dark-card-hover transition-all duration-300;
}
.container-panel {
@apply bg-light-bg-secondary dark:bg-dark-bg-secondary rounded-lg p-6 m-4 border border-light-border dark:border-dark-border;
}
/* Formulare */
.form-input {
@apply w-full rounded-lg border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 px-4 py-3 text-slate-900 dark:text-white focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-30 transition-colors duration-300;
}
.form-label {
@apply block text-sm font-medium text-light-text dark:text-slate-300 mb-2 transition-colors duration-300;
}
.form-group {
@apply mb-6;
}
.form-help {
@apply mt-1 text-xs text-light-text-muted dark:text-slate-400 transition-colors duration-300;
}
.form-error {
@apply mt-1 text-xs text-red-600 dark:text-red-400 font-medium transition-colors duration-300;
}
/* Buttons */
.btn-icon {
@apply inline-flex items-center justify-center rounded-lg p-2 transition-colors duration-300;
}
.btn-text {
@apply inline-flex items-center justify-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors duration-300;
}
.btn-rounded {
@apply rounded-full;
}
.btn-sm {
@apply px-3 py-1 text-xs;
}
.btn-lg {
@apply px-6 py-3 text-base;
}
/* Badges und Tags */
.badge {
@apply inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium transition-colors duration-300;
}
.badge-blue {
@apply bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300;
}
.badge-green {
@apply bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300;
}
.badge-red {
@apply bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300;
}
.badge-yellow {
@apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-300;
}
.badge-purple {
@apply bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-300;
}
/* Status Anzeigen */
.status-dot {
@apply relative flex h-2 w-2 rounded-full;
}
.status-dot::after {
@apply absolute top-0 left-0 h-full w-full rounded-full content-[''] animate-ping opacity-75;
}
.status-online {
@apply bg-status-online;
}
.status-online::after {
@apply bg-status-online;
}
.status-offline {
@apply bg-status-offline;
}
.status-warning {
@apply bg-status-warning;
}
.status-warning::after {
@apply bg-status-warning;
}
/* Tabellen */
.table-container {
@apply w-full overflow-x-auto rounded-lg border border-light-border dark:border-dark-border shadow-sm;
}
.table-styled {
@apply w-full whitespace-nowrap text-left text-sm text-light-text dark:text-slate-200;
}
.table-styled thead {
@apply bg-slate-50 dark:bg-slate-700 transition-colors duration-300;
}
.table-styled th {
@apply px-4 py-3 font-medium transition-colors duration-300;
}
.table-styled tbody tr {
@apply border-t border-light-border dark:border-dark-border transition-colors duration-300;
}
.table-styled tbody tr:hover {
@apply bg-light-hover dark:bg-slate-700/50 transition-colors duration-300;
}
.table-styled td {
@apply px-4 py-3 transition-colors duration-300;
}
/* Alert und Toast */
.alert {
@apply rounded-lg border p-4 mb-4 transition-colors duration-300;
}
.alert-info {
@apply bg-blue-50 dark:bg-blue-900/30 border-blue-200 dark:border-blue-800 text-blue-800 dark:text-blue-300;
}
.alert-success {
@apply bg-green-50 dark:bg-green-900/30 border-green-200 dark:border-green-800 text-green-800 dark:text-green-300;
}
.alert-warning {
@apply bg-yellow-50 dark:bg-yellow-900/30 border-yellow-200 dark:border-yellow-800 text-yellow-800 dark:text-yellow-300;
}
.alert-error {
@apply bg-red-50 dark:bg-red-900/30 border-red-200 dark:border-red-800 text-red-800 dark:text-red-300;
}
/* Navigation */
.nav-tab {
@apply inline-flex items-center gap-2 px-4 py-2 border-b-2 text-sm font-medium transition-colors duration-300;
}
.nav-tab-active {
@apply border-indigo-600 text-indigo-600 dark:text-indigo-400 dark:border-indigo-400;
}
.nav-tab-inactive {
@apply border-transparent text-light-text-muted hover:text-light-text hover:border-light-border dark:text-slate-400 dark:hover:text-slate-300 dark:hover:border-slate-600;
}
/* Navigation Links */
.nav-link {
@apply flex items-center gap-2 px-3 py-2 rounded-lg text-light-text-secondary dark:text-slate-300 hover:bg-light-hover dark:hover:bg-slate-700 transition-colors duration-300;
}
.nav-link.active {
@apply bg-indigo-50 text-indigo-600 dark:bg-indigo-900 dark:text-indigo-300 font-medium;
}
/* Printer Status */
.printer-status {
@apply inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium;
}
.printer-ready {
@apply bg-printer-ready/10 text-printer-ready ring-1 ring-printer-ready/30;
}
.printer-busy {
@apply bg-printer-busy/10 text-printer-busy ring-1 ring-printer-busy/30;
}
.printer-error {
@apply bg-printer-error/10 text-printer-error ring-1 ring-printer-error/30;
}
.printer-offline {
@apply bg-printer-offline/10 text-printer-offline ring-1 ring-printer-offline/30;
}
.printer-maintenance {
@apply bg-printer-maintenance/10 text-printer-maintenance ring-1 ring-printer-maintenance/30;
}
/* Job Status */
.job-status {
@apply inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium;
}
.job-queued {
@apply bg-job-queued/10 text-job-queued ring-1 ring-job-queued/30;
}
.job-printing {
@apply bg-job-printing/10 text-job-printing ring-1 ring-job-printing/30;
}
.job-completed {
@apply bg-job-completed/10 text-job-completed ring-1 ring-job-completed/30;
}
.job-failed {
@apply bg-job-failed/10 text-job-failed ring-1 ring-job-failed/30;
}
.job-cancelled {
@apply bg-job-cancelled/10 text-job-cancelled ring-1 ring-job-cancelled/30;
}
.job-paused {
@apply bg-job-paused/10 text-job-paused ring-1 ring-job-paused/30;
}
/* Buttons for light/dark mode */
.btn {
@apply px-4 py-2 rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 shadow-sm hover:shadow;
}
.btn-primary {
@apply btn bg-indigo-600 hover:bg-indigo-700 text-white focus:ring-indigo-500;
}
.btn-secondary {
@apply btn bg-slate-100 hover:bg-slate-200 text-slate-800 dark:bg-slate-700 dark:hover:bg-slate-600 dark:text-white focus:ring-slate-500;
}
.btn-danger {
@apply btn bg-red-600 hover:bg-red-700 text-white focus:ring-red-500;
}
.btn-success {
@apply btn bg-green-600 hover:bg-green-700 text-white focus:ring-green-500;
}
/* Light mode specific shadow enhancement */
.light-shadow {
@apply shadow-sm hover:shadow-md transition-shadow duration-300;
}
}

View File

@@ -0,0 +1,318 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom Styles für Light und Dark Mode */
@layer base {
:root {
/* Light Mode Farben */
--color-bg-primary: #ffffff;
--color-bg-secondary: #f8fafc;
--color-text-primary: #0f172a;
--color-text-secondary: #334155;
--color-text-muted: #64748b;
--color-border-primary: #e2e8f0;
--color-accent: #000000; /* Mercedes-Benz Schwarz statt Blau */
--color-accent-hover: #333333;
--color-accent-text: #ffffff;
--color-shadow: rgba(0, 0, 0, 0.1);
--card-radius: 1rem; /* Abgerundete Ecken für Karten */
}
.dark {
/* Dark Mode Farben - Dunkler gemacht */
--color-bg-primary: #0a0f1a; /* Dunkler als vorher */
--color-bg-secondary: #131c2e; /* Dunkler als vorher */
--color-text-primary: #f8fafc;
--color-text-secondary: #e2e8f0;
--color-text-muted: #94a3b8;
--color-border-primary: #1e293b; /* Angepasst */
--color-accent: #f8fafc; /* Weiß statt Indigo */
--color-accent-hover: #e2e8f0;
--color-accent-text: #0f172a;
--color-shadow: rgba(0, 0, 0, 0.5); /* Dunklerer Schatten */
--mb-black: #000000; /* Mercedes-Benz Schwarz */
}
body {
@apply bg-white dark:bg-[#050505] text-slate-900 dark:text-slate-200 transition-colors duration-300;
}
/* Navbar Styles - Glassmorphism ohne überlagerte Hintergründe */
nav {
@apply bg-white/70 dark:bg-black/70 backdrop-blur-lg border-b border-gray-200/80 dark:border-slate-700/30 shadow-md transition-all duration-300;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* Benutzer-Dropdown Styles */
#user-dropdown {
@apply absolute right-0 mt-2 w-64 bg-white/70 dark:bg-black/70 backdrop-blur-lg border border-gray-200/80 dark:border-slate-700/30 rounded-xl shadow-xl transition-all duration-200 z-50;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
animation: fadeIn 0.2s ease-out forwards;
}
}
/* Glassmorphism Flash Messages */
.flash-message {
@apply bg-white/70 dark:bg-black/70 backdrop-blur-md border border-gray-200 dark:border-slate-700/50 rounded-xl p-4 relative mb-4 shadow-md;
animation: slide-down 0.3s ease-out forwards;
transition: all 0.3s ease;
}
.flash-message.info {
@apply border-l-4 border-blue-500;
}
.flash-message.success {
@apply border-l-4 border-green-500;
}
.flash-message.warning {
@apply border-l-4 border-yellow-500;
}
.flash-message.error {
@apply border-l-4 border-red-500;
}
@keyframes slide-down {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Mercedes Background Pattern */
.mercedes-background::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
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.03' 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: 120px 120px;
pointer-events: none;
opacity: 0.03;
transition: opacity 0.3s ease;
}
.dark .mercedes-background::before {
opacity: 0.02; /* Leicht reduziert für dunkleren Hintergrund */
filter: invert(1);
}
/* Monochrome Button Styles */
@layer components {
/* Buttons im Light Mode Schwarz statt Blau */
.btn-primary {
@apply bg-black hover:bg-gray-800 dark:bg-white dark:hover:bg-gray-200 text-white dark:text-slate-900 px-4 py-2 rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 shadow-sm;
}
.btn-secondary {
@apply bg-white hover:bg-gray-100 dark:bg-slate-800 dark:hover:bg-slate-700 text-slate-900 dark:text-white border border-gray-300 dark:border-slate-700 px-4 py-2 rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-slate-500 focus:ring-offset-2 shadow-sm;
}
.btn-outline {
@apply border-2 border-black hover:bg-black dark:border-white dark:hover:bg-white text-black hover:text-white dark:text-white dark:hover:text-slate-900 px-4 py-2 rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}
/* Glassmorphism Card mit abgerundeten Ecken */
.glass-card {
@apply bg-white/80 dark:bg-black/80 backdrop-blur-md border border-gray-200 dark:border-slate-700/50 rounded-xl p-6 shadow-lg transition-all duration-300;
border-radius: var(--card-radius);
}
/* Dashboard Cards mit schwarzem Hintergrund */
.dashboard-card {
@apply bg-white/70 dark:bg-black/90 backdrop-blur-lg border border-gray-200/80 dark:border-slate-700/30 rounded-xl p-6 shadow-lg transition-all duration-300;
border-radius: var(--card-radius);
}
/* Navigation Styles */
.nav-link {
@apply flex items-center px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-slate-500 focus:ring-offset-2 text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700/50 hover:shadow-md;
}
.nav-link.active {
@apply text-slate-900 dark:text-white bg-slate-100 dark:bg-black shadow-sm;
}
/* Verbesserte Navbar Styles - Glassmorphism ohne überlagerte Hintergründe */
.navbar {
@apply sticky top-0 z-50 backdrop-blur-xl border-b border-gray-200/50 dark:border-slate-700/20 shadow-lg;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.dark .navbar {
background: rgba(0, 0, 0, 0.6); /* Transparenter für stärkeren Glaseffekt */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-brand {
@apply flex items-center space-x-2 transition-transform duration-300 hover:scale-105;
}
.navbar-menu {
@apply flex items-center justify-center space-x-1 md:space-x-3 lg:space-x-6 p-2 rounded-full;
background: transparent;
}
.navbar-button {
@apply p-2 rounded-full transition-colors duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2;
}
/* User Menu Styles */
.user-menu-button {
@apply flex items-center space-x-2 rounded-lg p-1 transition-all duration-300 hover:bg-gray-100/80 dark:hover:bg-slate-700/60 focus:outline-none focus:ring-2 focus:ring-slate-500 focus:ring-offset-2;
}
.user-avatar {
@apply w-10 h-10 bg-black dark:bg-white text-white dark:text-slate-900 rounded-full flex items-center justify-center font-bold text-sm shadow-md transition-all duration-300 hover:shadow-lg;
}
/* Avatar im Dropdown */
.avatar-large {
@apply w-14 h-14 bg-black dark:bg-white text-white dark:text-slate-900 rounded-full flex items-center justify-center font-bold text-lg shadow-md;
}
.user-dropdown-item {
@apply flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-gray-100/80 dark:hover:bg-slate-700/60 hover:text-slate-900 dark:hover:text-white transition-all duration-300 focus:outline-none focus:bg-gray-100/80 dark:focus:bg-slate-700/60;
}
.user-dropdown-separator {
@apply border-t border-gray-200/80 dark:border-slate-700/30 my-1;
}
.menu-item {
@apply flex items-center space-x-2 px-4 py-2.5 text-slate-700 dark:text-slate-300 rounded-full hover:bg-white/50 dark:hover:bg-slate-800/50 hover:text-slate-900 dark:hover:text-white transition-all duration-300 hover:shadow-md;
}
.menu-item.active {
@apply bg-white/60 dark:bg-black/60 text-slate-900 dark:text-white font-medium shadow-sm backdrop-blur-sm;
}
/* Dropdown Styles */
.user-dropdown {
@apply absolute right-0 mt-2 w-64 bg-white/90 dark:bg-black/90 backdrop-blur-xl border border-gray-200/80 dark:border-slate-700/30 rounded-xl shadow-xl z-50 overflow-hidden;
animation: fadeIn 0.2s ease-out forwards;
}
.dropdown-header {
@apply flex items-center p-4 border-b border-gray-200/80 dark:border-slate-700/30;
}
.dropdown-item {
@apply flex items-center gap-3 px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-gray-100/80 dark:hover:bg-slate-700/60 hover:text-slate-900 dark:hover:text-white transition-all duration-300;
}
.dropdown-divider {
@apply border-t border-gray-200/80 dark:border-slate-700/30;
}
/* Mercedes-Benz Logo Animation */
@keyframes mercedes-rotate {
0% { transform: rotate(0deg); }
25% { transform: rotate(90deg); }
50% { transform: rotate(180deg); }
75% { transform: rotate(270deg); }
100% { transform: rotate(360deg); }
}
.navbar-brand:hover svg {
animation: mercedes-rotate 5s infinite linear;
transform-origin: center;
}
}
/* Dark Mode Toggle - Schwarz statt Blau im Light Mode */
.dark-mode-toggle {
@apply p-3 rounded-full bg-black/90 hover:bg-gray-800/90 dark:bg-white/90 dark:hover:bg-gray-200/90 text-white dark:text-slate-900 transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-gray-500 shadow-md;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
min-width: 42px;
min-height: 42px;
display: flex;
align-items: center;
justify-content: center;
}
/* Animation für Dropdown */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.dropdown-animation {
animation: fadeIn 0.2s ease-out forwards;
}
/* Dashboard Stat Cards mit schwarzem Hintergrund im Dark Mode */
.mb-stat-card {
background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);
color: #0f172a;
position: relative;
overflow: hidden;
border: none;
border-radius: var(--card-radius);
}
.dark .mb-stat-card {
background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%); /* Noch dunkleres Schwarz */
color: var(--text-primary, #f8fafc);
}
/* Stats und Jobs Page Card Styles */
.stats-card, .job-card {
@apply bg-white/70 dark:bg-black/90 backdrop-blur-lg border border-gray-200/80 dark:border-slate-700/30 rounded-xl shadow-lg transition-all duration-300;
border-radius: var(--card-radius);
}
/* Footer Styling */
footer {
@apply bg-white/70 dark:bg-black/70 backdrop-blur-lg border-t border-gray-200/80 dark:border-slate-700/30 transition-all duration-300;
}
/* 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.03;
filter: invert(1);
}

File diff suppressed because one or more lines are too long