#sidebar {
  min-width: 220px;
  max-width: 220px;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

#sidebar.collapsed {
  margin-left: -220px;
}

#sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255,255,255,.1);
}

#main-content {
  min-height: 100vh;
  overflow-x: auto;
}

.table th {
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.modal-lg-custom {
  max-width: 900px;
}

pre.email-preview {
  max-height: 400px;
  overflow-y: auto;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
}

.badge-status-active { background-color: #198754; }
.badge-status-cancelled { background-color: #dc3545; }
.badge-status-completed { background-color: #0d6efd; }
.badge-status-pending { background-color: #ffc107; color: #000; }
.badge-status-failed { background-color: #dc3545; }
.badge-status-sent { background-color: #198754; }
.badge-status-skipped { background-color: #6c757d; }

.stats-card {
  border-left: 4px solid;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* Booking Timeline */
.timeline-progress .step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.8rem;
}
.timeline-progress .step .circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dee2e6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.timeline-progress .step.done .circle { background: #198754; }
.timeline-progress .step.active .circle { background: #0d6efd; animation: pulse-ring 1.5s infinite; }
.timeline-progress .step.warn .circle { background: #dc3545; }
.timeline-progress .step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 50%;
  height: 3px;
  background: #dee2e6;
  z-index: 0;
}
.timeline-progress .step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: 0;
  height: 3px;
  background: #dee2e6;
  z-index: 0;
}
.timeline-progress .step:first-child::before,
.timeline-progress .step:last-child::after { display: none; }
.timeline-progress .step.done::before,
.timeline-progress .step.done::after { background: #198754; }
.timeline-progress .step.active::before { background: #198754; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.day-card { border-left: 4px solid #dee2e6; }
.day-card.day-past { border-left-color: #198754; }
.day-card.day-today { border-left-color: #0d6efd; }
.day-card.day-future { border-left-color: #6c757d; }
.day-card.day-problem { border-left-color: #dc3545; }

.slot-row { border-bottom: 1px solid #f0f0f0; }
.slot-row:last-child { border-bottom: none; }

.email-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.email-dot.SENT { background: #198754; }
.email-dot.PENDING { background: #ffc107; }
.email-dot.SENDING { background: #0dcaf0; }
.email-dot.FAILED { background: #dc3545; }
.email-dot.CANCELLED { background: #6c757d; }
.email-dot.SKIPPED { background: #adb5bd; }
.email-dot.EXPECTED { background: #dee2e6; border: 2px dashed #adb5bd; }
