/* --- General Setup --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 10px 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* --- Header & Navigation --- */
header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffc107; /* Saitama's yellow */
    padding-bottom: 15px;
}

header h1 {
    color: #d32f2f; /* Saitama's red */
    margin: 0;
    font-size: 2em;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.nav button {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.nav button:hover {
    background-color: #b71c1c;
}

#current-month-year {
    color: #333;
    font-weight: 700;
    font-size: 1.5em;
    margin: 0 10px;
}

/* --- Calendar Grid --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    min-height: 150px;
    background-color: #fafafa;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.day:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day.other-month {
    background-color: #e9ecef;
    color: #aaa;
}

.day-number {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tasks {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.tasks li {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.tasks input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #d32f2f;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .container {
        width: 100%;
        border-radius: 0; /* Full-width on mobile */
        padding: 15px 10px;
        min-height: 100vh;
        box-shadow: none;
    }

    header h1 {
        font-size: 1.5em; /* Smaller titles on small screens */
    }

    #current-month-year {
        font-size: 1.2em;
    }
    
    .nav button {
        padding: 8px 12px; /* Smaller buttons */
        font-size: 1em;
    }

    .day {
        min-height: 100px; /* Compact day cells */
        padding: 5px;
        font-size: 0.8em;
    }

    .day-number {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .tasks li {
        font-size: 0.85em;
        flex-grow: 1; 
    }
    
    .tasks label {
        display: block;
        width: 100%; /* Make labels easier to tap */
    }
}
