/* ============================================================
   Beauty Manager Pro — Agenda / Calendar Styles
   ============================================================ */

.bmp-agenda-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  height: calc(100vh - var(--bmp-header-height) - 120px);
  min-height: 560px;
}

/* ─── LEFT PANEL ─────────────────────────────────────────── */
.bmp-agenda-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}

.bmp-mini-calendar {
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); padding: 16px;
  box-shadow: var(--bmp-shadow-sm);
}
.bmp-mini-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.bmp-mini-cal-title { font-size: 14px; font-weight: 700; }
.bmp-mini-cal-nav { background: none; border: none; cursor: pointer; color: var(--bmp-text-3); padding: 4px; border-radius: 4px; }
.bmp-mini-cal-nav:hover { background: var(--bmp-surface-2); color: var(--bmp-text); }
.bmp-mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bmp-mini-cal-day-name { text-align: center; font-size: 10px; font-weight: 600; color: var(--bmp-text-3); text-transform: uppercase; padding: 4px 0; }
.bmp-mini-cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border-radius: 50%; transition: all var(--bmp-transition);
  color: var(--bmp-text);
}
.bmp-mini-cal-day:hover { background: var(--bmp-primary-light); color: var(--bmp-primary); }
.bmp-mini-cal-day.today { background: var(--bmp-primary); color: #fff !important; font-weight: 700; }
.bmp-mini-cal-day.selected { background: var(--bmp-primary-light); color: var(--bmp-primary); font-weight: 700; border: 1.5px solid var(--bmp-primary); }
.bmp-mini-cal-day.has-events::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--bmp-accent); margin: 0 auto; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); }
.bmp-mini-cal-day { position: relative; }
.bmp-mini-cal-day.other-month { color: var(--bmp-text-3); }
.bmp-mini-cal-day.disabled { opacity: .3; cursor: not-allowed; }

/* Filters card */
.bmp-agenda-filters-card {
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); padding: 16px;
  box-shadow: var(--bmp-shadow-sm);
}
.bmp-agenda-filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--bmp-text-3); margin-bottom: 10px; }
.bmp-filter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--bmp-radius-sm); cursor: pointer;
  transition: background var(--bmp-transition);
}
.bmp-filter-item:hover { background: var(--bmp-surface-2); }
.bmp-filter-item input[type="checkbox"] { accent-color: var(--bmp-primary); }
.bmp-filter-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bmp-filter-label { font-size: 13px; color: var(--bmp-text-2); }

/* ─── CALENDAR MAIN ──────────────────────────────────────── */
.bmp-calendar-wrap {
  background: var(--bmp-surface); border: 1px solid var(--bmp-border);
  border-radius: var(--bmp-radius-md); box-shadow: var(--bmp-shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
}

.bmp-calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--bmp-border);
  flex-shrink: 0; gap: 12px; flex-wrap: wrap;
}
.bmp-cal-nav { display: flex; align-items: center; gap: 8px; }
.bmp-cal-nav-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bmp-border-2); background: var(--bmp-surface); border-radius: var(--bmp-radius-sm);
  cursor: pointer; color: var(--bmp-text-2); transition: all var(--bmp-transition);
}
.bmp-cal-nav-btn:hover { border-color: var(--bmp-primary); color: var(--bmp-primary); }
.bmp-cal-title { font-size: 16px; font-weight: 800; min-width: 180px; text-align: center; }
.bmp-cal-today-btn {
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--bmp-border-2); background: var(--bmp-surface);
  border-radius: var(--bmp-radius-sm); cursor: pointer; color: var(--bmp-text-2);
  transition: all var(--bmp-transition);
}
.bmp-cal-today-btn:hover { border-color: var(--bmp-primary); color: var(--bmp-primary); }

