.calendar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.view-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 5px;
}

.view-button {
    padding: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-button:hover {
    background-color: #e5e5e5;
}

.view-button.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.view-button i {
    font-size: 1.2em;
}

.calendar-wrapper {
    width: 100%;
    font-family: Arial, sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    text-decoration: none;
    color: #333;
    font-size: 1.5em;
    padding: 5px 10px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.calendar th {
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.calendar td {
    padding: 8px;
    text-align: right;
    border: 1px solid #ddd;
    height: 120px;
    vertical-align: top;
    position: relative;
}

.calendar-day {
    position: relative;
}

.today {
    background-color: #f0f8ff;
}

.calendar-day:hover {
    background-color: #f9f9f9;
}

/* Year View Styles */
.year-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.month-mini {
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 200px;
    max-width: calc(25% - 15px);
}

.month-title {
    margin: 0 0 5px 0;
    text-align: center;
    font-size: 0.9em;
    padding: 5px;
    font-weight: bold;
}

.calendar-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7em;
    table-layout: fixed;
}

.calendar-mini td {
    padding: 0;
    text-align: center;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-mini tr {
    display: flex;
}

.calendar-mini th,
.calendar-mini td {
    border: none;
}

.calendar-day-mini {
    font-size: 0.9em;
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
    line-height: 24px;
}

.calendar-day-mini.has-event {
    background-color: #1976d2;
    color: white;
}

.calendar-day-mini.has-event:hover {
    background-color: #2196f3;
}

.calendar-day-mini.has-event::after {
    display: none;
}

.calendar-day-mini.today {
    font-weight: bold;
}

.calendar-day-mini.today.has-event {
    border-color: white;
}

/* List View Styles */
.list-view {
    max-width: 800px;
    margin: 0 auto;
}

.event-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.month-separator {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    padding: 20px 0 10px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 10px;
}

.month-separator:first-child {
    padding-top: 0;
}

.no-events {
    text-align: center;
    padding: 40px;
    color: #666;
}

.event-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.event-item .event-time {
    color: #666;
    margin: 5px 0;
}

.event-item .event-title {
    color: #1976d2;
    font-size: 1.2em;
    margin: 5px 0;
}

.event-item .event-description {
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

/* Make sure the grid container takes full width */
.calendar-wrapper.year-view {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.day-number {
    font-size: 1em;
    color: #666;
    margin-bottom: 8px;
}

/* Update event marker styles */
.event-marker {
    background-color: #1976d2;
    width: 90%;
    height: auto;
    min-height: 24px;
    margin: 4px auto;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    left: 5%;
    top: 40px;
    padding: 4px 8px;
    color: white !important;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: block;
}

.event-marker:hover {
    background-color: #2196f3;
    transform: scale(1.05);
}

/* Day View Styles */
.day-view .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.day-view .calendar-nav {
    text-decoration: none;
    color: #333;
    font-size: 1em;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.day-view .calendar-nav:hover {
    background-color: #e5e5e5;
}

.day-view .event-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.day-view .event-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.day-view .event-item .event-time {
    color: #666;
    margin: 5px 0;
}

.day-view .event-item .event-title {
    color: #1976d2;
    font-size: 1.2em;
    margin: 5px 0;
}

.day-view .event-item .event-description {
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

.add-event-button .button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.add-event-button .button:hover {
    background-color: #005177;
    color: #fff;
}
