/* ==========================================================================
   theme-dark.css — NOC / Telecom dark theme (camada FINAL)
   Carregado após theme-modern.css em todas as páginas.
   Paleta: bg #0b0f17 / superfícies #131b26 / bordas branco 7% /
   emerald #10b981-#00e599 / rose #f43f5e / electric #3b82f6 / cyan #06b6d4
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --body-color: #0b0f17;
  --black-color: #0d1117;
  --black-color-light: #131b26;
  --black-color-lighten: #1a2534;
  --light-color: #0d1117;

  --surface: #131b26;
  --surface-2: #16222f;

  --primary-color: #10b981;
  --pink-color: #00e599;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;

  --text-primary: #e6edf7;
  --text-secondary: #94a6ba;
  --border-color: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.65);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --bs-primary: #10b981;
  --bs-primary-rgb: 16, 185, 129;
  --bs-body-color: #e6edf7;
  --bs-body-bg: #0b0f17;
  --bs-link-color: #2dd4bf;
  --bs-link-hover-color: #5eead4;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-tertiary-bg: #0f1620;
  --bs-secondary-bg: #131b26;
  --bs-emphasis-color: #fff;
  --bs-form-invalid-color: #f87171;
  --bs-form-valid-color: #34d399;
}

html {
  background: #0b0f17;
}

body {
  background: var(--body-color);
  color: var(--text-primary);
}

/* ---------- 2. BASE / SCROLLBAR / FOCUS ---------- */
::selection {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #2a3646;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4a60;
}

:focus-visible {
  outline: 2px solid rgba(0, 229, 153, 0.75);
  outline-offset: 2px;
}

a {
  color: #2dd4bf;
}

a:hover {
  color: #5eead4;
}

.text-muted {
  color: #8fa1b6 !important;
}

::placeholder {
  color: #5f7186;
}

/* ---------- 3. HEADER GLASS + NAV ---------- */
.header {
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.nav__logo {
  color: #fff;
}

.nav__logo i,
.nav__logo #logo {
  color: #00e599;
}

@media (min-width: 1119px) {
  .nav__menu {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .nav__list {
    margin-inline: auto;
  }

  .nav__link {
    background: transparent;
    color: #9fb0c5;
  }

  .nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .nav__link.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
    border-radius: 10px;
    box-shadow: inset 0 -2px 0 #00e599, 0 0 14px rgba(16, 185, 129, 0.18);
  }
}

/* --- Status pill (Online) --- */
.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 6px #00e599;
  animation: noc-led-pulse 1.8s ease-in-out infinite;
}

@keyframes noc-led-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* --- Badge de total de clientes no nav --- */
.nav__count {
  margin-left: 0.45rem;
  min-width: 1.35rem;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9fb0c5;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.nav__count:empty {
  display: none;
}

/* --- Busca no navbar (Clientes) --- */
.nav__search {
  flex: 1;
  max-width: min(320px, 30vw);
  margin-left: 1rem;
}

.nav__search .search-wrapper {
  width: 100%;
  max-width: none;
  flex: none;
}

.nav__search .search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6edf7;
  border-radius: 999px;
  padding: 0.55rem 2.5rem 0.55rem 2.6rem;
  font-size: 0.85rem;
}

.nav__search .search-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.nav__search .search-icon {
  left: 0.95rem;
  color: #7d8ea3;
  font-size: 1.1rem;
}

.nav__search .clear-search {
  background: rgba(255, 255, 255, 0.1);
  color: #c3d0df;
}

.nav__search .clear-search:hover {
  background: rgba(244, 63, 94, 0.85);
  color: #fff;
}

/* --- Bloco direito: Ajustes / sino / perfil --- */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #9fb0c5;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav__dropdown-toggle:hover,
.nav__dropdown.open .nav__dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav__dropdown.is-active .nav__dropdown-toggle {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 190px;
  padding: 0.35rem;
  border-radius: 12px;
  background: #131b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 60;
}

