/* Add here all your CSS customizations */

/* Typography: Poppins is loaded via Google Fonts; override Porto's Work Sans default */
body {
    font-family: "Poppins", sans-serif;
}

.bg-total-days {
  background-color: var(--color-success) !important;
}

.bg-unscheduled-days {
  background-color: var(--secondary-2) !important;
}

.bg-calendar {
  background-color: var(--secondary-3) !important;
}

.bg-remaining-days {
  background-color: var(--color-info) !important;
}

.bg-late-reports {
  background-color: var(--color-late-report) !important;
}

.bg-pdp-reports {
  background-color: var(--color-pdp-report) !important;
}

.card-featured-total-days {
  border-color: var(--color-success);
}

.card-featured-remaining-days {
  border-color: var(--color-info);
}

.card-featured-unscheduled-days {
  border-color: var(--secondary-2);
}

.card-featured-late-reports {
  border-color: var(--color-late-report);
}

.card-featured-calendar {
  border-color: var(--secondary-3);
}

.card-featured-pdp-reports {
  border-color: var(--color-pdp-report);
}

/* ─── Loading States ─── */

/* AJAX progress bar - thin line at top of viewport */
.ajax-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-2), var(--secondary-3));
    z-index: 9999;
    transition: width .3s ease;
    pointer-events: none;
}
.ajax-progress-bar.active {
    width: 85%;
    transition: width 8s cubic-bezier(.1,.05,.2,1);
}

/* DataTables processing overlay */
.dataTables_processing {
    background: rgba(255,255,255,.85) !important;
    color: var(--primary-1) !important;
    border-radius: .5rem !important;
    padding: 1rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
    margin-left: -80px !important;
    width: 160px !important;
    top: 50% !important;
    font-size: .85rem;
}

/* Submit button loading state */
.btn-loading {
    opacity: .8;
    cursor: wait !important;
}

/* Custom Highlight Styles */
.highlighted-date {
    background-color: var(--primary-2) !important;
    color: white !important;
    border-radius: 50%;
}

/* ─── Calendars ─── */
/* Let FullCalendar event labels wrap so the full text (e.g. an observation
   visit's consultant/school/director) is visible instead of being clipped to
   a single line. Applies to every calendar in the app.
   !important is required: FullCalendar's global build injects its own stylesheet
   into <head> at runtime, after this file, so plain class selectors would lose. */
.fc-daygrid-event,
.fc-daygrid-event-harness { white-space: normal !important; }
.fc-event-title,
.fc-event-title-container { white-space: normal !important; overflow: visible !important; }
.fc-daygrid-day-events { min-height: 2em; }
