/* ============================================================================
   shared/cf-health-bell.css — M55.health-alerts
   ============================================================================ */

/* Sino no topbar (mesmo padrão visual dos outros .ell-topbar__icon) */
.cf-health-bell {
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background 120ms, color 120ms;
}
.cf-health-bell:hover { background: rgba(15, 23, 42, .06); }
.cf-health-bell i { width: 17px; height: 17px; }

.cf-health-bell.is-verde     { color: #475569; }
.cf-health-bell.is-atencao   { color: #ea580c; }
.cf-health-bell.is-critico   { color: #dc2626; animation: cfHealthPulse 1.6s ease-in-out infinite; }

@keyframes cfHealthPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.cf-health-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #dc2626;
  color: #fff;
  border-radius: 99px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cf-health-bell.is-atencao .cf-health-bell-badge { background: #ea580c; }

/* Popover */
.cf-health-popover {
  position: fixed;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .25), 0 0 0 1px #e2e8f0;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  animation: cfHealthPopIn 120ms ease-out;
}
@keyframes cfHealthPopIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf-health-popover > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.cf-health-popover > header strong {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 13px;
  color: #0f172a;
}
.cf-health-popover-close {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.cf-health-popover-close:hover { background: rgba(0,0,0,.06); color: #0f172a; }

.cf-health-popover-body {
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-health-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  color: #475569;
  font-size: 12.5px;
}
.cf-health-empty i { width: 18px; height: 18px; color: #16a34a; }

.cf-health-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  line-height: 1.35;
}
.cf-health-alert.is-critico { background: #fef2f2; border-left-color: #dc2626; }
.cf-health-alert.is-atencao { background: #fffbeb; border-left-color: #ea580c; }
.cf-health-alert > i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: inherit;
}
.cf-health-alert.is-critico > i { color: #991b1b; }
.cf-health-alert.is-atencao > i { color: #92400e; }
.cf-health-alert-text {
  flex: 1;
  min-width: 0;
}
.cf-health-alert-text strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
  font-weight: 600;
}
.cf-health-alert-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}
.cf-health-alert-cta {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #1E5BAA;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.cf-health-alert-cta:hover { background: #f1f5f9; }

.cf-health-popover > footer {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.cf-health-popover-foot {
  width: 100%;
  background: #1E5BAA;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.cf-health-popover-foot:hover { background: #143C7E; }
