.avatar {
    margin-bottom: 5px;
    margin-right: 5px;
    border-radius: 2px;
}

.avatar-name {
}

.avatar-name-left {
    display: flex;
}

/* header */
.litebans-header {
    display: block;
    text-align: center;
}

.col-lg-12 {
    text-align: center;
}

/* navbar */
.navbar {
    position: static;
    font-weight: bold;
}

.navbar-brand {
    font-weight: normal;
}

.navbar-active {
    font-weight: bolder;
}

.my-lg-0 {
    font-weight: lighter;
}

/* tables */
th {
    text-align: center;
}

table tr td {
    padding-left: 0;
    padding-right: 0;
    vertical-align: middle !important;
    text-align: center;
}

p {
    margin-top: 2px;
}

/* table links */
a,
a:hover,
a:focus {
    text-decoration: none;
}

tr.hover {
    cursor: pointer;
}

/* check form */
.litebans-check {
    text-align: left;
}

.litebans-check-btn {
    margin-left: 5px;
}

.litebans-check-form {
    margin-left: 15px;
}

.litebans-check-output {
    margin-left: 3px;
}

/* pager */
.litebans-pager {
    font-size: 30px;
}

.litebans-pager-number {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
}

.litebans-pager-left {
    float: left;
}

.litebans-pager-right {
    float: right;
}

.litebans-pager-active {
    color: darkcyan;
}

.litebans-pager-inactive {
    visibility: hidden;
    pointer-events: none;
    cursor: default;
}

/* index.php */
.litebans-index {
    text-align: center;
}

.litebans-index-main {
    font-weight: bold;
}

.litebans-index-sub {
    font-weight: lighter;
}

/* info.php */
.badge, .badge-pill {
    font-weight: 100;
}

.litebans-label-container {
    display: inline-flex;
}

.litebans-label-info {
    margin-left: 15px;
    font-size: 17px;
    font-weight: 800;
}

.litebans-label-inactive {
    color: #fff;
    background-color: #f79720;
}

.litebans-label-expired {
    color: #fff;
    background-color: #777;
}

