/* base.css — reset + tipografia + layout shell */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--az-bg-tertiary);
  color: var(--az-text-primary);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--az-primary); text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--az-text-secondary); }
.faint { color: var(--az-text-tertiary); }
.hidden { display: none !important; }

/* ── App shell: sidebar + área de conteúdo ── */
#app { height: 100%; }
.shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 64px; flex-shrink: 0; background: var(--az-primary-dark);
  display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 6px;
}
.sidebar .logo {
  width: 36px; height: 36px; border-radius: 8px; background: var(--az-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--az-primary-50); margin-bottom: 14px;
}
.nav-item {
  position: relative;
  width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--az-primary-300); gap: 2px; transition: background .12s, color .12s;
}
.nav-item i { font-size: 18px; }
.nav-item span { font-size: 10px; }
.nav-item:hover { color: var(--az-primary-50); background: rgba(255,255,255,.06); }
.nav-item.active { background: var(--az-primary); color: var(--az-primary-50); }
.nav-item.bottom { margin-top: auto; }
.nav-badge {
  position: absolute; top: 3px; right: 3px;
  font-size: 7px; font-weight: 700; font-style: normal; line-height: 1;
  letter-spacing: .3px; padding: 2px 3px; border-radius: 4px;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%); color: #fff;
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px; flex-shrink: 0; border-bottom: .5px solid var(--az-border-tertiary);
  display: flex; align-items: center; padding: 0 20px; gap: 16px; background: var(--az-bg-primary);
}
.topbar .title { font-size: 16px; font-weight: 500; }
.topbar .subtitle { font-size: 12px; color: var(--az-text-secondary); display: flex; align-items: center; gap: 4px; }
.topbar .search { flex: 1; max-width: 320px; margin-left: 24px; position: relative; }
.topbar .search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--az-text-tertiary); }
.topbar .search input { width: 100%; height: 34px; padding: 0 12px 0 32px; font-size: 13px; border: .5px solid var(--az-border-secondary); border-radius: 6px; }
.topbar .spacer { margin-left: auto; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--az-primary-50);
  color: var(--az-primary-dark); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
}
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
