/* ── Video Meeting Header Icon ── */

/* Default state: grey / inactive */
.video-meeting-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
  transition: transform 0.15s, background 0.3s, color 0.3s;
}

.video-meeting-bell__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  position: relative;
  z-index: 2;
}

.video-meeting-bell__pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  display: none;
}

/* Active state: red + pulsing when a meeting is joinable */
.video-meeting-bell--active {
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  animation: vmb-glow 2s ease-in-out infinite;
}

.video-meeting-bell--active:hover {
  transform: scale(1.12);
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
}

.video-meeting-bell--active .video-meeting-bell__pulse {
  display: block;
  border-color: #dc2626;
  animation: vmb-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes vmb-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

@keyframes vmb-ping {
  0%   { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(1.4); opacity: 0; }
}

/* ── Video Meeting Bell Wrapper ── */
.video-meeting-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ── Meeting Popup ── */
.meeting-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1100;
  animation: mp-fade-in 0.2s ease-out;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.meeting-popup--hidden {
  display: none;
}
.meeting-popup__arrow {
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
}

@keyframes mp-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.meeting-popup__content {
  max-height: 400px;
  overflow-y: auto;
}

/* Individual meeting card in popup */
.mp-meeting {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.mp-meeting:last-child {
  border-bottom: none;
}

.mp-meeting__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-meeting__title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}

.mp-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.mp-status--live {
  background: #fef2f2;
  color: #dc2626;
}
.mp-status__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 2px;
  vertical-align: middle;
}
.mp-status--soon {
  background: #fffbeb;
  color: #d97706;
}

.mp-meeting__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.mp-meeting__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.mp-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #9ca3af;
}

.mp-meeting__actions {
  display: flex;
  gap: 8px;
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.15s;
  flex: 1;
}

.mp-btn--join {
  background: #047857;
  color: #fff;
}
.mp-btn--join:hover {
  background: #065f46;
  transform: scale(1.02);
  color: #fff;
  text-decoration: none;
}

.mp-btn--end {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.mp-btn--end:hover {
  background: #fee2e2;
  transform: scale(1.02);
}

.mp-empty {
  text-align: center;
  padding: 24px 16px;
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* Mobile popup */
@media (max-width: 480px) {
  .meeting-popup {
    position: fixed;
    top: 56px;
    right: 8px;
    left: 8px;
    width: auto;
  }
  .meeting-popup__arrow {
    display: none;
  }
}
