/* 📊 PROGRESS TIMELINE STYLES */

.timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-modal {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 25px;
    width: 95vw;  /* Increased from 90vw */
    max-width: 1600px;  /* Increased from 1400px */
    height: 92vh;  /* Increased from 85vh */
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(102, 126, 234, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Timeline Header */
.timeline-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 25px;  /* Further reduced */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 60px;  /* Much more compact */
}

.timeline-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.timeline-title-section {
    display: flex;
    align-items: center;
    gap: 20px;  /* Reduced from 30px */
}

.timeline-title-section h2 {
    margin: 0;
    color: white;
    font-size: 20px;  /* Further reduced */
    font-weight: 600;  /* Slightly less bold */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.timeline-stats {
    display: flex;
    gap: 12px;  /* Reduced from 15px */
}

.stat-item {
    display: flex;
    align-items: center;  /* Changed from baseline */
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;  /* Reduced padding */
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 16px;  /* Further reduced */
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 11px;  /* Reduced from 13px */
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;  /* Make it more compact looking */
    letter-spacing: 0.5px;
}

/* Timeline Controls */
.timeline-controls {
    display: flex;
    align-items: center;
    gap: 10px;  /* Reduced from 15px */
    position: relative;
    z-index: 5;
}

.date-filter {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10005;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    gap: 20px;
    min-width: 320px;
}

.date-filter.active {
    display: flex;
}

.date-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10004;
}

.date-filter-overlay.active {
    display: block;
}

.date-filter-header {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.filter-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 10px;  /* Reduced padding */
    border-radius: 10px;
    font-size: 13px;  /* Smaller font */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-input:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.date-filter span {
    color: white;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;  /* Reduced padding */
    border-radius: 6px;
    font-size: 14px;  /* Reduced from 16px */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 28px;  /* Reduced from 32px */
    text-align: center;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px) scale(1.03);  /* Less dramatic hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close-timeline-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;  /* Reduced from 36px */
    height: 30px;  /* Reduced from 36px */
    border-radius: 50%;
    font-size: 16px;  /* Reduced from 18px */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    margin-left: 8px;
}

.close-timeline-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: rotate(90deg);
}

/* View Toggles */
.timeline-view-toggles {
    background: rgba(42, 42, 62, 0.8);
    padding: 8px 20px;  /* Further reduced */
    display: flex;
    gap: 10px;  /* Further reduced */
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 2;
    align-items: center;
}

.view-toggle {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a0b0ff;
    padding: 6px 12px;  /* Reduced padding */
    border-radius: 8px;
    font-size: 12px;  /* Smaller font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.view-toggle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Timeline Container */
.timeline-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;  /* Further reduced for maximum content space */
    background: linear-gradient(180deg, rgba(30, 30, 46, 0.5) 0%, rgba(42, 42, 62, 0.5) 100%);
}

.timeline-content {
    max-width: 1200px;  /* Increased from 1000px for better use of space */
    margin: 0 auto;
}

/* Timeline Track */
.timeline-track {
    position: relative;
    padding-left: 120px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 25%,
        #667eea 50%,
        #764ba2 75%,
        #667eea 100%
    );
    background-size: 100% 400px;
    animation: timelineFlow 10s linear infinite;
}

@keyframes timelineFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 400px; }
}

