Files
TimeTrack/static/css/splash.css
Jens Luedicke 80edb1be55 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>
2025-07-15 20:41:11 +02:00

922 lines
18 KiB
CSS

/* Splash Page Styles */
/* Reset for splash page */
.splash-container {
margin: 0;
padding: 0;
font-family: inherit;
width: 100%;
}
/* Override main-content restrictions for splash page */
body:not(.has-user) .main-content {
max-width: none !important;
padding: 0 !important;
margin: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
width: 100% !important;
}
/* Ensure splash container takes full width */
body:not(.has-user) {
overflow-x: hidden;
}
/* Remove any container restrictions on sections */
.splash-container section {
width: 100%;
max-width: none;
}
/* Hero Section */
.splash-hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 6rem 2rem;
text-align: center;
position: relative;
overflow: hidden;
min-height: 600px;
display: flex;
align-items: center;
justify-content: center;
}
/* Add geometric pattern overlay */
.splash-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
radial-gradient(circle at 40% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
pointer-events: none;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
z-index: 2;
position: relative;
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
letter-spacing: -1px;
animation: fadeInUp 1s ease-out;
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 2.5rem;
opacity: 0.9;
animation: fadeInUp 1s ease-out 0.2s both;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
animation: fadeInUp 1s ease-out 0.4s both;
}
.btn-primary, .btn-secondary {
padding: 1rem 2.5rem;
font-size: 1.1rem;
border-radius: 50px;
text-decoration: none;
transition: all 0.3s ease;
font-weight: 500;
display: inline-block;
font-family: inherit;
}
.btn-primary {
background: #667eea;
color: white;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
position: relative;
overflow: hidden;
}
.btn-primary::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn-primary:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.btn-primary:hover::before {
width: 300px;
height: 300px;
}
.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background: white;
color: #667eea;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
/* Floating Clock Animation */
.hero-visual {
position: absolute;
right: 10%;
top: 50%;
transform: translateY(-50%);
opacity: 0.1;
}
.floating-clock {
width: 300px;
height: 300px;
animation: float 6s ease-in-out infinite;
}
.clock-face {
width: 100%;
height: 100%;
border: 8px solid white;
border-radius: 50%;
position: relative;
}
.hour-hand, .minute-hand, .second-hand {
position: absolute;
background: white;
transform-origin: bottom center;
bottom: 50%;
left: 50%;
}
.hour-hand {
width: 6px;
height: 80px;
margin-left: -3px;
animation: rotate 43200s linear infinite;
}
.minute-hand {
width: 4px;
height: 100px;
margin-left: -2px;
animation: rotate 3600s linear infinite;
}
.second-hand {
width: 2px;
height: 110px;
margin-left: -1px;
background: #764ba2;
animation: rotate 60s linear infinite;
}
/* Features Grid */
.features-grid {
padding: 5rem 2rem;
background: #f8f9fa;
width: 100%;
margin: 0;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #1f2937;
font-weight: 600;
position: relative;
padding-bottom: 1rem;
}
.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 2px;
}
.feature-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
padding: 0 2rem;
box-sizing: border-box;
}
.feature-card {
background: white;
padding: 2.5rem;
border-radius: 12px;
text-align: center;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
transition: all 0.3s ease;
border: 1px solid #e5e7eb;
}
.feature-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
border: 1px solid rgba(102, 126, 234, 0.2);
background: linear-gradient(white, white) padding-box,
linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #1f2937;
}
.feature-card p {
color: #6b7280;
line-height: 1.6;
}
/* Statistics Section */
.statistics {
background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
padding: 5rem 2rem;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
gap: 2rem;
position: relative;
width: 100%;
margin: 0;
}
/* Add subtle overlay for better text contrast */
.statistics::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
pointer-events: none;
}
.statistics .section-title {
color: white;
width: 100%;
text-align: center;
margin-bottom: 3rem;
position: relative;
z-index: 1;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.stat-item {
text-align: center;
color: white;
position: relative;
z-index: 1;
}
.stat-number {
font-size: 3rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.stat-label {
font-size: 1.1rem;
color: rgba(255, 255, 255, 1);
font-weight: 500;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* Testimonials */
.testimonials {
padding: 5rem 2rem;
background: #f9fafb;
width: 100%;
margin: 0;
}
.testimonial-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.testimonial-card {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
padding: 2rem;
border-radius: 12px;
text-align: center;
border: 1px solid rgba(102, 126, 234, 0.1);
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
transition: all 0.3s ease;
}
.testimonial-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
border-color: rgba(102, 126, 234, 0.2);
}
.stars {
font-size: 1.2rem;
margin-bottom: 1rem;
}
.testimonial-card p {
font-size: 1.1rem;
line-height: 1.6;
color: #4b5563;
margin-bottom: 1.5rem;
font-style: italic;
}
.testimonial-author {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.testimonial-author strong {
color: #1f2937;
}
.testimonial-author span {
color: #6b7280;
font-size: 0.9rem;
}
/* Pricing Section */
.pricing {
padding: 5rem 2rem;
background: #f3f4f6;
width: 100%;
margin: 0;
}
.pricing-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
}
.pricing-card {
background: white;
padding: 2.5rem;
border-radius: 12px;
text-align: center;
position: relative;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
transition: all 0.3s ease;
border: 2px solid transparent;
}
.pricing-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}
.pricing-card.featured {
transform: scale(1.05);
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
border: 2px solid;
border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
background: linear-gradient(white, white) padding-box,
linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}
.badge {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
background: #667eea;
color: white;
padding: 0.5rem 1.5rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
}
.pricing-card h3 {
font-size: 1.8rem;
margin-bottom: 1rem;
color: #1f2937;
}
.price {
font-size: 3rem;
font-weight: 700;
color: #667eea;
margin-bottom: 2rem;
}
.price span {
font-size: 1rem;
font-weight: 400;
color: #6b7280;
}
.pricing-features {
list-style: none;
padding: 0;
margin: 0 0 2rem 0;
}
.pricing-features li {
padding: 0.75rem 0;
color: #4b5563;
border-bottom: 1px solid #e5e7eb;
}
.pricing-features li:last-child {
border-bottom: none;
}
.btn-pricing {
display: inline-block;
padding: 1rem 2rem;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 6px;
transition: all 0.3s ease;
font-weight: 500;
font-family: inherit;
}
.btn-pricing:hover {
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.pricing-card.featured .btn-pricing {
background: #764ba2;
}
.pricing-card.featured .btn-pricing:hover {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
/* Final CTA */
.final-cta {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 5rem 2rem;
text-align: center;
width: 100%;
margin: 0;
}
.final-cta h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.final-cta p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.btn-primary.large {
font-size: 1.2rem;
padding: 1.25rem 3rem;
}
/* Sliding Features Banner */
.features-banner {
background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
padding: 1.5rem 0;
overflow: hidden;
position: relative;
white-space: nowrap;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 -2px 10px rgba(0, 0, 0, 0.1);
margin: 3rem 0;
}
.features-banner.reverse {
background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}
.features-slider {
width: 100%;
overflow: hidden;
}
.features-track {
display: flex;
animation: slide 40s linear infinite;
}
.features-banner.reverse .features-track {
animation: slideReverse 45s linear infinite;
}
.feature-item {
display: inline-flex;
align-items: center;
gap: 0.75rem;
padding: 0 3rem;
color: white;
font-size: 1rem;
font-weight: 500;
white-space: nowrap;
flex-shrink: 0;
}
.feature-item i {
font-size: 1.25rem;
color: #a78bfa;
text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
transition: all 0.3s ease;
}
.feature-item:hover i {
color: #c4b5fd;
text-shadow: 0 0 15px rgba(196, 181, 253, 0.7);
transform: scale(1.1);
}
.feature-item span {
opacity: 0.9;
}
@keyframes slide {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
@keyframes slideReverse {
0% {
transform: translateX(-50%);
}
100% {
transform: translateX(0);
}
}
/* Pause on hover */
.features-banner:hover .features-track {
animation-play-state: paused;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.feature-item {
padding: 0 2rem;
font-size: 0.9rem;
}
.feature-item i {
font-size: 1.1rem;
}
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Add gradient animation */
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.splash-hero {
background-size: 200% 200%;
animation: gradientShift 15s ease infinite;
}
.statistics {
background-size: 200% 200%;
animation: gradientShift 20s ease infinite;
}
.final-cta {
background-size: 200% 200%;
animation: gradientShift 18s ease infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(-50%) translateX(0);
}
50% {
transform: translateY(-50%) translateX(20px);
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.cta-buttons {
flex-direction: column;
align-items: center;
}
.btn-primary, .btn-secondary {
width: 200px;
}
.hero-visual {
display: none;
}
.section-title {
font-size: 2rem;
}
.stat-number {
font-size: 2.5rem;
}
.pricing-card.featured {
transform: none;
}
}
/* Ripple Effect */
.btn-primary, .btn-secondary, .btn-pricing {
position: relative;
overflow: hidden;
}
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: scale(0);
animation: ripple-animation 0.6s ease-out;
}
@keyframes ripple-animation {
to {
transform: scale(4);
opacity: 0;
}
}
/* Dark Mode Styles for Splash Page */
[data-theme="dark"] body:not(.has-user) {
background-color: var(--bg-primary);
}
[data-theme="dark"] .splash-hero {
background: linear-gradient(135deg, #4a5dab 0%, #6341a1 100%);
}
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
color: white;
}
[data-theme="dark"] .btn-secondary {
border-color: rgba(255, 255, 255, 0.8);
color: white;
}
[data-theme="dark"] .btn-secondary:hover {
background: rgba(255, 255, 255, 0.9);
color: #4a5dab;
border-color: white;
}
[data-theme="dark"] .features-grid {
background: var(--bg-secondary);
}
[data-theme="dark"] .section-title {
color: var(--text-primary);
}
[data-theme="dark"] .section-title::after {
background: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%);
}
[data-theme="dark"] .feature-card {
background: var(--bg-card);
border-color: var(--border-primary);
color: var(--text-primary);
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .feature-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(122, 141, 245, 0.3);
border-color: var(--primary-color);
}
[data-theme="dark"] .feature-card h3 {
color: var(--text-primary);
}
[data-theme="dark"] .feature-card p {
color: var(--text-secondary);
}
[data-theme="dark"] .feature-icon {
background: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
[data-theme="dark"] .statistics {
background: linear-gradient(135deg, #2a3142 0%, #3a3e4a 100%);
}
[data-theme="dark"] .stat-item {
color: white;
}
[data-theme="dark"] .stat-number {
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .stat-label {
color: rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .testimonials {
background: var(--bg-primary);
}
[data-theme="dark"] .testimonial-card {
background: var(--bg-card);
border-color: var(--border-primary);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .testimonial-card:hover {
box-shadow: 0 12px 40px rgba(122, 141, 245, 0.25);
border-color: var(--primary-color);
}
[data-theme="dark"] .testimonial-card p {
color: var(--text-secondary);
}
[data-theme="dark"] .testimonial-author strong {
color: var(--text-primary);
}
[data-theme="dark"] .testimonial-author span {
color: var(--text-tertiary);
}
[data-theme="dark"] .pricing {
background: var(--bg-secondary);
}
[data-theme="dark"] .pricing-card {
background: var(--bg-card);
border-color: var(--border-primary);
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .pricing-card:hover {
box-shadow: 0 15px 40px rgba(122, 141, 245, 0.25);
}
[data-theme="dark"] .pricing-card.featured {
box-shadow: 0 10px 40px rgba(0,0,0,0.4);
border-image: linear-gradient(135deg, #7a8df5 0%, #8b5bc9 100%) 1;
}
[data-theme="dark"] .pricing-card h3 {
color: var(--text-primary);
}
[data-theme="dark"] .price {
color: var(--primary-color);
}
[data-theme="dark"] .price span {
color: var(--text-secondary);
}
[data-theme="dark"] .pricing-features li {
color: var(--text-secondary);
border-color: var(--border-secondary);
}
[data-theme="dark"] .final-cta {
background: linear-gradient(135deg, #4a5dab 0%, #6341a1 100%);
}
[data-theme="dark"] .features-banner {
background: linear-gradient(135deg, #1a1d26 0%, #2a2d36 100%);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 -2px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .features-banner.reverse {
background: linear-gradient(135deg, #2a2d36 0%, #3a3d46 100%);
}
[data-theme="dark"] .feature-item {
color: var(--text-primary);
}
[data-theme="dark"] .feature-item i {
color: #9ca3ff;
text-shadow: 0 0 10px rgba(156, 163, 255, 0.5);
}
[data-theme="dark"] .feature-item:hover i {
color: #b8beff;
text-shadow: 0 0 15px rgba(184, 190, 255, 0.7);
}
[data-theme="dark"] .feature-item span {
opacity: 0.9;
}