/* =========================================================
   COMPONENT STYLESHEET - CALENDAR
   This file contains all styles for the shared calendar
   component used across the application.
   ========================================================= */

/* --- 1. CALENDAR STYLES --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 10px;
    text-align: center;
}

.calendar-title-text {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    font-weight: 700;
}

.calendar-header .nav-arrow {
    color: var(--accent-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.calendar-days-line {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-image: linear-gradient(to bottom, var(--mid-green-bg), var(--darker-green));
    border-top: 1px solid var(--faint-green-border);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--faint-green-border);
    border: 1px solid var(--faint-green-border);
    border-top: none;
}

.calendar-day {
    height: 64px;
    background-color: var(--background-dark);
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--text-primary);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    overflow: hidden; /* Prevents box from growing vertically */
}

.calendar-day.is-today {
    background-color: var(--button-bg);
    outline: 2px solid #FFD700;
    position: relative;
    z-index: 1;
}

.day-number {
    align-self: flex-end;
    font-size: 12px;
    color: var(--text-primary);
}

.day-total {
    align-self: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 3px;
}

.calendar-day .day-total-food,
.calendar-day .day-total-exercise {
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day .day-total-food {
    color: var(--error-red);
}

.calendar-day .day-total-exercise {
    color: var(--accent-green);
    position: relative;
    bottom: 2px;
}

.calendar-day .day-total-weight {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary); /* White */
}

.calendar-day.is-estimated .day-total-food,
.calendar-day.is-estimated .day-total-exercise {
    color: var(--text-secondary);
}
/* === EOF: calendar.css === */
