/**
 * Appointments and FullCalendar custom styles
 */

/* FullCalendar customization */
#calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.fc .fc-button {
    background-color: #ec4899;
    border-color: #ec4899;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fc .fc-button:hover {
    background-color: #db2777;
    border-color: #db2777;
}

.fc .fc-button:disabled {
    opacity: 0.5;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #be185d;
    border-color: #be185d;
}

.fc .fc-daygrid-day-number {
    color: #374151;
    font-weight: 500;
}

.fc .fc-col-header-cell {
    background-color: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.fc .fc-timegrid-slot {
    height: 3rem;
}

.fc .fc-timegrid-slot-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.fc .fc-event {
    border: none;
    padding: 2px 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc .fc-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(236, 72, 153, 0.05);
}

.fc .fc-timegrid-col.fc-day-today {
    background-color: rgba(236, 72, 153, 0.02);
}

/* Drag and drop */
.fc .fc-event.fc-event-dragging {
    opacity: 0.7;
    cursor: move;
}

.fc .fc-timegrid-col.fc-highlight {
    background-color: rgba(236, 72, 153, 0.1);
}

/* Modal animations */
.animate-modal-slide-up {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Availability message animations */
#availability-message > div,
#time-suggestions > div {
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Time suggestion buttons */
#time-suggestions button {
    transition: all 0.2s ease;
}

#time-suggestions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sidebar scrollbar */
.appointments-page .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.appointments-page .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.appointments-page .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 3px;
}

.appointments-page .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Statistics cards animation */
.appointments-page .bg-gradient-to-br {
    transition: all 0.3s ease;
}

.appointments-page .bg-gradient-to-br:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Filter checkboxes */
.appointments-page input[type="checkbox"]:checked {
    background-color: #ec4899;
    border-color: #ec4899;
}

/* Print styles */
@media print {
    .appointments-page .lg\:col-span-1 {
        display: none;
    }

    .appointments-page .lg\:col-span-3 {
        grid-column: span 4;
    }

    .fc .fc-toolbar {
        display: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fc .fc-toolbar-chunk {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .fc .fc-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.25rem;
    }
}
