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


body {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
    background: #fff4e6;
    background-image:
    repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255,200,150,0.1) 35px, rgba(255,200,150,0.1) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255,200,150,0.1) 35px, rgba(255,200,150,0.1) 40px);
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px 30px;
    border: 4px solid #ffb6b9;
    box-shadow: 8px 8px 0 rgba(255,182,185,0.3);
    position: relative;
}

.container::before {
    content: '✿';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 2rem;
    color: #ffb6b9;
}

.container::after {
    content: '✿';
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 2rem;
    color: #ffb6b9;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b9d;
    text-shadow: 2px 2px 0 #ffd435;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.controls button {
    background: #ffb6b9;
    color: white;
    border: 3px solid #ff6b9d;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 3px 3px 0 rgba(255,107,157,0.3);
    transition: all 0.2s;
}

.controls button:hover {
    background: #ff6b9d;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(255,107,157,0.3);

}

.controls button:active {
    transform: translate(0,0);
    box-shadow: 2px 2px 0 rgba(255,107,157,0.3);
}

#current-month {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b9d;
    text-transform: lowercase;
}

.legend {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.mood-option {
    padding: 12px 18px;
    cursor: pointer;
    border: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.mood-option:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.mood-option.selected {
    border-color: #ff6b9d;
    transform: scale(1.05);
}

.mood-option[data-mood="5"] {background: #a8e6cf; color: #2d6a4f; }
.mood-option[data-mood="4"] {background: #dcedc1; color: #52796f; }
.mood-option[data-mood="3"] {background: #ffd3b6; color: #936629;}
.mood-option[data-mood="2"] {background: #ffaaa5; color: #a4133c;}
.mood-option[data-mood="1"] {background: #ff8b94; color: #800f2f; }


#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 30px;
}

.day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 0;
    color: #666;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
}

.day:hover {
    border-color: #111;
}


.day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day.future {
    color: #ccc;
    cursor: not-allowed;
}

.day.today {
    border: 2px solid #111;
    font-weight: 700;
}

.day[data-logged="5"] { background: #a8e6cf;}
.day[data-logged="4"] { background: #dcedc1;}
.day[data-logged="3"] {background: #ffd3b6;}
.day[data-logged="2"] {background: #ffaaa5;}
.day[data-logged="1"] {background: #ff8b94;}

.stats {
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
}

.stats p {
    margin: 8px 0;
    font-size: 1rem;
}

.stats span {
    font-weight: 700;
}