/* FullCalendar text color fix */
.fc {
    color: #111827;
}
.fc .fc-toolbar-title {
    color: #111827;
}
.fc .fc-daygrid-day-number {
    color: #111827;
}
.fc .fc-col-header-cell-cushion {
    color: #111827;
}
.fc .fc-button {
    color: #ffffff;
}
.fc .fc-button-primary {
    background-color: #1f2937;
    border-color: #1f2937;
}
.fc .fc-button-primary:hover {
    background-color: #111827;
}
.fc-theme-standard td,
.fc-theme-standard th {
    background: #ffffff;
    opacity: 1;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Line clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FullCalendar mobile fix */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .fc-toolbar-title {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }
    .fc-button {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .fc-header-toolbar {
        margin-bottom: 0.5rem;
    }
}

/* Transition utility */
.transition {
    transition: all 0.15s ease-in-out;
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

/* Sticky nav */
nav.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}