.litebans-label-active {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-permanent {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-ipban {
    color: #fff;
    background-color: #ee5555;
}

.litebans-label-ipmute {
    color: #fff;
    background-color: #ee5555;
}

/* history.php */
.litebans-label-history {
    display: inline;
    font-size: 16px;
    font-weight: 800;
}

.litebans-label-ban {
    background-color: darkred;
}

.litebans-label-mute {
    background-color: dimgrey;
}

.litebans-label-warn {
    background-color: darkorange;
}

.litebans-label-kick {
    background-color: tomato;
}

/* prevent mouse selection */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* prevent alignment */
.noalign-w {
    width: 0;
}

.noalign-h {
    height: 0;
}
/* JSpot overlay for LiteBans web UI */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800&display=swap");

:root {
  --purple: #6B21A8;
  --deep: #14061f;
  --gold: #EAB308;
  --gold2: #FACC15;
  --text: #f4eef8;
}

html, body {
  min-height: 100%;
  background: radial-gradient(1200px 600px at 50% -10%, #4a1a6b 0%, var(--deep) 55%, #07030c 100%) !important;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, .navbar-brand, .litebans-index-main, th {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

a, a:hover, a:focus {
  color: var(--gold2) !important;
}

header[role="banner"] {
  margin-bottom: 1.5rem;
}

.navbar, .navbar.bg-primary, .navbar.bg-dark, .navbar-dark {
  background: rgba(20, 6, 31, 0.92) !important;
  border-bottom: 1px solid rgba(234, 179, 8, 0.35) !important;
  backdrop-filter: blur(10px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.navbar-brand {
  color: var(--gold2) !important;
  font-weight: 800 !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: #f4eef8 !important;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-active .nav-link {
  color: var(--gold2) !important;
}

.navbar .my-lg-0 a {
  color: rgba(244, 238, 248, 0.45) !important;
  font-size: 0.75rem;
  font-weight: 400;
}

.container {
  color: var(--text);
}

.table, table {
  color: var(--text) !important;
  background: rgba(7, 3, 12, 0.45) !important;
}

.table thead th,
table thead th {
  background: rgba(107, 33, 168, 0.45) !important;
  color: var(--gold2) !important;
  border-color: rgba(234, 179, 8, 0.25) !important;
}

.table td, table td, .table th, table th {
  border-color: rgba(107, 61, 140, 0.35) !important;
}

.table-striped tbody tr:nth-of-type(odd),
table tbody tr:nth-child(odd) {
  background: rgba(107, 33, 168, 0.18) !important;
}

.table-hover tbody tr:hover,
tr.hover:hover {
  background: rgba(234, 179, 8, 0.12) !important;
}

.card, .modal-content, .form-control, .input-group-text {
  background: rgba(20, 6, 31, 0.85) !important;
  color: var(--text) !important;
  border-color: rgba(234, 179, 8, 0.25) !important;
}

.btn-primary, .btn-info, .litebans-check-btn, .page-link {
  background: var(--purple) !important;
  border-color: var(--gold) !important;
  color: var(--gold2) !important;
}

.btn-primary:hover, .page-link:hover {
  background: #7e22ce !important;
  color: #fff !important;
}

.badge, .badge-pill {
  font-family: Inter, sans-serif;
}

.litebans-label-active, .litebans-label-permanent, .litebans-label-ipban,
.litebans-label-ban {
  background-color: #7f1d1d !important;
}

.litebans-label-mute {
  background-color: #4c1d95 !important;
}

.litebans-label-warn {
  background-color: #854d0e !important;
}

.litebans-pager-active {
  color: var(--gold2) !important;
}

.pagination .page-item.active .page-link {
  background: var(--purple) !important;
  border-color: var(--gold) !important;
}

.alert {
  background: rgba(20, 6, 31, 0.9);
  color: var(--text);
  border-color: var(--gold);
}

.text-dark, .alert-light, .text-muted {
  color: #d8cce3 !important;
}
/* Home-matching topnav on /bans */
.navbar { display: none !important; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(20, 6, 31, 0.82);
  border-bottom: 1px solid rgba(107, 61, 140, 0.45);
}
.topnav-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.topnav .brand {
  text-decoration: none;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.topnav .brand img {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--gold); object-fit: cover;
}
.topnav .brand .p { color: #c9a0e8; }
.topnav .brand .g { color: var(--gold); }

.menu { position: relative; margin-left: auto; }
.menu-btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: rgba(42, 13, 69, 0.55);
  color: var(--gold2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: .45rem .85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.menu-btn:hover, .menu-btn:focus-visible {
  background: rgba(234, 179, 8, 0.12);
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
}
.menu-btn .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.menu-btn .bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  width: min(18.5rem, calc(100vw - 2rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: .55rem;
  background: rgba(20, 6, 31, 0.97);
  border: 1px solid rgba(107, 61, 140, 0.55);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
  z-index: 60;
}
.menu.open .menu-panel { display: block; }
.menu-panel .group {
  margin: .35rem 0 .15rem;
  padding: .35rem .65rem .15rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9b86b3;
}
.menu-panel a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text) !important;
  font-size: .95rem;
}
.menu-panel a:hover, .menu-panel a:focus-visible {
  background: rgba(107, 33, 168, 0.35);
  color: var(--gold2) !important;
}
.menu-panel a.soon { opacity: .55; pointer-events: none; }
.menu-panel .tag {
  float: right;
  margin-left: .6rem;
  font-size: .68rem;
  color: #9b86b3;
  text-transform: uppercase;
}

.ban-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  justify-content: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: .65rem 1.25rem 0;
}
.ban-subnav a {
  color: #d7c4ee !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem;
  text-decoration: none;
}
.ban-subnav a:hover { color: var(--gold2) !important; }

body { padding-top: 0 !important; }
