/* CoreFlow Infra — Main CSS */

:root,
[data-theme="dracula"] {
  --bg-primary: #282a36;
  --bg-secondary: #21222c;
  --bg-tertiary: #44475a;
  --bg-card: #2d2f3e;
  --bg-hover: #373949;
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --text-muted: #44475a;
  --accent-primary: #bd93f9;
  --accent-secondary: #50fa7b;
  --accent-danger: #ff5555;
  --accent-warning: #f1fa8c;
  --accent-info: #8be9fd;
  --accent-pink: #ff79c6;
  --accent-orange: #ffb86c;
  --border-color: #44475a;
  --border-radius: 0.5rem;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 30px rgba(189,147,249,0.15);
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #1c2128;
  --bg-hover: #2d333b;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent-primary: #58a6ff;
  --accent-secondary: #3fb950;
  --accent-danger: #f85149;
  --accent-warning: #e3b341;
  --accent-info: #79c0ff;
  --border-color: #30363d;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 30px rgba(88,166,255,0.15);
}

[data-theme="futuristic"] {
  --bg-primary: #000510;
  --bg-secondary: #000d1a;
  --bg-tertiary: #001a33;
  --bg-card: #001020;
  --bg-hover: #002040;
  --text-primary: #00ffff;
  --text-secondary: #00bcd4;
  --text-muted: #006080;
  --accent-primary: #00e5ff;
  --accent-secondary: #00ff41;
  --accent-danger: #ff0040;
  --accent-warning: #ffea00;
  --accent-info: #40c4ff;
  --border-color: #003355;
  --shadow: 0 0 20px rgba(0,229,255,0.2);
  --shadow-hover: 0 0 40px rgba(0,229,255,0.4);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #eaeef2;
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #9ca3af;
  --accent-primary: #0969da;
  --accent-secondary: #1a7f37;
  --accent-danger: #d1242f;
  --accent-warning: #9a6700;
  --accent-info: #0550ae;
  --border-color: #d0d7de;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(9,105,218,0.15);
}

[data-theme="glass"] {
  --bg-primary: #0f0f23;
  --bg-secondary: rgba(255,255,255,0.03);
  --bg-tertiary: rgba(255,255,255,0.08);
  --bg-card: rgba(255,255,255,0.05);
  --bg-hover: rgba(255,255,255,0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --accent-primary: #a78bfa;
  --accent-secondary: #34d399;
  --accent-danger: #f87171;
  --accent-warning: #fbbf24;
  --accent-info: #60a5fa;
  --border-color: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 32px rgba(167,139,250,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-secondary); border-radius: 3px; }

/* ── Links ── */
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-info); }

/* ── Cards ── */
.if-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.if-card:hover { box-shadow: var(--shadow-hover); }

/* ── Auth pages ── */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 1rem;
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo h1 {
  color: var(--accent-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-logo span { color: var(--accent-secondary); }

/* ── Form controls themed ── */
.form-control, .form-select {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 0.375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(189,147,249,0.25) !important;
  outline: none;
  background-color: var(--bg-hover) !important;
}

.form-control::placeholder { color: var(--text-secondary); }

.form-label { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }

/* ── Navbar ── */
.if-navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.if-navbar-brand {
  color: var(--accent-primary) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

.if-navbar-brand span { color: var(--accent-secondary); }

/* ── Sidebar ── */
.if-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  width: 220px;
  min-height: calc(100vh - 57px);
  padding: 1rem 0;
  flex-shrink: 0;
  transition: width var(--transition);
  overflow: hidden;
}

.if-sidebar .nav-link {
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.if-sidebar .nav-link:hover,
.if-sidebar .nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-hover);
  border-left: 3px solid var(--accent-primary);
}

/* ── Sidebar recolhida ── */
.if-sidebar-toggle {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0.6rem 0.5rem auto;
  transition: var(--transition);
  flex-shrink: 0;
}

.if-sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
}

.if-sidebar-toggle i { transition: transform var(--transition); }

.if-sidebar.collapsed { width: 64px; }
.if-sidebar.collapsed .if-sidebar-toggle { align-self: center; margin: 0 auto 0.5rem; }
.if-sidebar.collapsed .if-sidebar-toggle i { transform: rotate(180deg); }
.if-sidebar.collapsed .if-nav-label { display: none; }
.if-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.6rem 0;
  gap: 0;
}
.if-sidebar.collapsed .nav-link.active { border-left: none; border-right: 3px solid var(--accent-primary); }

/* ── Layout principal ── */
.if-layout { display: flex; flex: 1; }

