/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f7f9fc;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #0066cc;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
}

/* Navigation */
nav {
    background-color: #004c99;
    padding: 0.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a.active {
    background-color: #005bb5;
}

nav ul li a:hover {
    background-color: #0066cc;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Sections */
.section {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 1.8rem;
    color: #004c99;
    margin-bottom: 1rem;
}

/* Due Tasks Section */
.due-tasks-section .task-list li {
    font-weight: 500;
    color: #333;
}

/* Calendar Section */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.calendar-date {
    background-color: #f1f1f1;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.calendar-date:hover {
    background-color: #e0e0e0;
}

.calendar-date.has-task {
    background-color: #ffecb3;
    font-weight: bold;
    border: 1px solid #ffcc80;
}



/* Event Form */
.event-form {
    margin-top: 1rem;
}

.event-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.event-form input,
.event-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.event-form button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #004c99;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.event-form button:hover {
    background-color: #0066cc;
}

/* Notes Section */
.notes-section .note-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f1f1f1;
    margin-bottom: 0.5rem;
    border-left: 4px solid #004c99;
    border-radius: 5px;
}

/* Hide sections by default if no content */
.due-tasks-section, .notes-section {
    display: none;
}

/* Display sections only when needed */
.show-section {
    display: block !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #004c99;
    color: #fff;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    main {
        padding: 1rem;
    }

    .calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}
