#app { min-height: 100vh; display: flex; }
.login-wrap { min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--indigo-900), var(--indigo-600)); }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-logo { font-weight: 800; font-size: 22px; color: var(--indigo-700); margin-bottom: 4px; }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.shell { display: flex; width: 100%; min-height: 100vh; }
.sidebar { width: 236px; background: var(--indigo-900); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; padding: 18px 12px; }
.sidebar .brand { font-weight: 800; font-size: 18px; padding: 8px 10px 18px; }
.sidebar .brand small { display: block; font-weight: 400; font-size: 11px; opacity: .65; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #d8d5f6; font-size: 14px; cursor: pointer; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: var(--indigo-600); color: #fff; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 10px; font-size: 12px; color: #a9a4da; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.content { padding: 24px; max-width: 1100px; width: 100%; margin: 0 auto; flex: 1; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--indigo-700); }
.stat-card .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl tr:hover td { background: var(--indigo-50); }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 800; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Painel de integrações — tela operacional separada do resto (superfície escura),
   pensada para ser lida rápido numa apresentação: um olhar, um status por card. */
.int-panel { background: var(--indigo-900); border-radius: var(--radius); padding: 22px; color: #e8e6fa; }
.int-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.int-panel-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.int-panel-head .count { font-size: 12px; color: #a9a4da; }
.int-group-label { font-size: 11px; text-transform: none; color: #8d87c4; margin: 18px 0 8px; font-weight: 600; }
.int-group-label:first-of-type { margin-top: 0; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.int-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px; }
.int-card .int-name { font-weight: 700; color: #fff; font-size: 14px; }
.int-status { display: flex; align-items: center; gap: 7px; margin: 8px 0; font-size: 12.5px; }
.int-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.int-dot.off { background: #e05c5c; box-shadow: 0 0 0 3px rgba(224,92,92,.18); }
.int-dot.sim { background: #d9a441; box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.int-dot.on { background: #4fd18b; box-shadow: 0 0 0 3px rgba(79,209,139,.18); }
.int-status.off span { color: #f0a3a3; }
.int-status.sim span { color: #e8c784; }
.int-status.on span { color: #8fe6b6; }
.int-card .int-desc { color: #c4c0e8; font-size: 12.5px; line-height: 1.45; }
.int-card .int-env { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.12); font-size: 11px; color: #837fab; }
.int-card .int-env code { font-family: 'SFMono-Regular', Consolas, monospace; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; color: #b3aee0; }
.int-card button { margin-top: 10px; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 10px; }
  .sidebar .brand, .sidebar-footer { display: none; }
  .nav-item { white-space: nowrap; }
  .content { padding: 14px; }
}