.if-main { flex: 1; padding: 1.5rem; overflow-x: hidden; min-width: 0; }
/* ── Theme switcher ── */
.theme-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.theme-btn:hover, .theme-btn.active { border-color: var(--text-primary); transform: scale(1.15); }
.theme-btn[data-theme="dracula"]    { background: #bd93f9; }
.theme-btn[data-theme="dark"]       { background: #58a6ff; }
.theme-btn[data-theme="futuristic"] { background: #00e5ff; }
.theme-btn[data-theme="light"]      { background: #f6f8fa; border-color: #d0d7de; }
.theme-btn[data-theme="glass"]      { background: #a78bfa; }

/* ── Footer ── */
.if-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  text-align: center;
  background: var(--bg-secondary);
}

.if-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-primary);
  opacity: 0.6;
  line-height: 1.6;
}

/* ── Em Breve ── */
.em-breve {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(189,147,249,0.1), rgba(80,250,123,0.08));
  border: 1px solid var(--accent-primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  animation: pulse-border 2.5s ease-in-out infinite;
}

.em-breve-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
  animation: spin-slow 4s linear infinite;
  flex-shrink: 0;
}

.em-breve-titulo {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
}

.em-breve-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.em-breve-percentual {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 0.3px;
}

.em-breve-progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
  margin: 0.4rem 0 0.3rem;
}

.em-breve-progress-fill {
  --progresso: 0%;
  position: relative;
  height: 100%;
  width: var(--progresso);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  animation: em-breve-preencher 1.2s ease-out forwards;
  transform-origin: left;
}

.em-breve-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: em-breve-brilho 2.4s ease-in-out infinite;
}

@keyframes em-breve-preencher {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes em-breve-brilho {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189,147,249,0); }
  50%       { box-shadow: 0 0 0 4px rgba(189,147,249,0.15); }
}

@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* ── Icon button (navbar) ── */
.if-icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}
.if-icon-btn:hover { background: var(--bg-hover); color: var(--accent-primary); }

/* ── User button ── */
.if-btn-user {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.if-btn-user:hover,
.if-btn-user:focus { background: var(--bg-hover); color: var(--accent-primary); border-color: var(--accent-primary); }

/* ── Dropdown themed ── */
.if-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  min-width: 180px;
}
.if-dropdown-header {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  display: block;
}
.if-dropdown-item {
  color: var(--text-primary) !important;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background var(--transition), color var(--transition);
}
.if-dropdown-item:hover { background: var(--bg-hover) !important; color: var(--accent-primary) !important; }
.if-dropdown-danger:hover { color: var(--accent-danger) !important; }
.if-divider { border-color: var(--border-color) !important; margin: 0.25rem 0; }

/* ── Offcanvas themed ── */
.if-offcanvas {
  background: var(--bg-secondary) !important;
  border-right: 1px solid var(--border-color) !important;
  width: 220px !important;
}
.if-offcanvas-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

/* ── Page header ── */
.if-page-header { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.if-page-icon   { font-size: 1.5rem; color: var(--accent-primary); }
.if-page-title  { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.if-page-subtitle { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Dashboard — Cards de estatísticas ── */
.if-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.if-stat-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-primary); }

.if-stat-icon { font-size: 1.75rem; flex-shrink: 0; }
.if-stat-num  { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.if-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ── Dashboard — Delta (comparativo coleta anterior) ── */
.if-delta {
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}
.if-delta-up      { color: var(--accent-danger); }
.if-delta-down    { color: var(--accent-secondary); }
.if-delta-neutral { color: var(--text-muted); }

/* ── Dashboard — Barra de progresso mini ── */
.if-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  overflow: hidden;
  min-width: 60px;
  flex: 1;
}
.if-bar-fill   { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.if-bar-ok     { background: var(--accent-secondary); }
.if-bar-atencao{ background: var(--accent-warning); }
.if-bar-critico{ background: var(--accent-danger); }

/* ── Dashboard — Valor de métrica ── */
.if-metric-val  { font-size: 0.8rem; font-weight: 600; min-width: 32px; }
.if-val-ok      { color: var(--accent-secondary); }
.if-val-atencao { color: var(--accent-warning); }
.if-val-critico { color: var(--accent-danger); }
.if-sem-dados   { color: var(--text-muted); }

/* ── Dashboard — Dot de status ── */
.if-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.if-dot-ok      { background: var(--accent-secondary); box-shadow: 0 0 6px var(--accent-secondary); }
.if-dot-atencao { background: var(--accent-warning);   box-shadow: 0 0 6px var(--accent-warning); }
.if-dot-critico {
  background: var(--accent-danger);
  box-shadow: 0 0 6px var(--accent-danger);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Dashboard — Tabela ── */
.if-table-header { border-bottom: 1px solid var(--border-color); }

.if-table { border-collapse: collapse; }
.if-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  background: var(--bg-secondary);
}
.if-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.875rem;
}
.if-table tbody tr:last-child td { border-bottom: none; }
.if-table tbody tr:hover td { background: var(--bg-hover); }

/* ── Botões extras ── */
.if-btn-primary {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  transition: opacity var(--transition);
}
.if-btn-primary:hover { opacity: 0.85; color: var(--bg-primary); }

.if-btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  padding: 0.4rem 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.if-btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.if-btn-danger {
  background: transparent;
  border: 1px solid rgba(255,85,85,.4);
  color: var(--accent-danger);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  padding: 0.4rem 0.65rem;
  transition: background var(--transition), border-color var(--transition);
}
.if-btn-danger:hover { background: rgba(255,85,85,.12); border-color: var(--accent-danger); color: var(--accent-danger); }

/* ── Visão de Ambiente — Breadcrumb ── */
.if-breadcrumb {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.if-breadcrumb:hover   { color: var(--accent-primary); }
.if-breadcrumb-sep     { font-size: 0.75rem; color: var(--text-muted); margin: 0 0.35rem; }
.if-breadcrumb-current { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Abas (nav-tabs) ── */
.if-tabs {
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.25rem;
}
.if-tabs .nav-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  transition: var(--transition);
}
.if-tabs .nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-color);
}
.if-tabs .nav-link.active {
  color: var(--accent-primary);
  background: transparent;
  border-bottom-color: var(--accent-primary);
}

