/* Floating Nova Widget - WhatsApp Style */
#novaWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  font-family: Inter, sans-serif;
}

#novaWidget .nw-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s;
  border: none;
  position: relative;
  color: #fff;
}

#novaWidget .nw-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,0.45);
}

#novaWidget .nw-bubble .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3);
  animation: nwPulse 2s infinite;
}

@keyframes nwPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

#novaWidget .nw-box {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #efeae2;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#novaWidget .nw-box.open { display: flex; }

#novaWidget .nw-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#novaWidget .nw-header .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

#novaWidget .nw-header .info { flex: 1; }
#novaWidget .nw-header .info .name { font-weight: 700; font-size: 0.82rem; color: #fff; }
#novaWidget .nw-header .info .status { font-size: 0.6rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; }
#novaWidget .nw-header .info .status .dot { width: 5px; height: 5px; border-radius: 50%; background: #25D366; }
#novaWidget .nw-header .close { cursor: pointer; font-size: 1.1rem; color: rgba(255,255,255,0.6); background: none; border: none; padding: 4px; }

#novaWidget .nw-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.04"><circle cx="20" cy="20" r="20" fill="%23000"/><circle cx="80" cy="80" r="15" fill="%23000"/></svg>');
}

#novaWidget .nw-msgs .m {
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

#novaWidget .nw-msgs .m.nova {
  background: #fff;
  color: #111;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

#novaWidget .nw-msgs .m.nova .label {
  font-size: 0.5rem;
  color: #075E54;
  margin-bottom: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#novaWidget .nw-msgs .m.you {
  background: #DCF8C6;
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

#novaWidget .nw-msgs .m.you .label {
  display: none;
}

#novaWidget .nw-input {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}

#novaWidget .nw-input input {
  flex: 1;
  padding: 10px 14px;
  background: #fff;
  border: none;
  border-radius: 24px;
  color: #111;
  font-size: 0.78rem;
  outline: none;
  font-family: inherit;
}

#novaWidget .nw-input .nw-send {
  background: #075E54;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: opacity 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#novaWidget .nw-input .nw-send:hover { opacity: 0.9; }

#novaWidget .nw-quick {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: #f0f0f0;
  flex-wrap: wrap;
}

#novaWidget .nw-quick button {
  padding: 5px 12px;
  border-radius: 100px;
  border: none;
  background: #fff;
  color: #075E54;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

#novaWidget .nw-quick button:hover { background: #DCF8C6; }
