@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0B1020;
  --bg-soft: #121A2F;
  --card: #0F172A;
  --card-2: #111C33;
  --accent: #4F8CFF;
  --accent-2: #2D6BFF;
  --accent-3: #36D7FF;
  --accent-4: #7B61FF;
  --text: #F5F7FB;
  --muted: #A8B3CF;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --primary: #4F8CFF;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

body.theme-dark {
  --bg: #0B1020;
  --bg-soft: #121A2F;
  --card: #0F172A;
  --card-2: #111C33;
  --accent: #4F8CFF;
  --accent-2: #2D6BFF;
  --accent-3: #36D7FF;
  --accent-4: #7B61FF;
  --text: #F5F7FB;
  --muted: #A8B3CF;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --primary: #4F8CFF;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(900px 420px at 12% 10%, rgba(79,140,255,0.18), transparent 60%),
              radial-gradient(700px 420px at 85% 0%, rgba(54,215,255,0.15), transparent 60%),
              var(--bg);
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}
.container {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(180deg, #050810 0%, #0b1326 100%);
  padding: 10px 16px 24px;
  transition: width .2s ease, padding .2s ease;
  border-right: 1px solid rgba(79,140,255,0.12);
  overflow: visible;
}
.sidebar.collapsed {
  width: 68px;
  padding: 10px 8px 24px;
}
.sidebar.collapsed a { padding: 10px 6px; justify-content: center; }
.sidebar.collapsed h1 { font-size: 0; }
.sidebar h1 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 24px 0;
  color: var(--accent);
}
.sidebar a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.sidebar a:hover {
  background: rgba(79,140,255,0.15);
}
.main {
  flex: 1;
  padding: 24px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.card {
  background: linear-gradient(180deg, rgba(17,24,39,0.9) 0%, rgba(13,20,35,0.95) 100%);
  border: 1px solid rgba(79,140,255,0.12);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(6,10,20,0.55);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.pendente { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge.concluida { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge.em-andamento { background: rgba(54, 215, 255, 0.15); color: var(--accent-3); }
.badge.atrasada { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148,163,184,0.15);
  text-align: left;
}
.text-wrap { white-space: pre-wrap; word-break: break-word; }

.form-group { margin-bottom: 12px; }
.input, select, textarea {
  width: 100%;
  background: rgba(11,18,35,0.65);
  border: 1px solid rgba(79,140,255,0.25);
  color: var(--text);
  padding: 12px;
  border-radius: 14px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
  color-scheme: dark;
}
select option {
  background: #0f172a !important;
  color: #f5f7fb !important;
}
body.theme-dark select option,
body:not(.theme-light) select option {
  background: #0f172a !important;
  color: #f5f7fb !important;
}
.input:focus, select:focus, textarea:focus {
  border-color: rgba(79,140,255,0.6);
  box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}
.btn {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(79,140,255,0.35);
}
.btn:hover { opacity: .9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #111; }
.btn-success { background: var(--success); color: #0b1120; }
.alert { padding: 10px; border-radius: 12px; margin-bottom: 12px; }
.alert.success { background: rgba(34,197,94,0.2); color: var(--success); }
.alert.error { background: rgba(239,68,68,0.2); color: var(--danger); }

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,16,32,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.modal-card {
  background: var(--card);
  border: 1px solid rgba(79,140,255,0.25);
  border-radius: 18px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
}

.banner-expire {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.35);
  color: var(--warning);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.banner-expire .close {
  background: transparent;
  border: 1px solid rgba(245,158,11,.5);
  color: var(--warning);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(168,179,207,0.35);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .container { flex-direction: column; }
  .sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0B1020 0%, #0E162B 100%);
  padding: 24px;
  transition: width .2s ease;
  border-right: 1px solid rgba(79,140,255,0.12);
}
  .sidebar.open { display: block; }
  .main { padding: 16px; }
  .grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: inline-flex; }
}

.auth-body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(900px 420px at 12% 10%, rgba(79,140,255,0.18), transparent 60%),
              radial-gradient(700px 420px at 85% 0%, rgba(54,215,255,0.15), transparent 60%),
              var(--bg);
  color: var(--text);
}.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid rgba(79,140,255,0.22);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(10,14,26,0.35);
}
.auth-brand {
  margin-bottom: 18px;
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 4px;
}
.auth-sub {
  color: var(--muted);
  font-size: 13px;
}
.auth-links {
  margin-top: 14px;
}
.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.brand img {
  max-width: 180px;
  height: auto;
}
.brand-mini {
  width: 36px;
  height: 36px;
  display: none;
}
.brand-full { display: block; }
/* Default: dark sidebar — use white-text logo */
.logo-dark { display: block; }
.logo-light { display: none; }

/* Collapsed sidebar: center icons, no clipping */
.sidebar.collapsed .nav-icon { flex-shrink: 0; }
.sidebar.collapsed a { padding: 8px 4px; gap: 0; }
.sidebar.collapsed .brand img { max-width: 36px; }
.sidebar.collapsed .brand { padding: 0 0 6px; justify-content: center; }
.sidebar.collapsed .brand-full { display: none; }
.sidebar.collapsed .brand-mini { display: block; }

.login-logo {
  width: 220px;
  height: auto;
  margin-bottom: 8px;
}


.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar a::before {
  content: attr(data-icon);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(79,140,255,0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.sidebar .label { display: inline; }
.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .label { display: none; }
.sidebar.collapsed a { justify-content: center; }
.sidebar.collapsed a::before { margin: 0; }

.collapse-handle {
  position: absolute;
  right: -14px;
  top: 120px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(79,140,255,0.25);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(10,14,26,0.35);
}
.collapse-handle::before { content: '<'; font-weight: 700; }
.sidebar.collapsed .collapse-handle::before { content: '>'; font-weight: 700; }


.sidebar a::before { content: none; }
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(79,140,255,0.15);
  display: inline-block;
  mask-size: 18px 18px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background-color: var(--accent);
}

.icon-dashboard { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='14' y='14' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='14' y='14' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/></svg>"); }
.icon-ponto { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 3'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 3'/></svg>"); }
.icon-perfil { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='4'/><path d='M4 20c2.5-3 13.5-3 16 0'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='4'/><path d='M4 20c2.5-3 13.5-3 16 0'/></svg>"); }
.icon-usuarios { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='10' r='3'/><path d='M2 20c2-3 8-3 10 0'/><path d='M12 20c1.2-2 6-2 8 0'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='10' r='3'/><path d='M2 20c2-3 8-3 10 0'/><path d='M12 20c1.2-2 6-2 8 0'/></svg>"); }
.icon-tarefas { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M9 11l2 2 4-4'/><rect x='3' y='4' width='18' height='16' rx='2'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M9 11l2 2 4-4'/><rect x='3' y='4' width='18' height='16' rx='2'/></svg>"); }
.icon-clientes { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='4' width='18' height='14' rx='2'/><path d='M7 8h10'/><path d='M7 12h7'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='4' width='18' height='14' rx='2'/><path d='M7 8h10'/><path d='M7 12h7'/></svg>"); }
.icon-salarios { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 7v10'/><path d='M9 10h6'/><path d='M9 14h6'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 7v10'/><path d='M9 10h6'/><path d='M9 14h6'/></svg>"); }
.icon-jornada { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 12h18'/><path d='M12 3v18'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 12h18'/><path d='M12 3v18'/></svg>"); }
.icon-relatorios { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 4h12l4 4v12H4z'/><path d='M8 13h8'/><path d='M8 9h5'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 4h12l4 4v12H4z'/><path d='M8 13h8'/><path d='M8 9h5'/></svg>"); }
.icon-avisos { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 3a6 6 0 0 0-6 6v4l-2 2h16l-2-2V9a6 6 0 0 0-6-6z'/><path d='M9 19a3 3 0 0 0 6 0'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 3a6 6 0 0 0-6 6v4l-2 2h16l-2-2V9a6 6 0 0 0-6-6z'/><path d='M9 19a3 3 0 0 0 6 0'/></svg>"); }
.icon-meus-avisos { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 8v4'/><path d='M12 16h.01'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M12 8v4'/><path d='M12 16h.01'/></svg>"); }
.icon-pagamentos { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 10h18'/><path d='M7 15h4'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 10h18'/><path d='M7 15h4'/></svg>"); }
.icon-gateways { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='6' r='3'/><path d='M12 4v4'/><path d='M6 19c0-2 1.5-3 3-3h3.5l1.5 1.5H17c.8 0 1.5-.7 1.5-1.5S17.8 14.5 17 14.5h-3.5'/><line x1='4' y1='21' x2='20' y2='21'/><path d='M6 21v-2'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='6' r='3'/><path d='M12 4v4'/><path d='M6 19c0-2 1.5-3 3-3h3.5l1.5 1.5H17c.8 0 1.5-.7 1.5-1.5S17.8 14.5 17 14.5h-3.5'/><line x1='4' y1='21' x2='20' y2='21'/><path d='M6 21v-2'/></svg>"); }
.icon-recorrente { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10'/><path d='M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10'/><path d='M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>"); }
.icon-sair { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M19 4h2v16h-2'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M19 4h2v16h-2'/></svg>"); }
.icon-login { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M19 4h-2v16h2'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M19 4h-2v16h2'/></svg>"); }
.icon-cadastro { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><path d='M2 20c2-3 8-3 10 0'/><path d='M16 11h6'/><path d='M19 8v6'/></svg>"); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><path d='M2 20c2-3 8-3 10 0'/><path d='M16 11h6'/><path d='M19 8v6'/></svg>"); }


.text-muted { color: var(--muted); }


.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-group .input {
  flex: 1;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79,140,255,0.15);
  border: 1px solid rgba(79,140,255,0.25);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn.copied {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
}
.icon-eye, .icon-copy {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: var(--text);
  mask-size: 18px 18px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.icon-eye {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6z'/><circle cx='12' cy='12' r='3'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.icon-copy {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='9' y='9' width='13' height='13' rx='2'/><rect x='2' y='2' width='13' height='13' rx='2'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='9' y='9' width='13' height='13' rx='2'/><rect x='2' y='2' width='13' height='13' rx='2'/></svg>");
}


.gateway-menu {
  background: linear-gradient(180deg, rgba(7,19,37,0.9), rgba(7,19,37,0.95));
  border: 1px solid rgba(79,140,255,0.15);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 28px rgba(6,10,20,0.45);
}
.gateway-menu .gateway-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gateway-menu .gw-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(54,215,255,0.2);
}
.gateway-menu .gw-title {
  font-weight: 700;
}
.gateway-menu .gw-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent-3);
  background: rgba(54,215,255,0.15);
  padding: 4px 8px;
  border-radius: 999px;
}
.gateway-menu .gw-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.02);
}
.gateway-menu .gw-item.active, .gateway-menu .gw-item:hover {
  background: rgba(54,215,255,0.15);
}
.gateway-menu .gw-sub {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid[style*="260px"] { grid-template-columns: 1fr !important; }
}


.sidebar details { margin-bottom: 6px; }
.sidebar summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar .side-sub { padding-left: 10px; }
.sidebar .side-sub a { margin-bottom: 6px; font-size: 13px; padding: 8px 10px; }
.sidebar .side-group > summary { background: rgba(79,140,255,0.08); }
.sidebar .side-group[open] > summary { background: rgba(79,140,255,0.18); }

/* =============================================
   LIGHT THEME OVERRIDES (editar/criar forms)
   ============================================= */
body.theme-light .card {
  background: #ffffff;
  border-color: rgba(0,80,200,0.12);
  box-shadow: 0 4px 20px rgba(0,80,200,0.07);
}
body.theme-light .input,
body.theme-light select,
body.theme-light textarea {
  background: rgba(0,80,200,0.04);
  border-color: rgba(0,80,200,0.18);
  color: #0d1530;
  color-scheme: light;
}
body.theme-light .input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
  border-color: rgba(0,80,200,0.45);
  box-shadow: 0 0 0 3px rgba(0,80,200,0.09);
}
body.theme-light .input::placeholder { color: #7a90b0; }
body.theme-light select,
body.theme-light .input,
body.theme-light textarea {
  color-scheme: light;
}
body.theme-light select option { background: #ffffff; color: #0d1530; }
body.theme-light .form-group label { color: #3a5070; }










