/* Shared top bar, used both server-rendered (login.php) and client-rendered (bar.js on
   every tool). Class names must match between the two — this file is the one source of
   truth for how the bar looks; a tool's own custom_css loads after this and can override. */
.jtools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6em 1em;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: sans-serif;
  font-size: 0.95em;
}
.jtools-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.jtools-bar-left img { height: 28px; display: block; }
.jtools-bar-right { display: flex; align-items: center; gap: 1em; }
.jtools-bar-right a { text-decoration: none; color: inherit; }
.jtools-bar-j {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: bold;
  font-size: 1.3em;
  color: var(--brand, #2563eb);
}
.jtools-settings { position: relative; }
.jtools-settings-toggle {
  background: none; border: none; cursor: pointer; font-size: 1.2em; line-height: 1;
}
.jtools-settings-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 130%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 10;
}
.jtools-settings.open .jtools-settings-menu { display: block; }
.jtools-settings-menu a { display: block; padding: 0.5em 1em; }
.jtools-settings-menu a:hover { background: #f3f4f6; }
