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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

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

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.habit-setup h2, .habit-tracker h2 {
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
}

#habitInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

#habitInput:focus {
    outline: none;
    border-color: #667eea;
}

#setHabitBtn, #logProgressBtn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#setHabitBtn:hover, #logProgressBtn:hover:not(:disabled) {
    transform: translateY(-2px);
}

#logProgressBtn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.current-habit {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.streak-info {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    color: #4a5568;
}

.daily-checkin {
    margin-bottom: 2rem;
}

.daily-checkin h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mood-btn {
    font-size: 2rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-btn:hover {
    transform: scale(1.2);
}

.mood-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.garden-view {
    margin-bottom: 2rem;
}

.garden-view h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
}

.heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    max-width: 350px;
    margin: 0 auto;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.day-cell.completed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.day-cell.today {
    border: 2px solid #667eea;
}

.motivation-box {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0 10px 10px 0;
}

#motivationMessage {
    color: #2d3748;
    font-weight: 500;
    text-align: center;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#shareBtn, #resetBtn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#shareBtn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

#resetBtn {
    background: #e2e8f0;
    color: #4a5568;
}

#shareBtn:hover, #resetBtn:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .streak-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
}