:root {
    --primary-color: #6aa84f;
    --secondary-color: #2196F3;
    --background-color: #f0f2f5;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
}

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

.title {
    color: var(--primary-color);
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
}

.greeting {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.today-date {
    text-align: center;
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.button {
    background-color: #808080;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.button.active {
    background-color: var(--primary-color);
    transform: scale(1.02);
}

.button:not(:disabled):hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.water-progress {
    width: 40px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 20px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    cursor: ns-resize;
}

.water-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--secondary-color);
    transition: height 0.1s;
    cursor: ns-resize;
}

.water-level-markers {
    position: absolute;
    right: -25px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.level-marker {
    line-height: 1;
}

.water-progress.dragging {
    background: #e3f2fd;
}

.water-progress.dragging .water-level {
    background: #1976d2;
}

.metric {
    text-align: center;
    font-size: 20px;
    margin: 10px 0;
}

.rewards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.reward {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.35;
    filter: grayscale(100%);
    transform: scale(0.95);
}

.reward.earned {
    background: #89e791;
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: continuous-glow 2s infinite;
}

.reward-emoji {
    font-size: 32px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.reward:not(.earned) .reward-emoji {
    opacity: 0.5;
}

.reward.earned .reward-emoji {
    animation: bounce 2s infinite;
}

.reward-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.reward-description {
    font-size: 0.9em;
    color: #666;
}

.reward:not(.earned) .reward-name,
.reward:not(.earned) .reward-description {
    color: #999;
}

.reward.just-earned {
    animation: intense-glow 1s infinite;
}

@keyframes continuous-glow {
    0% {
        box-shadow: 0 0 10px #4CAF50,
                    0 0 20px #4CAF50;
    }
    50% {
        box-shadow: 0 0 20px #4CAF50,
                    0 0 40px #4CAF50,
                    0 0 60px #4CAF50;
    }
    100% {
        box-shadow: 0 0 10px #4CAF50,
                    0 0 20px #4CAF50;
    }
}

@keyframes intense-glow {
    0% {
        box-shadow: 0 0 20px #ffd700,
                    0 0 40px #ffd700;
    }
    50% {
        box-shadow: 0 0 40px #ffd700,
                    0 0 60px #ffd700,
                    0 0 80px #ffd700,
                    0 0 100px #ffd700;
    }
    100% {
        box-shadow: 0 0 20px #ffd700,
                    0 0 40px #ffd700;
    }
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.1);
    }
}

.water-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.water-button {
    width: 60px;
    font-size: 24px;
    padding: 5px;
}

.history-charts {
    margin-top: 20px;
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 300px;
    position: relative;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.chart-control-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chart-control-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Add tooltip for zoom instructions */
.chart-container::before {
    content: "Tip: Use mouse wheel to zoom, Ctrl+drag to pan";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    color: #666;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
} 