/* Calendar View Styles */
.calendar-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.calendar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calendar-nav button {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #f3f4f6;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #f3f4f6;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f9fafb;
}

.calendar-day.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

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

.calendar-day-number {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.calendar-day.other-month .calendar-day-number {
    color: #9ca3af;
}

.calendar-event {
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-event:hover {
    background: #4338ca;
}

.calendar-event.virtual {
    background: #10b981;
}

.calendar-event-count {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Timeline View Styles */
.timeline-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-filters {
    display: flex;
    gap: 1rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #4f46e5;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #4f46e5;
    z-index: 1;
}

.timeline-item.virtual::before {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

.timeline-date {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.timeline-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.timeline-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.timeline-card-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

.timeline-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-card-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.timeline-card-description {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 6px;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.view-toggle button.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-grid {
        font-size: 0.75rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}
