/* Nexus shared styles: only what Vuexy core.css does not provide. */

/* Small solid status dot used next to a label. */
.nx-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  vertical-align: middle;
}

/* Compact badge for dense table cells. */
.nx-badge-xs {
  font-size: 0.65rem;
}

/* Keep long URLs / anchors from stretching table columns. */
.nx-truncate {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.nx-w-progress {
  min-width: 7rem;
}

/* Monospace values (ids, hashes, hostnames). */
.nx-mono {
  font-family: var(--bs-font-monospace);
  font-size: 0.8125rem;
}

/* Detail offcanvas width shared by every list page. */
.nx-offcanvas {
  width: 480px;
  max-width: 100vw;
}

/* Sortable table headers. */
th[data-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th[data-sort]::after {
  content: "↕";
  margin-inline-start: 0.35rem;
  opacity: 0.35;
}
th[data-sort][aria-sort="ascending"]::after {
  content: "↑";
  opacity: 1;
}
th[data-sort][aria-sort="descending"]::after {
  content: "↓";
  opacity: 1;
}

/* 16:9 media placeholder (player preview, thumbnails). */
.nx-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bs-border-radius);
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.28), rgba(var(--bs-info-rgb), 0.12)), var(--bs-body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nx-media-thumb {
  width: 4.5rem;
  flex-shrink: 0;
}
.nx-media .nx-media-time {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
}

/* Selectable option cards (thumbnail picker, plan picker). */
.nx-pick {
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease;
}
.nx-pick:hover,
.btn-check:checked + .nx-pick {
  border-color: var(--bs-primary);
}

/* Drop zone for uploads. */
.nx-drop {
  border: 2px dashed var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  padding: 2.5rem 1rem;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nx-drop.is-over {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.08);
}

/* Sticky action bar at the bottom of long forms. */
.nx-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background-color: var(--bs-paper-bg, var(--bs-body-bg));
  border-top: 1px solid var(--bs-border-color);
}

/* Heat cells (hour x day grids). */
.nx-heat {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.2rem;
  background-color: rgba(var(--bs-primary-rgb), var(--nx-heat, 0.08));
}

/* Auth pages (login, two-factor, TOTP setup) carry no decorative background shapes. */
.authentication-wrapper.authentication-basic .authentication-inner::before,
.authentication-wrapper.authentication-basic .authentication-inner::after {
  display: none;
}

/* Six-digit code inputs on the auth pages. */
.nx-otp input {
  width: 3rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .nx-truncate {
    max-width: 10rem;
  }
  .nx-otp input {
    width: 2.4rem;
  }
}
