body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 20px;
    padding-bottom: 100px; /* Space for the bottom nav */
}

.container {
    max-width: 600px; /* Optimal width for single-column layout */
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #e83e8c;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#calendar-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.month-calendar {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-cell {
    text-align: center;
    padding: 12px 0;
    border-radius: 4px;
    font-size: 1em;
    position: relative;
}

.day-name {
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
    padding-bottom: 10px;
}

.day-number {
    display: block;
}

/* --- Day Colors --- */
.day-cell.saturday {
    color: #007bff;
}

.day-cell.sunday {
    color: #dc3545;
}

.day-cell.today .day-number {
    background-color: #ffc107;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
    font-weight: bold;
}


/* --- Pill Status --- */
.pill-day {
    background-color: #d4edda; /* Light green */
    color: #155724;
    font-weight: bold;
}

.rest-day {
    background-color: #fff3cd; /* Light yellow */
    color: #856404;
}

.special-rest-day {
    background-color: #f8d7da; /* Light red */
    color: #721c24;
}

.pill-day.today .day-number,
.rest-day.today .day-number,
.special-rest-day.today .day-number {
    background-color: transparent;
}

.pill-day.today,
.rest-day.today,
.special-rest-day.today {
   border: 2px solid #ffc107;
}

.empty-day {
    visibility: hidden;
}

.hidden {
    display: none !important;
}

/* --- Status View --- */
#status-container {
    text-align: center;
    padding: 40px 20px;
}

.status-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.status-card h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #495057;
}

.status-card .days {
    font-size: 4.5em;
    font-weight: bold;
    color: #e83e8c;
    line-height: 1.2;
}

.status-card .unit {
    font-size: 1.5em;
    color: #6c757d;
}

.status-card .description {
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 10px;
}

/* --- Month Selection --- */
#month-selection-container {
    padding: 10px 0;
}

.month-select-btn {
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 18px 15px;
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
}

.month-select-btn:first-child {
    border-top: 1px solid #eee;
}

.month-select-btn:hover {
    background-color: #f8f9fa;
}

/* --- Bottom Navigation (Unified) --- */
#mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

#mobile-nav button {
    width: 50%;
    padding: 15px 0;
    font-size: 1.1em;
    border: none;
    background-color: transparent;
    color: #6c757d;
    cursor: pointer;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

#mobile-nav button.active {
    color: #e83e8c;
    border-top-color: #e83e8c;
    font-weight: bold;
}