/* =========================================================
   NIGHTPIXEL DARK THEME FOR AMXBANS (PARTEA 1)
========================================================= */
:root {
  --bg: #090d16;
  --panel: #111827;
  --panel2: #151f30;
  --line: #263449;
  --text: #edf4ff;
  --muted: #91a0b5;
  --cyan: #55d6e8;
  --blue: #477bff;
  --orange: #ff9b52;
  --danger: #f87171;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

img { border: 0; }
.clear, .clearer { clear: both; display: block; font-size: 0; line-height: 0; height: 0; }
.left, .alignleft { float: left; }
.right, .alignright { float: right; }
._right { text-align: right; }
._left { text-align: left; }
._center, .text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fat { font-weight: 700; }
.vtop { vertical-align: top; }
.hidden { display: none; }
.small { font-size: 0.9em; }
.smaller { font-size: 0.85em; }
.smallest { font-size: 0.75em; }
.large { font-size: 1.15em; }
.larger { font-size: 1.25em; }
.largest { font-size: 1.35em; }

.np-container,
.center-wrapper {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   HEADER & MENIU SUS NIGHTPIXEL
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(130, 160, 190, 0.13);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 16px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #07111c;
  font-size: 17px;
}

.brand-sub {
  display: block;
  font: 700 9px "DM Sans", sans-serif;
  letter-spacing: 3px;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #b8c5d8;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8c5d8;
  text-decoration: none !important;
}

.nav-links a i { color: var(--cyan); }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-links .nav-cta {
  padding: 9px 15px;
  border: 1px solid #3a6079;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(85, 214, 232, 0.08);
}

.menu-toggle {
  display: none;
  background: none;
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
   BARA SECUNDARĂ AMXBANS (#network) & LOGIN
========================================================= */
#network {
  background: #0e1523;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

ul.tabbed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.tabbed li { list-style: none; }

#network .tabbed a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

#network .tabbed a:hover,
#network li.current-tab a {
  background: var(--panel2);
  color: var(--cyan);
}

.np-login-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.np-login-form input[type="text"],
.np-login-form input[type="password"] {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: inherit;
}

.np-login-form input:focus {
  border-color: var(--cyan);
  outline: none;
}

.np-login-form button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #07111c;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.np-login-form button:hover { opacity: 0.9; }

/* =========================================================
   ZONA PRINCIPALĂ & BANNER TITLU
========================================================= */
#site {
  flex: 1;
  padding: 32px 0 50px;
  background: radial-gradient(ellipse at 75% 0%, rgba(40, 111, 166, 0.16), transparent 50%);
}

.np-page-banner { margin-bottom: 26px; }

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

.np-page-banner h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.15;
  margin: 8px 0 6px;
  color: #ffffff;
}

