/* ==========================================================================
   MAIS INTERNET — SISTEMA ENTERPRISE DE GESTÃO ACS (TR-069)
   Design System: Dark NOC High-End & Modern Responsive Interface
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-main: #0a0e17;
  --bg-surface: #111726;
  --bg-card: #151d30;
  --bg-card-hover: #1c2742;
  --bg-card-active: #223052;
  --border-subtle: #1e293b;
  --border-glow: #2a3a5c;
  --border-focus: #0284c7;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  --brand-primary: #0284c7;
  --brand-secondary: #0ea5e9;
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);

  --status-online: #10b981;
  --status-online-glow: rgba(16, 185, 129, 0.25);
  --status-recent: #f59e0b;
  --status-recent-glow: rgba(245, 158, 11, 0.25);
  --status-offline: #ef4444;
  --status-offline-glow: rgba(239, 68, 68, 0.25);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   LAYOUT PRINCIPAL: SIDEBAR + MAIN CONTENT
   ========================================================================== */

#app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: width var(--transition-normal);
}

.sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  height: 42px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.25));
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}


/* Navegação da Sidebar */
.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-item.active {
  background-color: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: #38bdf8;
}

.nav-item .nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

.nav-item.active .nav-count {
  background: #0284c7;
  color: #fff;
}

/* Rodapé da Sidebar */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.erp-link {
  font-size: 11px;
  color: var(--brand-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.erp-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (MAIN AREA)
   ========================================================================== */

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-main);
  position: relative;
}

/* Topbar */
.app-topbar {
  height: 70px;
  padding: 0 32px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clock-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display);
}

