.calendar-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-header {
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-day {
    background: white;
    min-height: 140px;
    padding: 0.75rem;
    position: relative;
}

.calendar-day.today {
    background: #fdfdfd;
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: inline-block;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: white;
}

.event-card {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    border-left: 3px solid #0ea5e9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.1s;
}

.event-card:hover {
    transform: scale(1.02);
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.view-toggle {
    display: inline-flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.2rem;
}

.view-toggle button {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.view-toggle button.active {
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}