.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #c3d0df;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav__dropdown-item.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.nav__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  color: #9fb0c5;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav__bell:hover,
.nav__bell.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__bell.is-active {
  color: #34d399;
}

.nav__bell-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
  line-height: 1;
}

.nav__profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.35rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-left: 0.25rem;
}

.nav__avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: #eafff6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.nav__profile-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c3d0df;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav__sair-form {
  display: inline-flex;
  margin: 0;
}

.nav__sair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8fa1b6;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav__sair:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

/* ---------- 4. NAV MOBILE (<=1118) ---------- */
@media screen and (max-width: 1118px) {
  .nav__menu {
    display: block;
  }

  .nav__list {
    background-color: var(--black-color);
  }

  .nav__link {
    color: #aebdce;
  }

  .nav__link.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #00e599;
  }

  .nav__right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: var(--black-color);
    padding: 0.85rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__dropdown,
  .nav__bell,
  .nav__profile {
    width: 100%;
  }

  .nav__dropdown-toggle,
  .nav__bell {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .nav__bell-count {
    top: 0.45rem;
    right: auto;
    left: 1.6rem;
  }

  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 0.15rem 0 0 0.75rem;
    display: none;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    display: block;
  }

  .nav__profile {
    justify-content: space-between;
    padding: 0.4rem 0.4rem 0.4rem 0.4rem;
  }

  .nav__profile-name {
    max-width: none;
    flex: 1;
  }

  .nav__search {
    display: none;
    margin-left: 0;
    max-width: none;
  }

  .nav.nav--search.show-menu .nav__search {
    display: block;
    position: fixed;
    top: calc(var(--header-height) + 0.55rem);
    left: 1rem;
    right: 1rem;
    z-index: 120;
  }

  .nav.nav--search.show-menu .nav__search .search-input {
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    background: #131b26;
  }

  .nav.nav--search.show-menu .nav__menu {
    top: calc(var(--header-height) + 3.4rem);
  }
}

/* Burger do Clientes entre 769-1118 (sistema absolute do page-css não tinha reveal) */
@media screen and (min-width: 769px) and (max-width: 1118px) {
  .nav.show-menu .nav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    top: 3.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__status {
    display: none;
  }

  .nav.nav--search.show-menu .nav__menu {
    top: calc(var(--header-height) + 3.6rem);
    max-height: calc(100vh - var(--header-height) - 3.6rem);
  }
}

