/* ============================================
   ATTENDEE-DETAIL.CSS
   Hotfix3 — append to css/phase2.css or load
   as a standalone <link> after phase2.css
   ============================================ */

/* ------------------------------------------
   ATTENDEE CHIP — detail popup anchor
------------------------------------------ */

.attendee-chip {
  position: relative; /* popup positions off this */
  cursor: default;
}

.attendee-name,
.attendee-initials,
.attendee-group-icon {
  cursor: pointer;
}

.attendee-name:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Green dot — shown when email/phone saved */
.attendee-has-detail {
  display: inline-block;
  width:  7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  align-self: center;
  margin: 0 1px;
}

/* Group chip accent */
.attendee-chip-group {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.28) !important;
}

[data-theme="dark"] .attendee-chip-group {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
}

.attendee-group-icon {
  font-size: 13px;
  line-height: 1;
}

/* ------------------------------------------
   ATTENDEE DETAIL POPUP
------------------------------------------ */

.attendee-detail-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 14px 16px;
  min-width: 240px;
  animation: adpSlide 0.15s ease-out;
}

@keyframes adpSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0);    }
}

[data-theme="dark"] .attendee-detail-popup {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.adp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.adp-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary, #111827);
}

.adp-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-tertiary, #9ca3af);
  padding: 0 3px;
  line-height: 1;
  transition: color 0.15s;
}

.adp-close:hover { color: var(--color-text-primary, #111827); }

.adp-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary, #9ca3af);
  margin-bottom: 5px;
}

.adp-email,
.adp-phone {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  margin-bottom: 10px;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 7px;
  font-size: 13px;
  background: var(--color-surface, #fff);
  color: var(--color-text-primary, #111827);
  transition: border-color 0.15s;
}

.adp-email:focus,
.adp-phone:focus {
  outline: none;
  border-color: var(--color-primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .adp-email,
[data-theme="dark"] .adp-phone {
  background: var(--color-bg-secondary);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.adp-save {
  width: 100%;
  padding: 8px;
  background: var(--color-primary, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.adp-save:hover  { opacity: 0.9; transform: translateY(-1px); }
.adp-save:active { transform: translateY(0); }

/* ------------------------------------------
   WHATSAPP ICON BUTTON (Brief & Follow-Up modals)
------------------------------------------ */

.phase5-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width:  36px;
  height: 36px;
  padding: 0;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.phase5-btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.phase5-btn-whatsapp:active { transform: translateY(0); }

[data-theme="dark"] .phase5-btn-whatsapp { background: #128c3e; }
[data-theme="dark"] .phase5-btn-whatsapp:hover { background: #25d366; }
