body {
    font-family: 'Nunito', sans-serif;
}

.font-geist-mono {
    font-family: monospace;
}

/* Habit Cards */
.habit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    width: 120px;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.habit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

/* Habit Buttons */
.habit-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.habit-btn:hover {
    transform: scale(1.05);
}

.habit-btn:active {
    transform: scale(0.95);
}

/* Tree Animation */
.tree-container {
    overflow: hidden;
}

@keyframes grow-tree {
    0% {
        transform: scale(0.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tree-svg {
    animation: grow-tree 3s ease-out forwards;
}

/* Snowball Animation Styles */
.snowball-animation-container {
    position: relative;
    height: 200px;
    background: linear-gradient(to bottom, #e0f2fe 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
}

.snowball-hill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, #dbeafe 0%, #eff6ff 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.snowball {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    bottom: 60px;
    left: 10%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform-origin: center bottom;
    z-index: 10;
}

.snowball-markers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 5;
}

.marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 5px;
}

.marker-circle {
    width: 30px;
    height: 30px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.marker p {
    color: #1e40af;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Growth Chart Styles */
.growth-chart {
    height: 300px;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chart-bars {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-bar {
    width: 30px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #1e40af;
    font-weight: bold;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
}

.chart-labels div {
    font-size: 0.8rem;
    color: #374151;
    text-align: center;
}

/* Stack Animation Styles */
.stack-animation-container {
    position: relative;
    height: 300px;
    background-color: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}

.stack-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80%;
    position: relative;
}

.stacks-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    align-items: flex-end;
}

.stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 40px;
}

.stack-item {
    width: 40px;
    height: 20px;
    margin-bottom: 2px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.stack-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stack-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #d1d5db;
    border-radius: 4px;
}

.stack-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.stack-day {
    font-size: 0.8rem;
    color: #374151;
    text-align: center;
}

/* Rocket Animation */
.rocket-container {
    height: 200px;
    overflow: hidden;
}

@keyframes launch-rocket {
    0% {
        transform: translateY(150px) scale(0.5);
    }
    100% {
        transform: translateY(-50px) scale(1);
    }
}

.rocket-svg {
    transform: translateY(150px) scale(0.5);
}

.rocket-svg.animate {
    animation: launch-rocket 2s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .habit-card {
        width: 100px;
    }
    
    .snowball-animation-container {
        height: 150px;
    }
    
    .marker-circle {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .marker p {
        font-size: 0.7rem;
    }
    
    .chart-bar {
        width: 20px;
    }
}
