* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    color: white;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-text {
    flex: 1;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.runner-icon {
    display: inline-block;
    transform: scaleX(-1);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.header-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.date-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.date-box {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.date-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.date-box-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-box-content {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-box-content input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.date-box-content input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.date-box-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3498db;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.progress-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.progress-section h2 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
}

.progress-info {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-card h2 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.progress-river {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.river-track {
    display: flex;
    gap: 4px;
    height: 60px;
    align-items: stretch;
}

.river-segment {
    flex: 1;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #e8e8e8;
}

.river-segment.completed {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.river-segment.current {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
    }
}

.river-segment-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    z-index: 2;
}

.river-segment.completed .river-segment-label,
.river-segment.current .river-segment-label {
    opacity: 1;
}

.river-segment:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.river-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    margin-top: -5px;
}

.river-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.river-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.river-stat {
    text-align: center;
}

.river-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.river-stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

.journey-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.journey-milestone {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.milestone-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    border: 4px solid #e0e0e0;
    background: white;
    color: #999;
    transition: all 0.3s ease;
}

.journey-milestone.completed .milestone-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.journey-milestone.current .milestone-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #f39c12;
    color: #333;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.milestone-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.milestone-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.milestone-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.milestone-label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.milestone-sublabel {
    color: #666;
    font-size: 0.85rem;
}

.projection-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.projection-section h2 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.projection-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projection-item.completed {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.projection-item.current {
    background: #ffffff;
    border: 3px solid #3498db;
    position: relative;
    overflow: hidden;
}

.projection-item.current .liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: height 0.5s ease;
    z-index: 0;
    overflow: visible;
}

.projection-item.current .liquid::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: rgba(52, 152, 219, 0.6);
    border-radius: 0;
    animation: wave 3s ease-in-out infinite;
    filter: blur(1px);
}

.projection-item.current .liquid::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: rgba(52, 152, 219, 0.6);
    border-radius: 0;
    animation: wave 4s ease-in-out infinite reverse;
    filter: blur(1px);
    mix-blend-mode: normal;
}

.projection-item.current:hover .liquid::before {
    animation: wave 1.5s ease-in-out infinite;
}

.projection-item.current:hover .liquid::after {
    animation: wave 2s ease-in-out infinite reverse;
}

@keyframes wave {
    0%, 100% {
        clip-path: polygon(
            0% 0%,
            5% 8%,
            10% 15%,
            15% 20%,
            20% 18%,
            25% 12%,
            30% 5%,
            35% 2%,
            40% 4%,
            45% 10%,
            50% 18%,
            55% 22%,
            60% 20%,
            65% 12%,
            70% 6%,
            75% 3%,
            80% 5%,
            85% 12%,
            90% 18%,
            95% 20%,
            100% 15%,
            100% 100%,
            0% 100%
        );
    }
    50% {
        clip-path: polygon(
            0% 18%,
            5% 22%,
            10% 20%,
            15% 12%,
            20% 6%,
            25% 3%,
            30% 5%,
            35% 12%,
            40% 18%,
            45% 22%,
            50% 20%,
            55% 12%,
            60% 5%,
            65% 2%,
            70% 4%,
            75% 10%,
            80% 18%,
            85% 22%,
            90% 18%,
            95% 10%,
            100% 5%,
            100% 100%,
            0% 100%
        );
    }
}

.projection-item:hover {
    transform: scale(1.05);
}

.projection-distance {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.projection-runs {
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.summary-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.summary-section h2 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 600;
}

.summary-stats {
    display: grid;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 1.1rem;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: bold;
    color: #3498db;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-text {
        text-align: center;
        width: 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    .header-controls {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .date-section-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}
