Add comprehensive dark mode support with UI consistency fixes

This commit introduces a complete dark mode implementation across the entire application,
along with various UI consistency improvements and mobile responsiveness fixes.

Dark Mode Implementation:
- Added new dark-mode.css with comprehensive CSS variable system
- Implemented theme switcher with localStorage persistence
- Created dark mode color palette optimized for readability
- Added smooth transitions between light and dark themes

Component-Specific Dark Mode Styling:
- Headers: Added glowing gradient effects with animations (pulse, shimmer)
- Tables: Unified table styling across all views with proper dark mode support
- Forms: Updated all form controls, inputs, and buttons for dark mode
- Cards: Fixed white backgrounds in project cards, stat cards, and activity items
- Navigation: Enhanced sidebar and mobile navigation dark mode styling
- Modals: Added dark mode support for all modal dialogs including task modal
- Charts: Updated chart colors for dark mode visibility

UI Consistency Improvements:
- Standardized container padding (1rem) across all pages
- Unified page widths (regular: 1400px, admin: 1600px)
- Fixed mobile bottom navigation to only show on devices ≤768px
- Resolved page header positioning inconsistencies
- Improved text contrast ratios for better accessibility

Table Consolidation:
- Created tables-consolidated.css for unified table styling
- Removed duplicate table styles across components
- Standardized table headers, borders, and hover states
- Added responsive table behavior for mobile devices

Mobile Improvements:
- Fixed splash screen viewport coverage
- Enhanced mobile menu accessibility
- Improved touch targets for mobile interactions
- Added proper mobile-specific dark mode adjustments

Technical Details:
- CSS variables for easy theme customization
- Proper specificity management with [data-theme="dark"] selectors
- Performance optimized with minimal repaints
- Browser compatibility for modern browsers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-14 19:54:10 +02:00
parent 4264357d04
commit 80edb1be55
15 changed files with 4709 additions and 121 deletions

View File

@@ -1,125 +1,122 @@
/* Mobile Bottom Navigation Bar */
/* Bottom Navigation Container */
.mobile-bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
border-top: 1px solid var(--border-color, #e0e0e0);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
display: flex;
justify-content: space-around;
align-items: center;
padding: 8px 0;
padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
display: none; /* Hidden by default */
}
/* Only show on mobile devices */
@media (max-width: 768px) {
/* Bottom Navigation Container */
.mobile-bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
border-top: 1px solid var(--border-color, #e0e0e0);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
display: flex;
justify-content: space-around;
align-items: center;
padding: 8px 0;
padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}
/* Hide on desktop */
@media (min-width: 769px) {
.mobile-bottom-nav {
display: none;
}
}
/* Navigation Items */
.bottom-nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 4px;
text-decoration: none;
color: var(--text-secondary, #666);
transition: all 0.2s ease;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
position: relative;
}
/* Icon styling */
.bottom-nav-item i {
font-size: 24px;
margin-bottom: 2px;
transition: transform 0.2s ease;
}
/* Label styling */
.bottom-nav-item span {
font-size: 11px;
font-weight: 500;
}
/* Active state */
.bottom-nav-item.active {
color: var(--primary-color, #667eea);
}
.bottom-nav-item.active i {
transform: scale(1.1);
}
/* Touch feedback */
.bottom-nav-item:active {
opacity: 0.7;
transform: scale(0.95);
}
/* Center FAB-style time tracking button */
.bottom-nav-item.nav-fab {
position: relative;
top: -10px;
}
.bottom-nav-item.nav-fab .fab-button {
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
margin-bottom: 4px;
}
.bottom-nav-item.nav-fab .fab-button i {
color: white;
font-size: 28px;
margin: 0;
}
.bottom-nav-item.nav-fab span {
position: absolute;
bottom: -4px;
white-space: nowrap;
}
/* Notification badge */
.nav-badge {
position: absolute;
top: 4px;
right: calc(50% - 16px);
background: #ff3b30;
color: white;
font-size: 10px;
font-weight: bold;
padding: 2px 4px;
border-radius: 10px;
min-width: 16px;
text-align: center;
}
/* Adjust main content to avoid overlap */
.has-bottom-nav .content {
padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)) !important;
}
/* Keep sidebar for hamburger menu functionality */
/* Removed the rule that was hiding sidebar */
}
/* Navigation Items */
.bottom-nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 4px;
text-decoration: none;
color: var(--text-secondary, #666);
transition: all 0.2s ease;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
position: relative;
}
/* Icon styling */
.bottom-nav-item i {
font-size: 24px;
margin-bottom: 2px;
transition: transform 0.2s ease;
}
/* Label styling */
.bottom-nav-item span {
font-size: 11px;
font-weight: 500;
}
/* Active state */
.bottom-nav-item.active {
color: var(--primary-color, #667eea);
}
.bottom-nav-item.active i {
transform: scale(1.1);
}
/* Touch feedback */
.bottom-nav-item:active {
opacity: 0.7;
transform: scale(0.95);
}
/* Center FAB-style time tracking button */
.bottom-nav-item.nav-fab {
position: relative;
top: -10px;
}
.bottom-nav-item.nav-fab .fab-button {
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
margin-bottom: 4px;
}
.bottom-nav-item.nav-fab .fab-button i {
color: white;
font-size: 28px;
margin: 0;
}
.bottom-nav-item.nav-fab span {
position: absolute;
bottom: -4px;
white-space: nowrap;
}
/* Notification badge */
.nav-badge {
position: absolute;
top: 4px;
right: calc(50% - 16px);
background: #ff3b30;
color: white;
font-size: 10px;
font-weight: bold;
padding: 2px 4px;
border-radius: 10px;
min-width: 16px;
text-align: center;
}