/* Timeline Sections */
.timeline-section {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-section.animate-in {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Bubble */
.timeline-date {
    position: absolute;
    left: -50px;  /* Moved closer */
    top: 0;
    width: 100px;  /* Reduced from 120px */
    text-align: center;
}

.date-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;  /* Reduced from 15px */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    transition: all 0.3s ease;
}

.date-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.date-bubble.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

.date-day {
    font-size: 22px;  /* Reduced from 28px */
    font-weight: 600;
}

.date-month {
    font-size: 12px;  /* Reduced from 14px */
    font-weight: 500;
    opacity: 0.9;
}

.today-label {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Event Cards */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    padding: 20px 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.event-card:hover::before {
    transform: translateX(100%);
}

.event-icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.event-content {
    flex: 1;
    color: white;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-time {
    font-size: 14px;
    opacity: 0.8;
}

.event-details {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: inline-block;
}

.event-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.event-card:hover .event-glow {
    opacity: 1;
}

/* Heatmap View */
.heatmap-container {
    padding: 30px;
    text-align: center;
}

.heatmap-container h3 {
    color: #a0b0ff;
    font-size: 24px;
    margin-bottom: 30px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    color: #a0b0ff;
    font-size: 14px;
}

.legend-blocks {
    display: flex;
    gap: 4px;
}

.heatmap-grid {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-direction: row-reverse;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-block {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.heatmap-block[data-level="0"] {
    background: rgba(102, 126, 234, 0.1);
}

.heatmap-block[data-level="1"] {
    background: rgba(102, 126, 234, 0.3);
}

.heatmap-block[data-level="2"] {
    background: rgba(102, 126, 234, 0.5);
}

.heatmap-block[data-level="3"] {
    background: rgba(102, 126, 234, 0.7);
}

.heatmap-block[data-level="4"] {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.heatmap-block:hover {
    transform: scale(1.5);
    border-color: white;
    z-index: 10;
}

/* Scrollbar Styling */
.timeline-container::-webkit-scrollbar {
    width: 10px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c94ff 0%, #8a61b8 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-modal {
        width: 95vw;
        height: 90vh;
        border-radius: 20px;
    }
    
    .timeline-header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .timeline-controls {
        align-items: stretch;
        width: 100%;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .timeline-track {
        padding-left: 80px;
    }
    
    .timeline-track::before {
        left: 30px;
    }
    
    .timeline-date {
        left: -30px;
        width: 60px;
    }
    
    .date-bubble {
        padding: 10px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .event-card {
        padding: 15px;
    }
}

/* === CALENDAR VIEW STYLES === */
.calendar-view {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;  /* Reduced from 20px */
    padding: 10px 15px;  /* Reduced vertical padding */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;  /* Smaller font */
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 10px;  /* Reduced padding */
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;  /* Reduced from 18px */
    transition: background 0.3s;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    background: white;
    border-radius: 10px;
    padding: 15px;  /* Reduced from 20px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #666;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    background: white;
    transition: all 0.3s;
}

.calendar-day.empty {
    background: #f5f5f5;
}

.calendar-day.has-events {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.calendar-day.has-events:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.day-number {
    font-weight: bold;
    color: #333;
}

.day-indicators {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: flex;
    gap: 2px;
}

.indicator {
    font-size: 10px;
}

.indicator.completed { color: #4CAF50; }
.indicator.achievement { color: #FFC107; }
.indicator.study { color: #2196F3; }

.event-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.calendar-legend {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.completed { background: #4CAF50; }
.legend-dot.achievement { background: #FFC107; }
.legend-dot.study { background: #2196F3; }

.calendar-details {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-details.hidden {
    display: none;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 5px 0;
    border-left: 3px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 5px;
}

.detail-icon {
    font-size: 20px;
}

.detail-text {
    flex: 1;
}

.detail-time {
    color: #999;
    font-size: 12px;
}

/* === CHART VIEW STYLES === */
.chart-view {
    padding: 20px;
}

.chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;  /* Reduced from 20px */
    background: #f5f5f5;
    padding: 4px;  /* Reduced from 5px */
    border-radius: 8px;
}

.chart-tab {
    flex: 1;
    padding: 8px 10px;  /* Reduced from 10px */
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 12px;  /* Smaller font */
}

.chart-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chart-content {
    background: white;
    padding: 20px;  /* Reduced from 30px */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 280px;  /* Slightly reduced */
}

.progress-chart h3,
.activity-chart h3,
.achievements-chart h3,
.study-chart h3 {
    margin-bottom: 15px;  /* Reduced from 20px */
    color: #333;
    font-size: 18px;  /* Slightly smaller */
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 10px;
    padding: 20px 0;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.chart-bar:hover {
    filter: brightness(1.1);
}

.bar-value {
    position: absolute;
    top: -20px;
    color: #666;
    font-weight: bold;
}

.bar-label {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.chart-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.summary-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.summary-value {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Activity Trend Chart */
.trend-line {
    display: flex;
    align-items: flex-end;
    height: 150px;
    gap: 2px;
    padding: 20px 0;
}

.trend-point {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    min-height: 2px;
    transition: all 0.3s;
}

.trend-point:hover {
    filter: brightness(1.2);
}

.trend-labels {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* Achievement Ring Chart */
.achievement-ring {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    position: relative;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.big-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.small-text {
    color: #999;
    font-size: 14px;
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 5px;
}

/* Study Analytics */
.study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.hourly-distribution h4 {
    margin-bottom: 15px;
    color: #666;
}

.hour-bars {
    display: flex;
    align-items: flex-end;
    height: 100px;
    gap: 1px;
}

.hour-bar {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hour-bar:hover {
    opacity: 1;
}

/* Dark mode adjustments */
body.dark-mode .calendar-grid,
body.dark-mode .calendar-details,
body.dark-mode .chart-content {
    background: #2a2a3e;
}

body.dark-mode .calendar-day {
    background: #3a3a4e;
    border-color: #4a4a5e;
}

body.dark-mode .calendar-day.has-events {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

body.dark-mode .day-number,
body.dark-mode .chart-content h3 {
    color: #e0e0e0;
}

body.dark-mode .bar-value,
body.dark-mode .bar-label,
body.dark-mode .stat-label {
    color: #999;
}

body.dark-mode .summary-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}