*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

.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;
}

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

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

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

.btn-menu {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: inherit;
  backdrop-filter: blur(4px);
}
.btn-menu:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(0, 0, 0, 0.25);
}
.btn-menu svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-menu {
  position: relative;
}

.header-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 210px;
  z-index: 9000;
  overflow: visible !important;
}
.header-menu-dropdown .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--wb-text);
  transition: background 0.15s;
}
.header-menu-dropdown .menu-item:hover {
  background: #f3f4f6;
}
.header-menu-dropdown .menu-item:first-child {
  border-radius: 10px 10px 0 0;
}
.header-menu-dropdown .menu-item:last-child {
  border-radius: 0 0 10px 10px;
}
.header-menu-dropdown .menu-icon,
.header-menu-dropdown .menu-item-has-submenu .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.header-menu-dropdown .menu-icon svg,
.header-menu-dropdown .menu-item-has-submenu .menu-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.header-menu-dropdown .menu-icon img,
.header-menu-dropdown .menu-item-has-submenu .menu-icon img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
.header-menu-dropdown .menu-text {
  flex: 1;
}

.menu-item-has-submenu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--wb-text);
  transition: background 0.15s;
}
.menu-item-has-submenu:hover {
  background: #f3f4f6;
}
.menu-item-has-submenu .menu-arrow {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.menu-item-has-submenu:hover .menu-arrow {
  transform: translateX(2px);
}
.menu-item-has-submenu.active .menu-submenu {
  display: block;
}

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

.menu-submenu-item {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--wb-text);
  font-size: 0.88rem;
  transition: background 0.15s;
  gap: 8px;
}
.menu-submenu-item:hover {
  background: #f3f4f6;
}
.menu-submenu-item.active {
  background: #e8f0fe;
  font-weight: 600;
}
.menu-submenu-item.active:hover {
  background: #dbeafe;
}
.menu-submenu-item img {
  width: 20px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

.wb-header .btn,
.toolbar .btn {
  background: #fff;
  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(--wb-primary);
  border-color: var(--wb-primary);
  color: #fff;
}
.wb-header .btn svg,
.toolbar .btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.toolbar {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--wb-panel);
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--wb-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;
}

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

#qrModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 11000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#qrModal.open {
  display: flex;
}

.nb-qr-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.nb-qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.nb-qr-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.nb-qr-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #6b7280;
  transition: 0.15s;
}
.nb-qr-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.nb-qr-stage {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  padding: 0.5rem;
}
.nb-qr-stage img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.nb-qr-loader {
  color: #6b7280;
  font-size: 0.95rem;
}

.nb-qr-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nb-qr-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nb-qr-btn-primary {
  background: #8a4cf5;
  color: #fff;
}
.nb-qr-btn-primary:hover {
  background: #7c3aed;
}
.nb-qr-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.nb-qr-btn-secondary:hover {
  background: #e5e7eb;
}

.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 1.5rem 20px 0;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #999;
  background: #fff;
  border-radius: 12px;
}
.empty-state .empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state p {
  margin: 0;
  font-size: 1.2rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
.alert.alert-center {
  margin-bottom: 2rem;
}
.alert.alert-error-border {
  border-width: 2px;
}

.password-prompt {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 500px;
  margin: 1.5rem auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.password-prompt h2 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=email],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #1f2937;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input[type=text]:focus,
.form-group input[type=password]:focus,
.form-group input[type=email]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-group textarea {
  resize: vertical;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #1f2937;
}
.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, #ffcb2b, #ffa500);
  color: #1f1f1f;
  border-color: #e09900;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffd84d, #ffb020);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.35);
}
.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
.btn-secondary:hover {
  background: #e5e7eb;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.87rem;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .wb-header {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }
  .wb-header-left {
    flex: 1;
    min-width: 0;
  }
  .wb-header-left .header-title-desktop {
    display: none;
  }
  .wb-header-title {
    display: block;
    width: calc(100% - 2rem);
    max-width: 720px;
    margin: 0.35rem auto 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    text-align: center;
    word-break: break-word;
  }
  .wb-header-right {
    flex: 0 0 auto;
  }
  .menu-submenu {
    right: 0;
    top: 100%;
    margin-top: 4px;
  }
  .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(--wb-border);
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: none;
    padding: 8px;
    gap: 8px;
  }
  .toolbar > div {
    width: 1px;
    height: 24px;
  }
}/*# sourceMappingURL=board-base.css.map */