/* ── App Shell ── */
.app { display: flex; height: 100vh; overflow: hidden; }
.main {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--tab-bar-height));
}
@media (min-width: 768px) {
  .main { padding-bottom: 1.5rem; }
}

/* ── Desktop Sidebar ── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
@media (max-width: 767px) {
  .sidebar { display: none; }
}

.sidebar-logo {
  padding: 1.25rem 1rem 1rem;
  background: var(--accent);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.sidebar-logo h1 { font-size: 16px; color: #fff; }
.sidebar-logo p { font-size: 10px; color: #a5d6a7; margin-top: 3px; }

.nav-section {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 12px 1rem 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 1rem;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  border-left: 2px solid transparent;
  transition: all .1s;
  user-select: none;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent-text);
  border-left-color: var(--accent);
  font-weight: 500;
}
.nav-item-icon { flex-shrink: 0; font-size: 15px; width: 18px; text-align: center; }
.nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--red-bg);
  color: var(--red);
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.sidebar-user { display: flex; align-items: center; gap: 8px; }
.sidebar-user-name { font-size: 12px; font-weight: 500; }
.sidebar-user-role { font-size: 11px; color: var(--text3); }

/* ── Mobile Tab-Bar ── */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-bar-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
  .tab-bar { display: flex; }
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text3);
  font-size: 10px;
  padding: 6px 4px;
  transition: color .15s;
}
.tab-item.active { color: var(--accent); }
.tab-item-icon { font-size: 20px; }

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.page-title { font-size: 18px; font-weight: 700; }
