/* ============== SCROLLBARS ============== */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* ============== AUDIO VISUALIZER ============== */
.sound-bar {
  display: inline-block;
  width: 4px;
  background: #0d9488;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.wave-anim-1 { animation: wave 0.8s ease-in-out infinite alternate; }
.wave-anim-2 { animation: wave 1.1s ease-in-out 0.2s infinite alternate; }
.wave-anim-3 { animation: wave 0.9s ease-in-out 0.4s infinite alternate; }
.wave-anim-4 { animation: wave 1.3s ease-in-out 0.1s infinite alternate; }
.wave-anim-5 { animation: wave 0.7s ease-in-out 0.3s infinite alternate; }
.wave-anim-6 { animation: wave 1.0s ease-in-out 0.5s infinite alternate; }

.sound-bar-paused {
  animation: none !important;
  height: 6px !important;
  opacity: 0.4;
}

@keyframes wave {
  0% { height: 6px; }
  100% { height: 36px; }
}

/* ============== CALENDAR ============== */
.cal-cell {
  position: relative;
}
.cal-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35);
}
.cal-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}
.cal-cell:hover .cal-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============== ROW ACTIONS: THREE-DOT MENU ============== */
.row-actions {
  position: relative;
  display: inline-flex;
}

.dots-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dots-btn:hover {
  background: #f1f5f9;
  color: #0f766e;
}

.dots-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.18);
  padding: 6px;
  z-index: 30;
}
.dots-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dots-menu button:hover {
  background: #f0fdfa;
  color: #0f766e;
}

/* ============== APPOINTMENT DETAIL MODAL ============== */
.appt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.appt-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.35);
}
/* 
.appt-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
}

.appt-tab-btn {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.appt-tab-btn.active {
  color: #0f766e;
  border-bottom-color: #14b8a6;
}
.appt-tab-btn:hover:not(.active) {
  color: #334155;
}

.appt-tab-panel {
  display: none;
}
.appt-tab-panel.active {
  display: block;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}
.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
} */

/* .transcript-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.transcript-bubble.agent {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  color: #134e4a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.transcript-bubble.user {
  background: #0d9488;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
} */

.cost-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}



/* Transcript bubbles in modal */
/* .transcript-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.transcript-bubble.agent {
  background-color: #f0fdfa;
  color: #134e4a;
  border-left: 3px solid #14b8a6;
}

.transcript-bubble.user {
  background-color: #f8fafc;
  color: #334155;
  border-left: 3px solid #94a3b8;
} */

.transcript-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
}

/* Agent (Sara) — left side */
.transcript-bubble.agent {
  align-self: flex-start;
  background: #f1f5f9;       /* slate-100 */
  color: #1e293b;             /* slate-800 */
  border-bottom-left-radius: 4px;
}

/* Patient/User — right side */
.transcript-bubble.user {
  align-self: flex-end;
  background: #7d8bae;        /* slate-900, swap for your brand color */
  color: #fff;
  border-bottom-right-radius: 4px;
}


/* Modal tabs */
.appt-modal-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  padding: 0 24px;
  gap: 0;
}

.appt-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.appt-tab-btn.active {
  color: #14b8a6;
  border-bottom-color: #14b8a6;
}

.appt-tab-btn:hover {
  color: #0f766e;
}

/* Tab panels */
.appt-tab-panel {
  display: none;
}

.appt-tab-panel.active {
  display: block;
}

/* Modal backdrop */
.appt-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.appt-modal {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.detail-value {
  font-size: 0.875rem;
  color: #1e293b;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}



.call-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.call-type-tab {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;      /* slate-100 */
  color: #475569;           /* slate-600 */
  border: 1px solid #e2e8f0;/* slate-200 */
  cursor: pointer;
  transition: all 0.15s ease;
}

.call-type-tab:hover {
  background: #e2e8f0;
}

.call-type-tab.active {
  background: #0f172a;      /* slate-900, swap for your brand color */
  color: #fff;
  border-color: #0f172a;
}