.notes-wrapper {
  position: relative;
  display: inline-block;
}

/* =========================
   SOLO STANDALONE
========================= */
.notes-standalone {
  height: 100vh;
  width: 100vw;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #0f111a;
}

/* 🔥 NUEVO: anchor para controlar el dropdown correctamente */
.notes-anchor {
  position: relative;
  display: inline-block;
}

/* botón */
.notes-trigger {
  transform: scale(1.2);
  position: relative;
}

/* badge (si lo usas) */
.notes-badge {
  position: absolute;
  top: -6px;
  right: -6px;

  background: #c0073f;
  color: white;
  font-size: 10px;

  width: 18px;
  height: 18px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   DROPDOWN
========================= */
.notes-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  width: 360px;
  max-height: 420px;
  overflow-y: auto;

  background: #1a1d29;
  border-radius: 8px;
  padding: 8px;

  z-index: 99999;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  transform-origin: top center;
  animation: dropdownFade 0.15s ease-out;
}

/* animación suave */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================
   HEADER
========================= */
.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 4px;
  margin-bottom: 6px;

  color: #fff;
  font-size: 13px;
}

.mark-read {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 12px;
}

/* =========================
   EMPTY
========================= */
.notes-empty {
  padding: 12px;
  color: #9ca3af;
  text-align: center;
}

/* =========================
   ITEM
========================= */
.note-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;

  background: #1a1d29;
  border-left: 3px solid #ff891c;

  margin-bottom: 8px;

  cursor: pointer;
  transition: background 0.15s ease;
}

.note-item:hover {
  background: #222638;
}

/* ICON */
.note-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT */
.note-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.note-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-text {
  font-size: 12px;
  color: #9ca3af;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-date {
  font-size: 10px;
  color: #9ca3af;

  white-space: nowrap;
  margin-left: auto;
  align-self: flex-start;
}/*$vite$:1*/