.bmp-view-switcher { display: flex; border: 1px solid var(--bmp-border-2); border-radius: var(--bmp-radius-sm); overflow: hidden; }
.bmp-view-btn {
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  background: var(--bmp-surface); border: none; cursor: pointer;
  color: var(--bmp-text-2); transition: all var(--bmp-transition); border-right: 1px solid var(--bmp-border-2);
}
.bmp-view-btn:last-child { border-right: none; }
.bmp-view-btn.active { background: var(--bmp-primary); color: #fff; }
.bmp-view-btn:hover:not(.active) { background: var(--bmp-surface-2); }

.bmp-fc-wrap { flex: 1; overflow: hidden; min-height: 0; }
.bmp-fc-wrap .fc { height: 100%; font-family: inherit; }

/* FullCalendar overrides */
.fc .fc-toolbar { display: none; }
.fc .fc-view-harness { background: var(--bmp-surface); }
.fc .fc-col-header-cell { background: var(--bmp-surface-2); }
.fc .fc-col-header-cell-cushion { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--bmp-text-3); padding: 8px; }
.fc .fc-timegrid-slot { height: 48px !important; }
.fc .fc-timegrid-slot-label { font-size: 11px; color: var(--bmp-text-3); }
.fc .fc-event { border-radius: 6px !important; border: none !important; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.fc .fc-event-main { padding: 3px 6px; }
.fc .fc-event-title { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fc .fc-event-time { font-size: 10px; opacity: .9; }
.fc .fc-daygrid-event { border-radius: 4px !important; font-size: 11px; padding: 2px 5px; }
.fc .fc-daygrid-day-number { font-size: 12px; color: var(--bmp-text); padding: 6px; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { background: var(--bmp-primary); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.fc .fc-timegrid-now-indicator-line { border-color: var(--bmp-accent); }
.fc .fc-timegrid-now-indicator-arrow { border-top-color: var(--bmp-accent); border-bottom-color: var(--bmp-accent); }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--bmp-border) !important; }
.fc .fc-scrollgrid { border-color: var(--bmp-border) !important; }

/* Appointment popup */
.bmp-appt-popup {
  position: fixed; background: var(--bmp-surface);
  border: 1px solid var(--bmp-border); border-radius: var(--bmp-radius-md);
  box-shadow: var(--bmp-shadow-lg); padding: 16px;
  min-width: 240px; max-width: 300px; z-index: 500;
  animation: bmpFadeScale .2s ease;
}
@keyframes bmpFadeScale {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.bmp-appt-popup-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.bmp-appt-popup-title { font-weight: 700; font-size: 14px; }
.bmp-appt-popup-close { background: none; border: none; cursor: pointer; color: var(--bmp-text-3); }
.bmp-appt-popup-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 12.5px; color: var(--bmp-text-2); }
.bmp-appt-popup-icon { color: var(--bmp-text-3); flex-shrink: 0; margin-top: 1px; }
.bmp-appt-popup-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* Status selector */
.bmp-status-select {
  display: flex; flex-direction: column; gap: 4px;
}
.bmp-status-option {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--bmp-radius-sm);
  cursor: pointer; font-size: 13px;
  transition: background var(--bmp-transition);
}
.bmp-status-option:hover { background: var(--bmp-surface-2); }
.bmp-status-option.selected { background: var(--bmp-primary-light); }
.bmp-status-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Availability grid */
.bmp-slots-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px; margin-top: 12px;
}
.bmp-slot {
  padding: 8px; text-align: center; border-radius: var(--bmp-radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--bmp-border-2);
  transition: all var(--bmp-transition);
}
.bmp-slot.available { border-color: var(--bmp-green); color: var(--bmp-green); }
.bmp-slot.available:hover { background: var(--bmp-green); color: #fff; }
.bmp-slot.unavailable { border-color: var(--bmp-border); color: var(--bmp-text-3); cursor: not-allowed; text-decoration: line-through; }
.bmp-slot.selected { background: var(--bmp-primary); color: #fff; border-color: var(--bmp-primary); }

/* Responsive agenda */
@media (max-width: 900px) {
  .bmp-agenda-layout { grid-template-columns: 1fr; height: auto; }
  .bmp-agenda-sidebar { display: none; }
  .bmp-agenda-sidebar.show { display: flex; }
}
