/* === Neon modal (used for clear history) === */

.neon-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-modal.is-hidden {
  display: none;
}

.neon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.neon-modal-panel {
  position: relative;
  background-color: #050510;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 1.25rem 1.5rem;
  min-width: 260px;
  max-width: 90vw;
  z-index: 1;
}

.rename-modal-panel {
  width: min(420px, 90vw);
}

.neon-modal-input-wrapper {
  margin-bottom: 1rem;
}

.neon-modal-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.neon-modal-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.neon-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Rename modal input */
.neon-modal-input-wrapper {
  margin-bottom: 0.9rem;
}

.neon-modal-input-box {
  height: 46px;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(0, 234, 255, 0.18),
    0 0 36px rgba(255, 0, 204, 0.2);
}

/* === Floating menu for an individual history item === */

.neon-menu {
  position: fixed;
  z-index: 90;
  max-height: calc(100vh - 32px); /* never taller than viewport */
  overflow-y: auto;               /* scroll inside if needed */
}

.neon-menu.is-hidden {
  display: none;
}

.neon-menu-panel {
  background-color: #050510;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.25rem;   /* add horizontal padding */
  min-width: 180px;
}

.neon-menu-item {
  width: 100%;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-align: left;

  border-radius: 0.6rem;      /* rounded highlight */
}

.neon-menu-item:hover {
  background: rgba(0, 234, 255, 0.12);
}

.neon-menu-item-danger {
  color: var(--neon-red);
}

/* Darker, thinner divider to match menu border tone */
.neon-menu-divider {
  border: none;
  border-top: 0.4px solid rgba(255, 255, 255, 0.08); /* darker + thinner */
  margin: 0.45rem 0;
  margin-left: 0.9rem;   /* same as menu item text inset */
  margin-right: 0.9rem;
}

/* Shared hover treatment for buttons in neon modals */
.neon-modal-actions .button {
  border-radius: 999px;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.neon-modal-actions .button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 16px rgba(0, 234, 255, 0.25),
    0 0 26px rgba(255, 0, 204, 0.25);
}