.np-page-banner h1 em { font-style: normal; color: var(--cyan); }
.np-page-banner p { color: var(--muted); font-size: 14px; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  margin: 0 0 12px;
}
/* =========================================================
   TABELE AMXBANS (BANLIST, SERVERE, ADMINI)
========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

table.data-table,
.main table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

table.data-table th,
.main thead th,
tr.htable,
tr.htabletop,
tr.htablebottom {
  background: #162135 !important;
  color: var(--cyan) !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px !important;
  border-bottom: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
}

table.data-table td,
.main td {
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  border-bottom: 1px solid rgba(38, 52, 73, 0.7);
  font-size: 13px;
}

table.data-table tr.even td,
tr.list:nth-child(even) td {
  background: #131c2e;
}

tr.list:hover td,
table.data-table tr:hover td,
.m_over td {
  background: #1b2840 !important;
  cursor: pointer;
}

.m_out { background: transparent; color: var(--text); }
.offline td { background: rgba(248, 113, 113, 0.12) !important; color: #fca5a5 !important; }
td.server-info { background: #0d1421 !important; padding: 16px 24px !important; }
td.server-info table { border: 1px solid var(--line) !important; }
td.server-info td { border: 1px solid var(--line) !important; background: var(--panel2) !important; }

/* =========================================================
   FORMULARE, INPUT-URI & BUTOANE AMXBANS
========================================================= */
fieldset {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

legend {
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
}

input.text, textarea, select, input[type="text"], input[type="password"] {
  background: #0b111d;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
}

input.text:focus, textarea:focus, select:focus { border-color: var(--cyan); outline: none; }

input.button, button, input[type="submit"] {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #07111c;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  cursor: pointer;
}

input.button:hover, button:hover { opacity: 0.92; }

/* =========================================================
   ALERTE, PAGINAȚIE & TOOLTIP
========================================================= */
.error, .main_error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.notice {
  background: rgba(255, 155, 82, 0.12);
  border: 1px solid rgba(255, 155, 82, 0.4);
  color: #fdba74;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
.pager a, .pager span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}
.pager a:hover { border-color: var(--cyan); color: var(--cyan); }
.pager span { background: var(--cyan); color: #07111c; font-weight: 700; border-color: var(--cyan); }

#tooltip {
  background: #151f30;
  border: 1px solid var(--cyan);
  border-left: 4px solid var(--cyan);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  position: absolute;
  visibility: hidden;
  z-index: 9999;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.rcon_box {
  background: #06090f;
  color: #4ade80;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 12px;
}

/* Sprite icons AMXBans */
.icons-stats { display: inline-block; background-image: url(../_gfx/stats.png); background-repeat: no-repeat; width: 16px; height: 16px; }
.icon-stats { background-position: 0 0; }
.icon-clock { background-position: -16px 0; }
.icon-kicks { background-position: -32px 0; }
.icons-func { display: inline-block; background-image: url(../_gfx/functions.png); background-repeat: no-repeat; width: 15px; height: 17px; cursor: pointer; }
.icon-view { background-position: 0 0; }
.icon-edit { background-position: -15px 0; }
.icon-delete { background-position: -30px 0; }
.icon-email { width: 16px; background-position: -45px 0; }
.icon-download { background-position: -61px 0; }
.icons-connect { display: inline-block; background-image: url(../_gfx/connect.png); background-repeat: no-repeat; width: 80px; height: 15px; cursor: pointer; }
.icon-steam { background-position: 0 0; }
.icon-hlsw { background-position: -80px 0; }
.icons-page { display: inline-block; background-image: url(../_gfx/pagenation.png); background-repeat: no-repeat; width: 16px; height: 16px; }
.icon-left-valid { background-position: 0 0; cursor: pointer; }
.icon-left-notvalid { background-position: -32px 0; }
.icon-left-end { background-position: -64px 0; cursor: pointer; }
.icon-right-valid { background-position: -16px 0; cursor: pointer; }
.icon-right-notvalid { background-position: -48px 0; }
.icon-right-end { background-position: -80px 0; cursor: pointer; }
.icon-access { display: inline-block; background-image: url(../_gfx/access.png); background-repeat: no-repeat; width: 16px; height: 16px; cursor: pointer; }

/* =========================================================
   FOOTER NIGHTPIXEL
========================================================= */
.cNightPixelFooter {
  background: #080c13;
  border-top: 1px solid var(--line);
  padding: 50px 0 0;
  color: var(--text);
  margin-top: auto;
}

.cNightPixelFooter-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

.footer-logo img { max-height: 46px; width: auto; margin-bottom: 14px; display: block; }
.footer-about { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 290px; }
.footer-col h3 { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 700; color: #ffffff; margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; text-decoration: none !important; }
.footer-links li a i { width: 16px; text-align: center; color: var(--cyan); }
.footer-links li a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-links li a.footer-highlight { color: var(--orange); font-weight: 700; }
.footer-links li a.footer-highlight i { color: var(--orange); }

.cNightPixelFooter .copyright {
  border-top: 1px solid #1d2938;
  padding: 18px 20px;
  text-align: center;
  color: #718096;
  font-size: 12px;
  background: #06090f;
}

.amx-credits a { color: var(--muted); }

/* =========================================================
   RESPONSIVE (TELEFON / TABLETĂ)
========================================================= */
@media (max-width: 900px) {
  .cNightPixelFooter-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0d1522;
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .np-login-form { flex-wrap: wrap; }
  .cNightPixelFooter-inner { grid-template-columns: 1fr; }
}
/* =========================================================
   PANOURI DREAPTA (STATISTICS & LATEST BAN) - 2 COLOANE + ICONIȚE
========================================================= */
.sidebar .section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.sidebar .section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sidebar .section-title .icons-stats {
  background-image: none !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  color: var(--cyan);
  font-size: 15px;
  width: auto;
  height: auto;
  margin-left: auto;
}

.sidebar .section-title .icon-stats::before { content: "\f201"; }
.sidebar .section-title .icon-clock::before { content: "\f05e"; }

.sidebar ul.nice-list,
.sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.sidebar ul.nice-list li,
.sidebar ul li {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 9px 10px !important;
  margin-bottom: 4px !important;
  border-radius: 10px;
  background: rgba(21, 31, 48, 0.45);
  border: 1px solid rgba(38, 52, 73, 0.5);
  color: var(--text) !important;
  font-size: 13px;
}

/* Ascunde rândul gol dintre Temporary Bans și Admins */
.sidebar ul.nice-list li:nth-child(5) {
  display: none !important;
}

/* Coloana stânga (Text + Iconiță) */
.sidebar ul.nice-list li div.left,
.sidebar ul.nice-list li > span:first-child {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 500;
}

/* Iconițe Font Awesome automate pentru fiecare rând din Statistics */
.sidebar ul.nice-list li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--cyan);
  width: 16px;
  text-align: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.sidebar ul.nice-list li:nth-child(1)::before { content: "\f1c0"; } /* Bans in database (database) */
.sidebar ul.nice-list li:nth-child(2)::before { content: "\f05e"; color: #f87171; } /* Active bans (ban) */
.sidebar ul.nice-list li:nth-child(3)::before { content: "\f023"; color: #ff9b52; } /* Permanent Bans (lock) */
.sidebar ul.nice-list li:nth-child(4)::before { content: "\f017"; } /* Temporary Bans (clock) */
.sidebar ul.nice-list li:nth-child(6)::before { content: "\f505"; color: #4ade80; } /* Admins (user-shield) */
.sidebar ul.nice-list li:nth-child(7)::before { content: "\f233"; } /* Active Servers (server) */

/* Coloana dreapta (Numărul delimitat în pastilă) */
.sidebar ul.nice-list li div.right,
.sidebar ul.nice-list li .right {
  float: none !important;
  margin-left: auto !important;
  background: rgba(85, 214, 232, 0.12);
  border: 1px solid rgba(85, 214, 232, 0.25);
  color: var(--cyan) !important;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 8px;
  min-width: 34px;
  text-align: center;
}
/* =========================================================
   AJUSTARE LĂȚIME STÂNGA (TABEL) + DREAPTA (SIDEBAR) + ASCUNDERE LOGO VECHI
========================================================= */

/* Ascunde complet bannerul vechi "AMXBANS" din mijloc */
#site #header,
#site-title,
.spacer {
  display: none !important;
}

/* Containerul principal pe 2 coloane */
.main,
#main-two-columns,
#main-three-columns {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

/* Coloana din stânga (Tabelul de servere și banuri) - Lățită complet */
.main #main-left,
#main-left,
.main > div:first-child:not(.sidebar) {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Tabelul din interiorul coloanei stânga să ocupe 100% */
#main-left table,
.main table {
  width: 100% !important;
  margin-bottom: 0 !important;
}

/* Sidebar-ul din dreapta - Mai lat (370px) */
.main .sidebar,
#sidebar,
.sidebar {
  width: 370px !important;
  min-width: 370px !important;
  flex-shrink: 0 !important;
}

/* Pe mobil/tabletă să se pună una sub alta */
@media (max-width: 960px) {
  .main,
  #main-two-columns,
  #main-three-columns {
    flex-direction: column !important;
  }
  .main .sidebar,
  #sidebar,
  .sidebar {
    width: 100% !important;
    min-width: 100% !important;
  }
}