/* ---------- 5. SUPERFÍCIES / CARDS ---------- */
.page-header {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.page-title {
  color: #fff;
}

.company-name {
  color: #7d8ea3;
}

.toolbar {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-card {
  background: linear-gradient(180deg, rgba(22, 34, 47, 0.92), rgba(19, 27, 38, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 32px -12px rgba(16, 185, 129, 0.25);
}

.stat-card.active {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 12px 28px -12px rgba(16, 185, 129, 0.35);
}

.stat-info h3 {
  color: #fff;
}

.ipv6-percentage {
  color: #7d8ea3;
}

/* --- Sparklines --- */
.sparkline {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 100px;
  height: 36px;
  opacity: 0.9;
  pointer-events: none;
}

.sparkline-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-online .sparkline-line {
  stroke: #00e599;
}

.stat-online .sparkline-area {
  fill: rgba(0, 229, 153, 0.14);
}

.stat-offline .sparkline-line {
  stroke: #f43f5e;
}

.stat-offline .sparkline-area {
  fill: rgba(244, 63, 94, 0.14);
}

.stat-total .sparkline-line {
  stroke: #3b82f6;
}

.stat-total .sparkline-area {
  fill: rgba(59, 130, 246, 0.14);
}

.stat-ipv6 .sparkline-line {
  stroke: #06b6d4;
}

.stat-ipv6 .sparkline-area {
  fill: rgba(6, 182, 212, 0.14);
}

/* Linhas expansíveis / detalhes */
.details-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #9fb0c5;
}

/* ---------- 6. TABELAS ---------- */
.table-responsive,
.table-wrapper {
  background: transparent;
  border-radius: 14px;
}

table.table thead th {
  background: #16222f;
  color: #8fa1b6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.table tbody tr {
  border-color: rgba(255, 255, 255, 0.05);
}

table.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

table.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}

table.table tbody tr.login-error td {
  color: #fbbf24;
}

table.table tbody tr.login-error {
  background: rgba(245, 158, 11, 0.07);
}

table.table tbody tr.login-error:hover {
  background: rgba(245, 158, 11, 0.11);
}

.users-table th {
  background: #16222f;
  color: #8fa1b6;
}

.users-table td {
  color: #e6edf7;
}

/* ---------- 7. BOTÕES / FILTROS ---------- */
.btn-primary {
  background: linear-gradient(180deg, #10b981, #0d9488);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #059669, #0b7c6c);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.55;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfd9e6;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-dark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf7;
}

.btn-dark:hover,
.btn-dark:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  box-shadow: 0 4px 14px -4px rgba(239, 68, 68, 0.5);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: #10b981;
}

.filter-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-filter {
  color: var(--text-secondary);
}

.btn-filter:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf7;
}

.btn-filter.active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd9e6;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-btn.active {
  color: #fff;
}

.btn-refresh {
  background: linear-gradient(180deg, #10b981, #0d9488);
  color: #fff;
}

.btn-refresh:hover {
  background: linear-gradient(180deg, #059669, #0b7c6c);
  box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.55);
}

.btn-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb0c5;
}

.btn-action:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.add-user-btn {
  background: linear-gradient(180deg, #10b981, #0d9488);
  color: #fff;
}

.view-btn {
  color: #9fb0c5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn.active {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

/* ---------- 8. FORMULÁRIOS / BUSCA ---------- */
.form-control,
.form-select {
  background: #0d1117;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6edf7;
}

.form-control:focus,
.form-select:focus {
  background: #0f1620;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  color: #e6edf7;
}

.form-control::placeholder {
  color: #5f7186;
}

.form-select option {
  background: #0d1117;
  color: #e6edf7;
}

label,
.form-label {
  color: #aebdce;
}

.form-text,
.form-help {
  color: #7d8ea3;
}

.form-check-input {
  background-color: #0d1117;
  border-color: rgba(255, 255, 255, 0.25);
}

.form-check-input:checked {
  background-color: #10b981;
  border-color: #10b981;
}

.form-check-label {
  color: #c3d0df;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #9fb0c5;
}

.form-floating > label {
  color: #7d8ea3;
}

.search-input {
  background: #0d1117;
  border-color: var(--border-color);
}

.search-input:focus {
  background: #0f1620;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.search-container .search-input {
  background: #0d1117;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6edf7;
}

.search-container .search-input:focus {
  background: #0f1620;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.search-container .search-icon {
  color: #7d8ea3;
}

/* ---------- 9. BADGES / STATUS ---------- */
.status-badge.online {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.offline {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.status-badge.error {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.badge-danger {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
}

/* ---------- 10. MODAIS / DROPDOWN / ALERTS / TOAST ---------- */
.modal-content {
  background: #131b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.7);
  color: #e6edf7;
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.07);
}

.modal-title {
  color: #fff;
}

.modal-backdrop.show {
  opacity: 0.65;
}

.dropdown-menu {
  background: #131b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
  color: #c3d0df;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}

.toast {
  background: #131b26;
  color: #e6edf7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tooltip-inner {
  background: #1e293b;
  color: #e6edf7;
}

.bg-light {
  background: #0d1117 !important;
}

/* ---------- 11. WIDGETS Vlans ---------- */
.filters-section {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.vlan-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.vlan-card:hover {
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.6);
}

.vlan-header {
  color: #fff;
}

.vlan-info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label,
.current-label {
  color: #8fa1b6;
}

.info-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #00e599;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.25);
}

.current-name-display {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e6edf7;
}

/* ---------- 12. WIDGETS Logs ---------- */
.stat-number {
  color: #fff;
}

.stat-label {
  color: #8fa1b6;
}

.log-timeline {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  box-shadow: 0 2px 14px -6px rgba(16, 185, 129, 0.4);
}

.log-entry {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.log-entry:hover {
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.log-user {
  color: #e6edf7;
}

.log-details {
  color: #8fa1b6;
}

.log-container::-webkit-scrollbar-thumb {
  background: #334155;
}

/* ---------- 13. config / usuários / servidores ---------- */
.users-table-container {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.user-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ports-container {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.port-tag {
  background: rgba(255, 255, 255, 0.07);
  color: #cfd9e6;
  border-color: rgba(255, 255, 255, 0.1);
}

.status-label {
  color: #8fa1b6;
}

.status-value {
  color: #e6edf7;
}

.quick-actions-title {
  color: #fff;
}

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfd9e6;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#refresh-timer {
  color: #8fa1b6 !important;
}

/* ---------- 14. HUB ---------- */
.bg-primary {
  background: radial-gradient(1100px 520px at 18% -8%, rgba(16, 185, 129, 0.14), transparent 58%),
    radial-gradient(900px 480px at 88% 108%, rgba(59, 130, 246, 0.12), transparent 55%), #0b0f17 !important;
}

.servidor-btn {
  background: linear-gradient(180deg, #16222f, #131b26);
  color: #a5b4c8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.servidor-btn:hover {
  background: linear-gradient(180deg, #1a2836, #16222f);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 28px -10px rgba(16, 185, 129, 0.3);
  color: #e6edf7;
}

.servidor-btn .status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.servidor-btn.is-online .status-light {
  background: #00e599 !important;
  box-shadow: 0 0 10px #00e599, 0 0 4px rgba(0, 229, 153, 0.8);
  animation: led-blink 1.2s ease-in-out infinite alternate !important;
}

.servidor-btn.is-offline .status-light {
  background: #f43f5e !important;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.7);
  animation: none !important;
}

@keyframes led-blink {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.55;
  }
}

/* ---------- 15. LOGIN (index) ---------- */
.login-section .card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.7);
  color: #e6edf7;
}

.login-section h3,
.login-section .title {
  color: #fff;
}

.login-section p,
.login-section .message {
  color: #94a6ba;
}

.login-section label {
  color: #aebdce;
}

.btn-login .btn-light {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.btn-login .btn-light:hover {
  background: #059669;
  border-color: #059669;
}

/* ---------- 16. FOOTER ---------- */
.footer {
  background: #0d1117;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1rem;
  text-align: center;
  color: #8fa1b6;
}

footer.bg-dark {
  background: #0d1117 !important;
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: #8fa1b6;
  letter-spacing: 0.01em;
}

/* ---------- 17. LOADING / EMPTY / PAGINAÇÃO ---------- */
.loading-content {
  background: #131b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.loading-text,
.loading-subtext {
  color: #e6edf7;
}

.loading-spinner {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: #00e599;
}

.empty-state {
  background: transparent;
  color: var(--text-secondary);
}

.empty-state h3 {
  color: var(--text-primary);
}

.pagination .page-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #c3d0df;
}

.pagination .page-item.active .page-link {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.5);
}

.pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.03);
  color: #5f7186;
}

/* ---------- 18. LANDING PÚBLICA (index) ---------- */
.landing-section {
  padding: 4.5rem 0;
  scroll-margin-top: 1rem;
}

.landing-section + .landing-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-eyebrow {
  color: #00e599;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

.section-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.9rem;
}

.section-lead {
  color: #94a6ba;
  font-size: 1rem;
  line-height: 1.65;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -18px rgba(16, 185, 129, 0.35);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(16, 185, 129, 0.12);
  color: #00e599;
  box-shadow: 0 0 18px rgba(0, 229, 153, 0.18);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card h5,
.about-item h5,
.contact-card h5 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.feature-card p,
.about-item p,
.contact-card p {
  color: #94a6ba;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.about-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: var(--shadow-md);
}

.about-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.about-item .feature-icon {
  margin-bottom: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -18px rgba(16, 185, 129, 0.35);
}

.contact-card .feature-icon {
  margin-inline: auto;
}

.contact-card a {
  color: #2dd4bf;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: #5eead4;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .landing-section {
    padding: 3rem 0;
  }
}

/* ---------- 19. LOGS — LAYOUT NOC DENSO ---------- */
section.bg-white {
  background: transparent !important;
}

/* Busca no navbar variante Logs (slate translúcido, cantos médios) */
.page-logs .nav__search {
  max-width: 20rem;
}

.page-logs .nav__search .search-input {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.page-logs .nav__search .search-input:focus {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.page-logs .nav__search .search-icon {
  color: #64748b;
}

.nav__search .clear-search {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Cards de métrica glass (clicáveis = filtro) */
.log-stats .log-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 5.4rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 23, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: #e6edf7;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.log-stats .log-metric:hover {
  transform: translateY(-3px);
}

.log-stats .log-metric:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.7);
  outline-offset: 2px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #9fb0c5;
}

.metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.log-metric .stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.log-metric .stat-label {
  font-size: 0.72rem;
  color: #8fa1b6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.metric-spark {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  width: 78px;
  height: 30px;
  opacity: 0.75;
  pointer-events: none;
}

.metric-spark-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Variantes neon */
.log-stats .log-metric.connections {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.log-stats .log-metric.connections .metric-icon {
  background: rgba(16, 185, 129, 0.14);
  color: #00e599;
}

.log-stats .log-metric.connections .metric-spark-line {
  stroke: #00e599;
}

.log-stats .log-metric.disconnections {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.log-stats .log-metric.disconnections .metric-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.log-stats .log-metric.disconnections .metric-spark-line {
  stroke: #f59e0b;
}

.log-stats .log-metric.rejections {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.log-stats .log-metric.rejections .metric-icon {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
}

.log-stats .log-metric.all {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.log-stats .log-metric.all .metric-icon {
  background: rgba(6, 182, 212, 0.14);
  color: #22d3ee;
}

.log-stats .log-metric.all .metric-spark-line {
  stroke: #22d3ee;
}

/* Barras pulsantes (rejeições) */
.metric-bar {
  animation: metric-bar-pulse 1.6s ease-in-out infinite;
}

.metric-bar.b1 {
  fill: #f43f5e;
  animation-delay: 0s;
}

.metric-bar.b2 {
  fill: #f43f5e;
  animation-delay: 0.18s;
}

.metric-bar.b3 {
  fill: #f43f5e;
  animation-delay: 0.36s;
}

.metric-bar.b4 {
  fill: #f43f5e;
  animation-delay: 0.54s;
}

.metric-bar.b5 {
  fill: #f43f5e;
  animation-delay: 0.72s;
}

@keyframes metric-bar-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Estado ativo (card filtrando) */
.log-stats .log-metric.active {
  transform: translateY(-3px);
}

.log-stats .log-metric.connections.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.log-stats .log-metric.disconnections.active {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3), inset 0 0 0 1px rgba(245, 158, 11, 0.45);
}

.log-stats .log-metric.rejections.active {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.85);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.3), inset 0 0 0 1px rgba(244, 63, 94, 0.45);
}

.log-stats .log-metric.all.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.85);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.3), inset 0 0 0 1px rgba(6, 182, 212, 0.45);
}

/* Sub-header compacto */
.log-timeline .timeline-header {
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  gap: 0.75rem;
}

.log-timeline .timeline-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
}

.timeline-count {
  font-size: 0.74rem;
  color: #8fa1b6;
  font-weight: 500;
}

.log-timeline .refresh-btn-logs {
  width: auto;
  height: auto;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd9e6;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.4rem;
  display: inline-flex;
  align-items: center;
}

.log-timeline .refresh-btn-logs:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  transform: none;
}

.log-timeline .refresh-btn-logs:active {
  transform: scale(0.96);
}

/* Tabela NOC densa */
.noc-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.noc-table {
  width: 100%;
  border-collapse: collapse;
}

.noc-table thead th {
  background: #16222f;
  color: #8fa1b6;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.noc-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.noc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.noc-table td {
  padding: 0.42rem 0.75rem;
  vertical-align: middle;
  height: 34px;
}

.log-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.pill-start {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.pill-stop {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.pill-login-reject {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.pill-unknown {
  background: rgba(255, 255, 255, 0.07);
  color: #9fb0c5;
  border-color: rgba(255, 255, 255, 0.14);
}

.noc-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #94a6ba;
  white-space: nowrap;
}

.noc-user {
  color: #fff;
  font-weight: 500;
  font-size: 0.86rem;
  white-space: nowrap;
}

.noc-ip {
  white-space: nowrap;
}

.noc-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-right: 0.3rem;
}

.noc-tag.tag-mac {
  color: #67e8f9;
  opacity: 0.85;
}

.noc-details {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #aab8c9;
}

.noc-actions {
  text-align: right;
}

.noc-copy {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa1b6;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0;
}

.noc-copy:hover {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.noc-copy.copied {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
}

.noc-cell-error {
  color: #fbbf24;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem !important;
}

/* Ajustes de densidade no mobile */
@media (max-width: 768px) {
  .log-stats .log-metric {
    padding: 0.85rem 0.9rem;
  }

  .metric-spark {
    display: none;
  }

  .noc-details {
    max-width: 180px;
  }

  .page-logs .nav__search {
    max-width: none;
  }
}

/* ---------- 20. VLANs (NOC) ---------- */
.page-vlans .nav__search {
  max-width: 20rem;
  flex: 0 1 20rem;
}

/* Topbar desktop tem 80px (nav = header-height + 2rem); o body precisa acompanhar
   para o conteúdo não ficar por trás da topbar fixa. */
@media screen and (min-width: 1118px) {
  body.page-vlans {
    padding-top: calc(var(--header-height) + 2rem);
  }
}

.vlan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.vlan-metric.filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 23, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e6edf7;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.vlan-metric[data-filter="all"] {
  --acc: 34, 211, 238;
}

.vlan-metric[data-filter="online"] {
  --acc: 16, 185, 129;
}

.vlan-metric[data-filter="offline"] {
  --acc: 245, 158, 11;
}

.vlan-metric.filter-btn:hover {
  border-color: rgba(var(--acc), 0.45);
  transform: translateY(-3px);
}

.vlan-metric.filter-btn:focus-visible {
  outline: 2px solid rgba(var(--acc), 0.7);
  outline-offset: 2px;
}

.vlan-metric.filter-btn.active {
  border-color: rgba(var(--acc), 0.85);
  background: linear-gradient(180deg, rgba(var(--acc), 0.1), rgba(13, 17, 23, 0.55));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(var(--acc), 0.55), 0 0 26px -8px rgba(var(--acc), 0.75);
}

.vlan-metric .metric-icon {
  background: rgba(var(--acc), 0.14);
  color: rgb(var(--acc));
}

.vlan-metric.filter-btn.active .metric-icon {
  background: rgba(var(--acc), 0.2);
  box-shadow: 0 0 14px -4px rgba(var(--acc), 0.8);
}

.vlan-metric .metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.vlan-metric .metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--acc));
}

