* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.view-switch {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.view-switch a {
    flex: 1;
    text-align: center;

    padding: 8px 0;

    border: 1px solid #999;
    border-radius: 5px;

    text-decoration: none;
    color: #333;
    background: #f5f5f5;
}

.view-switch a:hover {
    background: #e5e5e5;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 50px;
    padding: 0 10px;

    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.nav-btn {
    width: 40px;
    text-align: center;

    text-decoration: none;
    font-size: 24px;
    color: #333;
}

.title {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.calendar-month {
    padding: 10px;
}



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

    background: #ccc;
}

.week-day {
    background: #fff;
    min-height: 120px;

    display: flex;
    flex-direction: column;
}

.week-day-header {
    font-size: 12px;
    text-align: center;

    padding: 5px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.week-day-content {
    flex: 1;
    padding: 5px;
    font-size: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;

    font-size: 12px;
    font-weight: bold;

    padding: 5px 0;
    background: #eee;
    border-bottom: 1px solid #ccc;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 60px;
    border: 1px solid #eee;

    padding: 5px;
    font-size: 14px;

    background: #fff;
}

.calendar-day.outside-month {
    background: #f7f7f7;
    color: #aaa;
}

.day-number {
    font-weight: bold;
    font-size: 12px;
}