:root {
  --ec-selected-outline: #B892FF; /* purple outline */
  --ec-today-pill-bg: #f0e7ff;
  --ec-today-pill-text: #8350ff;
}

span.ecfc-today-pill {
    display: none !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(255 255 255 / 15%);
}
/* Layout */
.ecfc-wrap { font-family: Inter, system-ui, -apple-system, Arial, sans-serif; max-width:1200px; margin:20px auto; color:#111; }
.ecfc-body { display:flex; gap:24px; align-items:flex-start; }

/* Calendar container */
#ecfc-calendar { flex: 1 1 0; background:#fff; border-radius:20px; padding:16px; box-shadow:0 6px 20px rgba(0,0,0,0.06); }

/* Sidebar details */
.ecfc-details { width:380px; background:#fff; border-radius:20px; padding:18px; box-shadow:0 6px 20px rgba(0,0,0,0.06); }
.ecfc-day-heading { font-weight:800; margin-bottom:12px; font-size:18px; color:#3b2b2b; display:flex; align-items:center; gap:8px; }
.ecfc-event { border:1px solid #e9eaef; border-radius:14px; padding:14px; margin-bottom:12px; background:#fff; }
.ecfc-event h3 { margin:0 0 8px 0; font-size:16px; font-weight:700; }
.ecfc-event .meta { font-size:13px; color:#666; margin-bottom:10px; }
.ecfc-event .desc { font-size:14px; color:#444; margin-bottom:12px; }
.ecfc-event .btns { display:flex; gap:10px; }
.ecfc-event .btn { padding:9px 12px; border-radius:10px; cursor:pointer; border:0; text-decoration:none; display:inline-block; font-weight:600; }
.ecfc-event .btn.primary { background:#0b1226; color:#fff; }
.ecfc-event .btn.outline { background:#fff; border:1px solid #e6e6e6; color:#111; }

/* Legend */
.ecfc-legend { display:flex; gap:22px; margin-top:14px; align-items:center; flex-wrap:wrap; }
.ecfc-legend-item { display:flex; align-items:center; gap:8px; }
.ecfc-dot { width:14px; height:14px; border-radius:50%; display:inline-block; }

/* FullCalendar look to match prototype */
.fc .fc-toolbar-title {
  font-size:18px; font-weight:700;
  background:#fff; border:1px solid #e6e6e6; padding:8px 14px; border-radius:999px;
}
.fc .fc-button { background:#fff; color:#111; border:1px solid #e6e6e6; border-radius:10px; }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background:#0b1226; color:#fff; border-color:transparent; }

.fc .fc-daygrid-day { padding:8px; }
.fc .fc-daygrid-day-frame { border-radius:14px; background:#fff; box-shadow: inset 0 0 0 1px #eceef3; }
.fc .fc-day-other .fc-daygrid-day-frame { background:#f7f8fb; }
.fc .fc-daygrid-day-number { font-size:13px; color:#666; }

/* Selected day outline */
.fc .fc-daygrid-day.ecfc-selected .fc-daygrid-day-frame { outline: 3px solid var(--ec-selected-outline); }

/* Today pill near number */
.ecfc-today-pill {
  display:inline-block; margin-left:6px; padding:2px 8px; font-size:11px; line-height:1.6;
  color:var(--ec-today-pill-text); background:var(--ec-today-pill-bg); border-radius:999px; font-weight:600;
}

/* Event chips */
.ecfc-chip { display:block; width:100%; border-radius:12px; padding:6px 8px; margin:6px 0 0; box-shadow:0 1px 0 rgba(0,0,0,0.03); }
.ecfc-chip-time { font-size:11px; color:#333; margin-bottom:2px; display:none;  }
.ecfc-chip-title { font-size:12px; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Today background */
.fc .fc-day-today .fc-daygrid-day-frame { background: #faf6ff; }

/* Responsive */
@media (max-width: 900px) {
  .ecfc-body { flex-direction:column; }
  .ecfc-details { width:100%; order:2; }
  #ecfc-calendar { order:1; }
}

/* ===== Mobile: round & color date numbers for days that have events ===== */
@media (max-width: 768px) {

  /* keep calendar compact */
  .ecfc-wrap { padding: 6px; }
  #ecfc-calendar { max-width: 100%; margin: 0 auto; }

  /* hide FullCalendar's event chips on mobile */
  .fc .fc-daygrid-event,
  .fc .fc-daygrid-event-harness,
  .fc .fc-list-event { display: none !important; }

  /* make the day number a centered round circle */
  .fc .fc-daygrid-day .fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0 0px 0;
  }

  .fc .fc-daygrid-day .fc-daygrid-day-number {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 100%;
    font-size: 16px !important;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #111; /* default */
    background: transparent; /* default */
    transition: transform .14s ease, background-color .16s ease;
  }

  /* subtle active/tap effect */
  .fc .fc-daygrid-day .fc-daygrid-day-number:active {
    transform: scale(0.98);
  }

  /* Today should still be highlighted (keeps border + color if event exists) */
  .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  }

  /* WHEN JS ADDS .ec-has-event TO THE DAY CELL we use custom property --ecfc-day-color */
  .fc .fc-daygrid-day.ec-has-event .fc-daygrid-day-number {
    background-color: var(--ecfc-day-color, #e6e6e6);
    color: var(--ecfc-day-contrast, #000);
  }

  /* reduce month title size to fit */
  .fc .fc-toolbar-title { font-size: 15px !important; }

  /* ensure full width grid, less gaps */
  .fc .fc-daygrid-body { gap: 6px !important; }
  
  
.ecfc-today-pill {
   
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--ec-today-pill-text);
    background: var(--ec-today-pill-bg);
    border-radius: 999px;
    font-weight: 600;
    display: none;
} 

.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin-bottom: 0em !important;
}
.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 0em !important;
    position: relative;
}
}