.vlan-metric .metric-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.vlan-metric .metric-sub {
  font-size: 0.68rem;
  color: #8fa1b6;
}

/* Linha de controle */
.vlans-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.toolbar-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem;
  min-width: 0;
}

.toolbar-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #e6edf7;
}

.toolbar-title i {
  color: #22d3ee;
  font-size: 1.05rem;
}

.toolbar-count {
  font-size: 0.74rem;
  color: #8fa1b6;
  white-space: nowrap;
}

.toolbar-count b {
  color: #e6edf7;
  font-weight: 700;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.toolbar-status {
  font-size: 0.72rem;
  color: #8fa1b6;
  white-space: nowrap;
}

.vlans-toolbar .view-controls {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.vlans-toolbar .view-btn {
  width: 30px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #8fa1b6;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vlans-toolbar .view-btn:hover {
  color: #e6edf7;
  background: rgba(255, 255, 255, 0.07);
}

.vlans-toolbar .view-btn.active {
  background: rgba(34, 211, 238, 0.14);
  color: #22d3ee;
  box-shadow: none;
}

.page-vlans .refresh-btn {
  width: 32px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a6ba;
  border-radius: 8px;
  font-size: 0.8rem;
}

.page-vlans .refresh-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  transform: rotate(180deg);
}

/* Lista de VLANs (accordion densa) */
.vlans-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.7rem;
  margin-bottom: 24px;
}

