/* =============================================================
   Global Base Styles
   Shared across all apps
   ============================================================= */

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 20px;
  background: #fafafa;
  color: #111;
}

/* =============================================================
   Shared Layout Helpers
   ============================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}

.muted {
  color: #666;
  font-size: 13px;
}

.grid {
  height: 520px;
  width: 100%;
}

/* =============================================================
   Shared Button Styles
   ============================================================= */

.btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  background: #fafafa;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

.btn:hover {
  background: #f2f2f2;
}

/* =============================================================
   Navbar
   ============================================================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-brand {
  font-weight: 600;
  text-decoration: none;
  color: #111;
  font-size: 16px;
}

.navbar-link {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}

.navbar-link:hover {
  color: #000;
}

.navbar-user {
  font-size: 13px;
  color: #888;
}

/* =============================================================
   Optional old authbar support
   ============================================================= */

.authbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.authbar form {
  margin: 0;
}
