:root {
  --primary: #3b82f6;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #1f2937;
  --border: #e5e7eb;
}

.wb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  flex-shrink: 0;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.theme-yellow .wb-header {
  background: linear-gradient(135deg, #FFCB2B 0%, #FFA500 100%);
}

.theme-blue .wb-header {
  background: linear-gradient(135deg, #4A90E2 0%, #1E5F99 100%);
  color: white;
}

.theme-green .wb-header {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
}

.theme-pink .wb-header {
  background: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
  color: white;
}

.theme-purple .wb-header {
  background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
  color: white;
}

.theme-orange .wb-header {
  background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
  color: white;
}

.wb-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.wb-header-left .logo img {
  height: 2em;
  display: block;
}
.wb-header-left h1.header-title-desktop {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.header-title-mobile {
  display: none;
}

.wb-header-title {
  display: none;
}

.wb-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-menu {
  position: relative;
}

.header-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: visible;
}
.header-menu-dropdown .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background-color 0.2s;
}
.header-menu-dropdown .menu-item:hover {
  background-color: #f3f4f6;
}
.header-menu-dropdown .menu-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.header-menu-dropdown .menu-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.header-menu-dropdown .menu-item .menu-icon,
.menu-item-has-submenu .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.menu-item-has-submenu .menu-icon img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
.header-menu-dropdown .menu-item .menu-icon svg {
  width: 18px;
  height: 18px;
}
.header-menu-dropdown .menu-item .menu-text,
.menu-item-has-submenu .menu-text {
  flex: 1;
}

/* Language Switcher Submenu */
.menu-item-has-submenu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background-color 0.2s;
}

.menu-item-has-submenu:hover {
  background-color: #f3f4f6;
}

.menu-item-has-submenu .menu-arrow {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.menu-item-has-submenu:hover .menu-arrow {
  transform: translateX(2px);
}

.menu-submenu {
  display: none;
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 1001;
  white-space: nowrap;
}

.menu-item-has-submenu.active .menu-submenu {
  display: block !important;
}

/* Ensure parent dropdown doesn't clip submenu */
.header-menu-dropdown {
  overflow: visible !important;
}

.menu-submenu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s;
}

.menu-submenu-item:hover {
  background-color: #f3f4f6;
}

.menu-submenu-item.active {
  background-color: #e8f0fe;
  font-weight: 600;
}

.menu-submenu-item.active:hover {
  background-color: #dbeafe;
}

/* Mobile: submenu below instead of left */
@media (max-width: 768px) {
  .menu-submenu {
    right: 0;
    top: 100%;
    margin-right: 0;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.toolbar {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--panel);
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 20;
  max-height: 80vh;
  overflow-y: auto;
}
.toolbar::-webkit-scrollbar {
  width: 0;
}
@media (max-width: 768px) {
  .toolbar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: none;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: none;
    padding: 8px;
    gap: 8px;
  }
  .toolbar > div {
    width: 1px;
    height: 24px;
  }
}

.wb-header .btn,
.toolbar .btn {
  background: #FFFFFF;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wb-header .btn:hover,
.toolbar .btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111;
}
.wb-header .btn.active,
.toolbar .btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.wb-header .btn svg,
.toolbar .btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.toolbar-separator {
  width: 80%;
  height: 1px;
  background: #e5e7eb;
  margin: 5px 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .wb-header {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }
  .wb-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }
  .wb-header-left .header-title-desktop {
    display: none;
  }
  .wb-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  .header-menu-dropdown {
    right: 0;
    left: auto;
    transform: none;
    min-width: 180px;
  }
  .wb-header-title {
    display: block;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    width: 100%;
    order: 3;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.modal-box {
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}
.modal-box img {
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid #eee;
}
.modal-box .btn {
  min-width: 120px;
}
@media (max-width: 480px) {
  .modal-box {
    padding: 12px;
  }
  .modal-box .btn {
    min-width: 90px;
  }
}

/*# sourceMappingURL=board_topbar.css.map */