.clock-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.clock-date {
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.topbar-btn.refreshing svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   CONTEÚDO DAS VIEWS / ABAS
   ========================================================================== */

.content-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.view-section {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.25s ease-in-out;
}

.view-section.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CARDS DE KPI ASSERTIVOS E OVERVIEW (NOC MAIS INTERNET)
   ========================================================================== */

.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card-rich {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.kpi-card-rich:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.kpi-rich-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-rich-top .kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-rich-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.kpi-value-large {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.kpi-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.kpi-badge-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-badge-pill.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.kpi-badge-pill.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.kpi-badge-pill.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-badge-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.kpi-rich-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.kpi-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.kpi-progress-bar.green {
  background: linear-gradient(90deg, #10b981, #059669);
}

.kpi-progress-bar.blue {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.kpi-progress-bar.cyan {
  background: linear-gradient(90deg, #22d3ee, #0891b2);
}

.kpi-progress-bar.emerald {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.kpi-progress-bar.purple {
  background: linear-gradient(90deg, #c084fc, #7e22ce);
}

/* Ícones de KPI */
.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.kpi-blue { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }
.kpi-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.kpi-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.kpi-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kpi-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* ==========================================================================
   PAINÉIS ANALÍTICOS (ROW 2) E OPERACIONAIS (ROW 3)
   ========================================================================== */

.overview-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.overview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.overview-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-card-icon {
  font-size: 16px;
}

.overview-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.overview-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Row 3: Grid Operacional (Incident Radar + Live Feed) */
.overview-operational-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .overview-operational-grid {
    grid-template-columns: 1fr;
  }
}

/* Badge Live Pulse */
.pulse-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  animation: statusPulse 1.5s infinite;
}

/* Radar de Incidentes */
.incident-radar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid #f87171;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.incident-radar-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-left-color: #ef4444;
  transform: translateX(3px);
}

.incident-radar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.incident-radar-client {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.incident-radar-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

/* Live Feed TR-069 */
.live-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background var(--transition-fast);
}

.live-feed-item:hover {
  background: rgba(30, 41, 59, 0.6);
}

.live-event-badge {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.live-event-badge.periodic {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.live-event-badge.bootstrap {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-event-badge.change {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Barra de Atalhos Rápidos da Engenharia */
.overview-quick-links-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.overview-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.overview-link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.overview-link-btn .link-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.overview-link-btn .link-text {
  display: flex;
  flex-direction: column;
}

.overview-link-btn .link-text strong {
  font-size: 13px;
  color: #ffffff;
}

.overview-link-btn .link-text span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ==========================================================================
   PAINEL DE BUSCA E CONTROLES
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}

.search-box-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 540px;
}

.search-box-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

.view-mode-toggle {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 3px;
}

.view-mode-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.view-mode-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   VISUALIZAÇÃO EM TABELA CORPORATIVA DE ALTA DENSIDADE (MODO PADRÃO)
   ========================================================================== */

.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table th {
  background: #0b1120;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: all 0.15s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.data-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.75) !important;
  transform: translateX(2px);
}

.data-table tbody tr.row-online:hover {
  border-left-color: #10b981;
}

.data-table tbody tr.row-recent:hover {
  border-left-color: #fbbf24;
}

.data-table tbody tr.row-offline:hover {
  border-left-color: #64748b;
}

/* Avatar do Cliente */
.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.client-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.client-login-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.client-sub-text {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

/* Badges de Tecnologia & Rádio */
.badge-tech {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-tech.wifi6 {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-tech.wifi5 {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-tech.gpon {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Pílula IP WAN com Botão Copiar */
.wan-ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all var(--transition-fast);
}

.wan-ip-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-copy-ip {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-copy-ip:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
}

/* Status Badges com Glow e Pulsing */
@keyframes statusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.online .status-indicator-dot {
  background-color: #10b981;
  animation: statusPulse 2s infinite;
}

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

.status-badge.recent .status-indicator-dot {
  background-color: #fbbf24;
}

.status-badge.offline {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.offline .status-indicator-dot {
  background-color: #64748b;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   VISUALIZAÇÃO EM TIRAS HORIZONTAIS COMPACTAS (SMART STRIPS)
   ========================================================================== */

.cpe-strips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 12px;
}

.cpe-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  border-left: 4px solid #64748b;
}

.cpe-strip.strip-online {
  border-left-color: #10b981;
}

.cpe-strip.strip-recent {
  border-left-color: #fbbf24;
}

.cpe-strip.strip-offline {
  border-left-color: #475569;
}

.cpe-strip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-secondary);
  border-left-color: var(--brand-secondary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.cpe-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1.2;
}

.cpe-strip-mid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.cpe-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   PÁGINA DEDICADA DE DETALHES DO APARELHO (VIEW-DEVICE-DETAIL)
   ========================================================================== */

.device-page-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-back {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  color: #fff;
  transform: translateX(-2px);
}

.device-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bc-root {
  color: var(--text-muted);
}

.bc-sep {
  color: var(--border-glow);
}

.bc-item {
  color: var(--text-secondary);
}

.bc-active {
  color: #fff;
  font-weight: 600;
}

/* Hero Banner da CPE */
.device-hero-card {
  background: linear-gradient(135deg, rgba(21, 29, 48, 0.95) 0%, rgba(17, 23, 38, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.device-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-client-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-device-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-model-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.id-pill {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  transition: all var(--transition-fast);
}

.id-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.id-pill-label {
  color: #94a3b8;
  font-weight: 500;
}

.id-pill-val {
  color: #f8fafc;
  font-weight: 600;
}

.id-pill-val.highlight {
  color: #38bdf8;
}

.id-pill-val.mono {
  font-family: 'JetBrains Mono', monospace;
}

.btn-icon-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.btn-icon-copy svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
}

.btn-icon-copy:hover {
  color: var(--brand-secondary);
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 4 Mini-KPIs no Topo de Visão Geral & Hardware */
.device-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .device-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.d-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
}

.d-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.d-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.d-kpi-body {
  min-width: 0;
  flex: 1;
}

.d-kpi-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.d-kpi-value {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid de duas colunas: Hardware vs Rádios/Rede */
.device-details-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

@media (max-width: 1200px) {
  .device-details-split {
    grid-template-columns: 1fr;
  }
}

.prop-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.prop-pill-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  transition: border-color var(--transition-fast);
}

.prop-pill-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.prop-pill-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prop-pill-val {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  margin-top: 3px;
  word-break: break-word;
}

.prop-pill-val.highlight {
  color: #38bdf8;
}

.prop-pill-val.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Quick Wi-Fi Boxes */
.wifi-quick-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wifi-quick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.wifi-quick-status {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

.wifi-quick-ssid {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0;
}

.wifi-quick-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

/* Quick Navigation Pills */
.quick-nav-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .quick-nav-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quick-nav-btn {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-nav-btn:hover {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.quick-nav-btn svg {
  width: 14px;
  height: 14px;
}

/* Estilos Globais para cpe-meta-grid (Aba 4 e outras abas) */
.cpe-meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.cpe-meta-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cpe-meta-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.cpe-meta-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
}

.cpe-meta-val.mono {
  font-family: 'JetBrains Mono', monospace;
}

.btn-sgp {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  text-decoration: none;
}

.btn-sgp:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #fff;
}

/* Abas Horizontais da Página */
.device-page-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 0 12px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow-x: auto;
}

.dpage-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dpage-tab-btn svg {
  width: 16px;
  height: 16px;
}

.dpage-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.dpage-tab-btn.active {
  color: var(--brand-secondary);
  border-bottom-color: var(--brand-secondary);
  font-weight: 600;
  background: rgba(2, 132, 199, 0.06);
}

/* Container do Conteúdo das Abas */
.device-page-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px;
  min-height: 480px;
}

.dpage-tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.25s ease-out;
}

.dpage-tab-pane.active {
  display: flex;
}

.card-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.qoe-score-card.full-width {
  width: 100%;
}

/* Ações Rápidas do Aparelho */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

/* Card de Diagnóstico Amigável (Regra SAC) */
.friendly-sac-card {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sac-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sac-instruction {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  border-color: var(--status-online);
}

.toast.error {
  border-color: var(--status-offline);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 900px) {
  .app-sidebar {
    width: 70px;
    min-width: 70px;
  }
  .brand-title-wrap, .nav-item span, .nav-count, .nav-section-title, .sidebar-footer {
    display: none;
  }
  .sidebar-header {
    justify-content: center;
    padding: 16px;
  }
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
}

/* ==========================================================================
   WI-FI DOCTOR, QOE SCORE & DIAGNÓSTICO REMOTO
   ========================================================================== */

.qoe-score-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qoe-score-card.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.qoe-score-card.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.qoe-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qoe-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.qoe-status-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.qoe-badge {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.qoe-score-card.warning .qoe-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.qoe-score-card.danger .qoe-badge {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.qoe-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qoe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-in-out;
}

.qoe-score-card.warning .qoe-progress-fill {
  background: linear-gradient(90deg, #0ea5e9, #f59e0b);
}

.qoe-score-card.danger .qoe-progress-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.qoe-explanation {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dispositivos Conectados */
.connected-devices-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.device-client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}

.device-client-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.client-info-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-names {
  display: flex;
  flex-direction: column;
}

.client-hostname {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.client-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.client-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.client-signal-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-bar {
  width: 3px;
  background: #334155;
  border-radius: 1px;
}

.signal-bar.active-green { background: #10b981; }
.signal-bar.active-yellow { background: #f59e0b; }
.signal-bar.active-red { background: #ef4444; }

/* Diagnósticos Remotos */
.diag-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.ping-results-box {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease-in-out;
}

.ping-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.ping-lbl {
  color: var(--text-muted);
}

.ping-val {
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   OTIMIZADOR DE CANAIS & INTERFERÊNCIA ESPECTRAL
   ========================================================================== */
.channel-scan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.channel-scan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.channel-scan-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.channel-scan-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.channel-recom-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recom-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.recom-msg {
  font-size: 12.5px;
  color: #f1f5f9;
  line-height: 1.5;
}

.recom-action-wrap {
  margin-top: 4px;
}

/* Gráfico de Espectro de Canais */
.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 8px 10px 8px;
  height: 140px;
  align-items: flex-end;
}

.spectrum-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.spectrum-bar-wrap {
  width: 100%;
  height: 85px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.spectrum-bar {
  width: 80%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease, background-color 0.3s ease;
}

.spectrum-bar.clean {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.spectrum-bar.moderate {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.spectrum-bar.saturated {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.spectrum-chan-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.spectrum-chan-num.optimal {
  color: #10b981;
  font-weight: 800;
}

.spectrum-chan-num.current {
  color: #38bdf8;
  font-weight: 800;
}

.spectrum-badge-tag {
  position: absolute;
  top: -12px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

.spectrum-badge-tag.tag-current {
  background: #0284c7;
  color: #fff;
}

.spectrum-badge-tag.tag-optimal {
  background: #10b981;
  color: #fff;
}

/* Redes Vizinhas */
.neighbor-list-box {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.neighbor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.neighbor-row:last-child {
  border-bottom: none;
}

.neighbor-ssid {
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.neighbor-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   REDESIGN DA ABA DE ALERTAS & FALHAS (FOCO NO CLIENTE)
   ========================================================================== */
.fault-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fault-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.fault-kpi-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fault-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.fault-kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 2px 0;
  line-height: 1.1;
}

.fault-kpi-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Barra de Filtros e Busca */
.faults-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.faults-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 320px;
  flex: 1;
}

.faults-search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 12.5px;
  width: 100%;
  outline: none;
}

.faults-search-box input::placeholder {
  color: #64748b;
}

.faults-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.faults-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faults-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.faults-filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Estilos de Células da Tabela */
.fault-client-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fault-client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.fault-client-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fault-client-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.fault-device-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fault-model-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fault-serial-wrap {
  font-family: monospace;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-tag.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-tag.alert {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-tag.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-tag.info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-code {
  font-family: monospace;
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-channel {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
}

.btn-open-device {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-open-device:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MATRIZ DE HOMOLOGAÇÃO & COMPATIBILIDADE TR-069
   ========================================================================== */
.homolog-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.homolog-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.homolog-kpi-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.homolog-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.homolog-kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 2px 0;
  line-height: 1.1;
}

.homolog-kpi-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.homolog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.homolog-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 320px;
  flex: 1;
}

.homolog-search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 12.5px;
  width: 100%;
  outline: none;
}

.homolog-search-box input::placeholder {
  color: #64748b;
}

.homolog-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.homolog-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.homolog-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.homolog-filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Grade de Cards */
.homolog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.homolog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.homolog-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.homolog-card.in-fleet {
  border-color: rgba(56, 189, 248, 0.28);
}

.homolog-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.homolog-model-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.homolog-score-badge {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}

.homolog-progress-wrap {
  margin: 14px 0 16px 0;
}

.homolog-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.homolog-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.homolog-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
  background: rgba(10, 14, 23, 0.4);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.homolog-pillar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.homolog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 12px;
}

/* Modais */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12.5px;
}

.checklist-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.checklist-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   COCKPIT 360° REDESIGN EXTENSIONS (TABS 2 - 7)
   ========================================================================== */

/* Topologia da Rede Strip (Aba 4) */
.network-topology-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  gap: 8px;
  overflow-x: auto;
}

.topo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 85px;
  flex: 1;
}

.topo-icon {
  font-size: 24px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.topo-label {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.topo-sub {
  font-size: 10.5px;
  color: #38bdf8;
  margin-top: 2px;
  font-family: var(--font-mono, monospace);
}

.topo-arrow {
  color: #0284c7;
  font-size: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  user-select: none;
}

/* Bancada de Testes Rápidos Ping (Aba 5) */
.ping-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ping-quick-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ping-quick-card:hover {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ping-quick-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ping-quick-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 4px;
}

.ping-quick-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.ping-quick-btn {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.ping-quick-card:hover .ping-quick-btn {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Pílulas de Filtros TR-069 (Aba 6) */
.param-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.p-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.p-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.p-pill-btn.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284c7;
  color: #38bdf8;
  font-weight: 600;
}

/* Checklist SAC e WhatsApp Card (Aba 7) */
.sac-checklist-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sac-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sac-check-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.sac-check-item input[type="checkbox"] {
  accent-color: #10b981;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
}

.sac-check-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sac-check-text strong {
  font-size: 13px;
  color: #f8fafc;
}

.sac-check-text span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.whatsapp-msg-card {
  background: #0b141a;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-msg-bubble {
  background: #005c4b;
  color: #e9edef;
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 12px 12px 0 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
}

/* ==========================================================================
   🔒 TELA DE LOGIN DARK NOC — MAIS INTERNET ACS (ENTERPRISE)
   ========================================================================== */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(ellipse at 50% 15%, #151f38 0%, #070b13 70%, #04060a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.login-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.14) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: loginGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes loginGlowPulse {
  0% { transform: scale(0.9) translate(-20px, -20px); opacity: 0.7; }
  100% { transform: scale(1.1) translate(20px, 20px); opacity: 1; }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 90, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: all 0.3s ease;
}

.login-card.shake {
  animation: loginShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes loginShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.login-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.login-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-text-orange {
  color: #FF5A00;
}

.brand-text-white {
  color: #FFFFFF;
}

.brand-badge-acs {
  background: linear-gradient(135deg, #FF5A00 0%, #ea580c 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-left: 2px;
  box-shadow: 0 2px 8px rgba(255, 90, 0, 0.4);
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.login-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #34d399;
}

.login-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

.login-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.login-alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #ef4444;
}

#form-acs-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  stroke: #64748b;
  pointer-events: none;
  transition: stroke 0.2s ease;
}

.login-input {
  width: 100%;
  background: rgba(8, 13, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #FF5A00;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.2);
  background: rgba(8, 13, 23, 0.95);
}

.login-input:focus + .login-input-icon,
.login-input:focus ~ .login-input-icon {
  stroke: #FF5A00;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: #cbd5e1;
}

.btn-toggle-pwd svg {
  width: 18px;
  height: 18px;
}

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, #FF5A00 0%, #ea580c 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(255, 90, 0, 0.35);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-login-submit:hover {
  background: linear-gradient(135deg, #ff6b1a 0%, #f97316 100%);
  box-shadow: 0 6px 24px rgba(255, 90, 0, 0.48);
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-login-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-login-submit:hover svg {
  transform: translateX(3px);
}

.login-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* ==========================================================================
   👤 WIDGET DE OPERADOR & BOTÃO DE LOGOUT NA TOPBAR
   ========================================================================== */
.user-session-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 5px 10px 5px 6px;
}

.user-avatar-initial {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF5A00 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 90, 0, 0.35);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.user-role {
  font-size: 10px;
  color: #94a3b8;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.btn-logout svg {
  width: 14px;
  height: 14px;
}

