/* A bit of custom styling for the calendar */
#interview-calendar {
    max-height: 400px; /* A bit larger to accommodate the calendar header */
}
#interview-calendar .fc-event {
    cursor: pointer;
}
#interview-calendar .fc-list-event-title a {
    color: inherit;
    text-decoration: none;
}
#interview-calendar .fc-list-event-title a:hover {
    text-decoration: underline;
}

/* Use flexbox on the parent container for robust centering */
.fc .fc-toolbar-chunk:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style the new timezone element */
.fc-toolbar-timezone {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--bs-secondary-color);
}

#funnel-details-panel .card-body {
  max-height: 350px;    /* same height as on the list view */
  overflow-y: auto;     /* vertical scroll when needed */
  padding: 0;           /* preserve the p-0 layout */
}

.filter-bar-outline {
    padding: 1rem;
    border: 1px solid #dee2e6; /* Bootstrap's standard border color */
    border-radius: 0.375rem; /* Bootstrap's standard border-radius */
    background-color: #f8f9fa; /* A light background color */
}

.flatpickr-calendar {
    z-index: 1056; /* Higher than Bootstrap modal z-index (1055) */
    display: none;
}

.flatpickr-calendar.open {
    display: block;
}

.flatpickr-input {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath d='M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v1h16V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4V.5zM16 14V5H0v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zM11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}

#date-range-picker,
.flatpickr-input {
    width: 100%;
}

#date-filter-container .flatpickr-wrapper {
    flex-grow: 1;
    max-width: 320px; /* Adjust this value as needed */
}

/* This overrides a flex property from Bootstrap that can cause alignment issues. */
#date-filter-container .btn-group, #date-filter-container .btn {
    flex-shrink: 0;
}

/* Animate the chevron icon for the collapsible insights panel */
a[data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform 0.2s ease-in-out;
}
a[data-bs-toggle="collapse"].collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}