:root {
    --frog: #9ed5a0;
    --dark-frog: #67a36a;
    --pink: #ffc2d1;
    --bg: #ffe5ec;
    --soft: #fffcfd;
    --txt: #5d4a4a;
    --water-blue: #e0f2fe;
    --water-border: #7dd3fc;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--txt);
    margin: 0;
    padding-bottom: 100px; /* Extra space for the achievement bar */
    overflow-x: hidden;
}

.container {
    width: 95%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* --- Banner --- */
.motivation-bar {
    background: var(--pink);
    color: white;
    padding: 12px 45px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 3px dashed white;
}

.btn-close-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- Cards --- */
.pond-card {
    background: var(--soft);
    border-radius: 20px;
    border: 3px solid var(--frog);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--pink);
}

/* Specialized shadow for the Graph card */
.trend-card {
    border-color: var(--dark-frog);
    box-shadow: 6px 6px 0 var(--water-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

/* --- Graph Container --- */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin-top: 10px;
}

/* --- Grid & Buttons --- */
.mood-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.droplet-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mood-btn, .drop-btn {
    background: white;
    border: 2px solid var(--frog);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-btn {
    filter: grayscale(100%) opacity(0.3);
}

.drop-btn.active {
    filter: grayscale(0%) opacity(1);
    background: var(--water-blue);
    border-color: var(--water-border);
    transform: scale(1.1);
}

/* --- Inputs & Actions --- */
input, select {
    padding: 10px;
    border: 2px solid var(--frog);
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
    background: white;
}

.input-row {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.input-row input {
    flex: 1;
}

.btn-pond {
    background: var(--frog);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pond:hover {
    background: var(--dark-frog);
}

.full-width {
    width: 100%;
}

.time-picker {
    padding: 5px;
    border-color: var(--pink);
    font-size: 0.8rem;
}

/* --- Progress Bar --- */
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 15px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #e0f2e1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--frog);
}

.progress-fill {
    height: 100%;
    background: var(--frog);
    width: 0%;
    transition: 0.5s;
}

/* --- Hops List --- */
.hops-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

/* --- Footer (Achievement Bar) --- */
.achievement-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: var(--dark-frog);
    color: white;
    border-radius: 20px 20px 0 0;
    z-index: 1200;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-bar.collapsed {
    transform: translate(-50%, calc(100% - 50px));
}

.bar-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.centered-controls {
    display: flex;
    gap: 5px;
}

.achievement-content {
    padding: 15px;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--dark-frog);
}

.achieve-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
}

.history-list div {
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Utilities --- */
.btn-util {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

.count-badge {
    background: var(--water-blue);
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.date-display {
    color: var(--dark-frog);
    font-weight: bold;
    margin-top: 5px;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 400px) {
    .mood-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 10px 5px;
    }
}
