.calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

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

.calendar-wrapper {
    padding: 0.75rem;
}

.calendar-main {
    min-height: 400px;
}

.fc {
    font-family: inherit;
}

.fc-event {
    border-radius: 4px;
    border: none;
    padding: 1px 3px;
    font-size: 0.8rem;
}

.fc-event-title {
    font-weight: 500;
}

.fc-event-time {
    font-size: 0.7rem;
    opacity: 0.8;
}

.fc-toolbar {
    margin-bottom: 0.5rem !important;
}

.fc-toolbar-title {
    font-size: 1.1rem !important;
}

.fc-button {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}

.fc-daygrid-day-number {
    font-size: 0.85rem;
    padding: 0.25rem !important;
}

.fc-col-header-cell {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.8rem;
}

.fc-daygrid-day-frame {
    min-height: 80px !important;
}

.fc-daygrid-day-events {
    margin-bottom: 1px !important;
}

.fc-event {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.calendar-event-modal .modal-content {
    border-radius: 8px;
}

.calendar-event-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.loading-spinner {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body > .tooltip,
body > .bs-tooltip-top,
body > .bs-tooltip-bottom,
body > .bs-tooltip-left,
body > .bs-tooltip-right,
body > .bs-tooltip-auto,
body .tooltip,
body .bs-tooltip-top,
body .bs-tooltip-bottom,
body .bs-tooltip-left,
body .bs-tooltip-right,
body .bs-tooltip-auto,
.calendar-container .tooltip,
.calendar-container ~ .tooltip,
.fc-popover ~ .tooltip,
.fc-popover .tooltip,
.fc-more-popover .fc-event .tooltip,
.fc-more-popover .fc-event:hover ~ .tooltip,
.fc-event .tooltip,
.fc-popover-body .fc-event .tooltip,
.fc-popover-body .fc-event:hover ~ .tooltip,
.fc-popover-body .tooltip {
    z-index: 10001 !important;
}

@media (max-width: 768px) {
    .calendar-filters {
        flex-direction: column;
    }
}