/* ── Card genérico ── */
.if-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* ── Título de seção dentro do card ── */
.if-card-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* ── Badges de serviços ── */
.if-badge-servico {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.if-badge-servico-ok   { border-color: var(--accent-secondary); color: var(--accent-secondary); }
.if-badge-servico-erro { border-color: var(--accent-danger);    color: var(--accent-danger); }

/* ── Badge de operação DDL ── */
.if-badge-op {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(189,147,249,0.12);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Badge de nível de erro ── */
.if-badge-nivel {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.if-badge-nivel-error  { background: rgba(255,85,85,.15);   color: var(--accent-danger); }
.if-badge-nivel-fatal  { background: rgba(255,85,85,.25);   color: var(--accent-danger); }
.if-badge-nivel-panic  { background: rgba(255,85,85,.35);   color: var(--accent-danger); }
.if-badge-nivel-warning{ background: rgba(241,250,140,.1);  color: var(--accent-warning); }

/* ── Badge de alertas na navbar ── */
.if-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.if-nav-badge:hover { opacity: 0.8; }
.if-nav-badge-critico {
  background: rgba(255,85,85,.18);
  color: var(--accent-danger);
  border: 1px solid rgba(255,85,85,.35);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.if-nav-badge-atencao {
  background: rgba(241,250,140,.12);
  color: var(--accent-warning);
  border: 1px solid rgba(241,250,140,.3);
}

/* ── Link do nome de ambiente na tabela ── */
.if-link-ambiente:hover { color: var(--accent-primary) !important; text-decoration: underline !important; }

/* ── Alertas inline (padrão empresa) ── */
.alert-hf {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-if-danger  { background: rgba(255,85,85,.15);  border: 1px solid var(--accent-danger);    color: var(--accent-danger); }
.alert-if-warning { background: rgba(241,250,140,.12); border: 1px solid var(--accent-warning);   color: var(--accent-warning); }
.alert-if-success { background: rgba(80,250,123,.15);  border: 1px solid var(--accent-secondary); color: var(--accent-secondary); }
.alert-if-info    { background: rgba(139,233,253,.15); border: 1px solid var(--accent-info);      color: var(--accent-info); }

/* ── Select temático ── */
.if-select {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
}
.if-select:focus {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(189,147,249,.2);
}
.if-input {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
}
.if-input:focus {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(189,147,249,.2);
}
.if-input-group-text {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.if-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.if-badge-nivel-critical { background: rgba(255,85,85,.25); color: var(--accent-danger); }
.if-badge-nivel-info     { background: rgba(139,233,253,.15); color: var(--accent-info); }

/* ── Responsivo ── */
@media (max-width: 768px) {
  .if-sidebar { display: none; }
  .auth-box { padding: 1.5rem; }
  .if-main  { padding: 1rem; }
  .if-stat-card { padding: 1rem; }
  .if-stat-num  { font-size: 1.4rem; }
  .if-bar       { min-width: 40px; }
}

/* ── Avatar de Perfil ── */
.if-avatar-wrap { width: 72px; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.if-avatar-preview { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--accent-primary); }
.if-avatar-placeholder { font-size: 72px; line-height: 1; color: var(--text-secondary); }
.if-navbar-avatar { width: 22px; height: 22px; object-fit: cover; border: 1px solid var(--border-color); }

/* ── Manual do Usuário ── */
.manual-conteudo h2 {
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-top: 1.8rem;
}
.manual-conteudo h3 { color: var(--accent-info); margin-top: 1.4rem; }
.manual-conteudo h4 { color: var(--accent-secondary); }
.manual-conteudo table {
  width: 100%; margin: 1rem 0; border-collapse: collapse;
}
.manual-conteudo table th,
.manual-conteudo table td {
  border: 1px solid var(--border-color); padding: 0.5rem 0.75rem;
}
.manual-conteudo table th { background: var(--bg-tertiary); }
.manual-conteudo code {
  background: var(--bg-tertiary); padding: 0.1rem 0.35rem; border-radius: 0.25rem;
}
.manual-conteudo pre {
  background: var(--bg-tertiary); padding: 0.75rem; border-radius: 0.5rem; overflow-x: auto;
}
.manual-conteudo blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem; color: var(--text-secondary);
}
.manual-conteudo hr { border-color: var(--border-color); }