.vlans-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 24px;
}

.vlan-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vlan-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.vlan-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vlan-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.vlan-ident {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.vlan-icon {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  font-size: 0.95rem;
}

.vlan-name {
  font-size: 0.87rem;
  font-weight: 700;
  color: #e6edf7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vlan-tag {
  flex-shrink: 0;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fa1b6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.vlan-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.vlan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.vlan-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vlan-pill.pill-online {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
}

.vlan-pill.pill-online .pill-dot {
  background: #10b981;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.9);
}

.vlan-pill.pill-offline {
  color: #f87171;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.32);
}

.vlan-pill.pill-offline .pill-dot {
  background: #f43f5e;
  box-shadow: 0 0 7px rgba(244, 63, 94, 0.75);
}

.vlan-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.vlan-actions .btn-edit-vlan {
  width: 28px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #94a6ba;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vlan-actions .btn-edit-vlan:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
  color: #22d3ee;
  transform: none;
  box-shadow: none;
}

.vlan-chevron {
  color: #64748b;
  font-size: 1.15rem;
  transition: transform 0.25s ease, color 0.2s ease;
}

.vlan-header:hover .vlan-chevron {
  color: #94a6ba;
}

.vlan-chevron.fa-rotate-180 {
  transform: rotate(180deg);
}

.vlan-content {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.vlan-content.show {
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: auto;
}

.vlan-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.vlan-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* Subtabela de clientes (alta densidade) */
.clients-table {
  margin: 0;
  background: transparent;
  color: #cfd9e6;
  border-color: rgba(255, 255, 255, 0.05);
}

.clients-table thead th {
  background: rgba(255, 255, 255, 0.03);
  color: #8fa1b6;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.42rem 0.7rem;
  white-space: nowrap;
}

.clients-table td {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  height: 34px;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.05);
}

.clients-table tbody tr {
  transition: background 0.15s ease;
}

.clients-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.clients-table tbody tr.offline td {
  color: #64748b;
}

.clients-table .cell-client {
  color: #e6edf7;
}

.clients-table tr.offline .cell-client {
  color: #64748b;
}

.clients-table .status-indicator.status-online {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.clients-table .status-indicator.status-offline {
  background: #f43f5e;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.55);
}

.clients-table .th-action,
.clients-table .cell-action {
  text-align: right;
  width: 60px;
}

.btn-cut-client {
  width: 28px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #94a6ba;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cut-client:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.btn-cut-client:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Estado vazio */
.page-vlans .empty-state {
  color: #8fa1b6;
}

.page-vlans .empty-state h3 {
  color: #e6edf7;
}

.page-vlans .empty-state p {
  color: #8fa1b6;
}

.page-vlans .loading-container {
  padding: 40px 20px;
}

.page-vlans .loading-text {
  color: #8fa1b6;
}

/* Ajustes mobile */
@media (max-width: 980px) {
  .vlan-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vlan-metrics {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .vlan-metric.filter-btn {
    padding: 0.7rem 0.85rem;
  }

  .vlan-metric .metric-value {
    font-size: 1.3rem;
  }

  .vlans-grid {
    grid-template-columns: 1fr;
  }

  .page-vlans .nav__search {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .vlans-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-right {
    width: 100%;
    justify-content: flex-end;
  }

  .vlan-header {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .vlan-ident {
    flex: 1 1 auto;
  }

  .vlan-pills {
    order: 3;
  }

  .vlan-tag {
    display: none;
  }
}
