.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.2s;
  min-width: 56px;
}
.nav-item:hover { text-decoration: none; color: var(--text-secondary); }
.nav-item.active { color: var(--accent); }
.nav-icon { width: 22px; height: 22px; fill: currentColor; }

.page-container {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

.grid {
  display: grid;
  gap: 12px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 16px; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-success { background: rgba(102, 187, 106, 0.15); color: var(--success); }
.badge-warning { background: rgba(255, 167, 38, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 83, 80, 0.15); color: var(--danger); }
.badge-info { background: rgba(79, 195, 247, 0.15); color: var(--accent); }

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid transparent;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; fill: var(--text-muted); opacity: 0.5; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

@media (min-width: 768px) {
  .navbar {
    top: 0;
    bottom: auto;
    left: 0;
    right: auto;
    width: 72px;
    height: 100vh;
    padding-bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 8px;
  }
  .page-container {
    padding-bottom: 16px;
    margin-left: 72px;
  }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
