/**
 * navbar.css — Top navigation bar styles.
 * Uses glassmorphism effect that sits on top of the board background.
 */

.jt-navbar {
  flex-shrink: 0;
  height: var(--navbar-height);
  background-color: rgba(0 0 0 / 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255 255 255 / 0.14);
  padding: 0 var(--space-md);
  position: relative;
  z-index: 100;
}

/* Brand */
.jt-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  user-select: none;
}

.jt-navbar__logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Board selector */
.jt-navbar__board {
  flex: 1;
  max-width: 320px;
  margin: 0 var(--space-md);
}

.jt-navbar__select {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
  background-color: rgba(255 255 255 / 0.14);
  border: 1px solid rgba(255 255 255 / 0.28);
  color: white;
  border-radius: var(--radius-sm);
}

.jt-navbar__select:focus {
  background-color: rgba(255 255 255 / 0.22);
  border-color: rgba(255 255 255 / 0.5);
  color: white;
  box-shadow: 0 0 0 2px rgba(255 255 255 / 0.2);
  outline: none;
}

/* Dropdown options inherit the page theme */
.jt-navbar__select option {
  background-color: var(--color-text-primary);
  color: white;
}

/* Navbar action buttons */
.jt-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Edit-board icon btn */
.btn-navbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255 255 255 / 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255 255 255 / 0.1);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
}

.btn-navbar-icon:hover {
  background-color: rgba(255 255 255 / 0.22);
}

.btn-navbar-icon:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
