/* ========== Toolbar / nav menu – consistent across all views ========== */
.toolbar {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #111827;
}
.menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  font-size: 14px;
  font-family: inherit;
}
.menu a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #d1d5db;
  border-bottom: none !important;
  margin-right: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.menu a:hover {
  background: #f3f4f6;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.menu a.current {
  background: var(--site-bg, #f5f7fb);
  color: #111827;
  border-color: rgba(209, 213, 219, 1);
  border-bottom: none !important;
  box-shadow: 0 -1px 0 var(--site-bg, #f5f7fb);
}
.toolbar-right {
  font-size: 14px;
}
.welcome {
  font-weight: 500;
  color: #111827;
}

.notifications-bell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  color: #111827;
  background: #fff;
}

.notifications-bell-link:hover {
  background: #f3f4f6;
}

.notifications-bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  padding: 0 4px;
}

/* Shared button styles – 5px radius, uniform look across the site */
button,
input[type="submit"],
.btn,
.btn-primary,
.btn-secondary,
.logout-button,
.btn-small,
a.btn,
a.btn-primary,
a.btn-secondary {
  border-radius: 5px !important;
  font-weight: 500 !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Primary blue buttons */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.btn-primary:hover,
a.btn-primary:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary / outline buttons */
.btn-secondary,
a.btn-secondary {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.btn-secondary:hover,
a.btn-secondary:hover {
  background: #e5e7eb !important;
}

/* Logout / orange outline */
.logout-button {
  border: 1px solid #f97316 !important;
  background: transparent !important;
  color: #ea580c !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.logout-button:hover {
  background: #f97316 !important;
  color: #fff !important;
}

/* Small action buttons (e.g. View, Edit) */
.btn-small,
button.btn-small {
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  border: none !important;
  cursor: pointer !important;
  background: #2563eb !important;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.btn-small:hover {
  background: #1d4ed8 !important;
}

/* Generic .btn (when used as primary) */
.btn {
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  background: #2563eb !important;
  color: #fff !important;
  text-decoration: none !important;
}
.btn:hover {
  background: #1d4ed8 !important;
}

/* Form submit and generic button – only when they look like primary actions */
input[type="submit"].btn-primary,
input[type="submit"].btn,
button.btn-primary,
button.btn {
  padding: 8px 14px !important;
  font-size: 14px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
}
input[type="submit"].btn-primary,
button.btn-primary {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

/* Danger / delete style */
.btn-delete,
.btn-danger,
.btn-small.btn-danger,
.btn-small[style*="background: #b91c1c"],
button.btn-delete {
  background: #b91c1c !important;
  color: #fff !important;
  font-weight: 500 !important;
}
.btn-delete:hover,
button.btn-delete:hover {
  background: #991b1b !important;
}

/* Cancel / neutral link as button */
.btn-cancel,
a.btn-cancel {
  border-radius: 5px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #374151 !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.btn-cancel:hover {
  background: #f9fafb !important;
}
