/* Header Navigation Bar */
.header {
  background-color: var(--header-background);
  color: var(--header-text-color);
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--header-text-color);
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-left h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--header-text-color);
}

.board-name-separator {
  opacity: 0.5;
  font-weight: 600;
}

.board-name {
  font-weight: 600;
  opacity: 0.9;
}

.header-left h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  color: var(--header-text-color);
}

.header-nav {
  display: flex;
  gap: 10px;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.nav-board-name {
  flex: 1;
  text-align: center;
  color: var(--header-text-color);
  font-size: 24px;
  font-weight: 600;
  padding: 0 20px;
  opacity: 0.9;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#nav-board-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.filter-active-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--header-text-color);
  cursor: help;
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
  opacity: 0.95;
}

.filter-active-indicator svg {
  display: block;
  filter: drop-shadow(0 0 2px currentColor);
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
  .filter-active-indicator {
    animation: none;
  }
}

.boards-dropdown {
  position: relative;
}

.boards-dropdown:hover .boards-dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.boards-dropdown-menu:hover {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  padding: 10px 20px;
  color: var(--header-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  background-color: var(--header-button-background);
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  display: inline-block;
}

.nav-link:hover {
  background-color: var(--header-button-hover);
  transform: translateY(-1px);
}

.boards-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 5px;
  background-color: var(--header-menu-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.boards-dropdown-menu > * {
  background-color: var(--header-menu-background);
  border-radius: 8px;
}

.boards-dropdown-loading {
  padding: 15px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.boards-dropdown-empty {
  padding: 15px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.boards-dropdown-item {
  padding: 12px 20px;
  color: var(--header-menu-text-color);
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-color);
}

.boards-dropdown-item:last-child {
  border-bottom: none;
}

.boards-dropdown-item:hover {
  background-color: var(--header-menu-hover);
}

/* Settings Dropdown */
.settings-dropdown {
  position: relative;
}

.settings-dropdown:hover .settings-dropdown-menu:not(.no-hover) {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.settings-dropdown-menu:hover:not(.no-hover) {
  display: block;
}

.settings-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 5px;
  background-color: var(--header-menu-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
}

.settings-dropdown-menu.pinned {
  display: block;
}

.settings-dropdown-menu > * {
  background-color: var(--header-menu-background);
  border-radius: 8px;
}

.settings-dropdown-item {
  padding: 12px 20px;
  color: var(--header-menu-text-color);
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-color);
}

.settings-dropdown-item:last-child {
  border-bottom: none;
}

.settings-dropdown-item:hover {
  background-color: var(--header-menu-hover);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-dropdown:hover .user-dropdown-menu:not(.no-hover) {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.user-dropdown-menu:hover:not(.no-hover) {
  display: block;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 5px;
  background-color: var(--header-menu-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
}

.user-dropdown-menu.pinned {
  display: block;
}

.user-dropdown-menu > * {
  background-color: var(--header-menu-background);
  border-radius: 8px;
}

.user-dropdown-header {
  padding: 16px 20px 12px 20px;
  border-bottom: 2px solid var(--border-color);
  background-color: var(--header-menu-background);
}

.user-name-link {
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}

.user-name-link:hover {
  opacity: 0.8;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--header-menu-text-color);
  display: block;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 0;
}

.user-dropdown-item {
  padding: 12px 20px;
  color: var(--header-menu-text-color);
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-color);
}

.user-dropdown-item:last-child {
  border-bottom: none;
}

.user-dropdown-item:hover {
  background-color: var(--header-menu-hover);
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: relative;
}

.notifications-dropdown:hover .notifications-popup:not(.no-hover) {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.notifications-popup:hover:not(.no-hover) {
  display: flex;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--error-color);
  color: var(--header-text-color);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  padding: 2px;
}

.notifications-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background-color: var(--page-panel-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
  max-height: 500px;
  overflow: hidden;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
  flex-direction: column;
}

.notifications-popup.show,
.notifications-popup.pinned {
  display: flex;
}

.notifications-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--header-button-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--header-text-color);
}

.mark-all-read-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--header-text-color);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}

.mark-all-read-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--header-text-color);
}

.mark-all-read-btn.delete-mode:hover {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: var(--header-text-color);
}

.mark-all-read-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mark-all-read-btn:disabled:hover {
  background: none;
  border-color: var(--border-color);
  color: var(--header-text-color);
}

.notifications-list {
  overflow-y: auto;
  max-height: 440px;
}

.notifications-loading,
.notifications-empty,
.notifications-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.notifications-error {
  color: #e74c3c;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
  cursor: pointer;
  background-color: var(--page-panel-background);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background-color: var(--background-light);
}

.notification-item.unread {
  background-color: var(--background-light);
}

.notification-item.unread:hover {
  background-color: var(--background-light);
  opacity: 0.9;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-subject {
  font-weight: 600;
  color: var(--text-bold);
  font-size: 14px;
  margin-bottom: 5px;
}

.notification-message {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.notification-action-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--header-text-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 5px;
  margin-bottom: 8px;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s, transform 0.1s;
  position: relative;
}

.notification-action-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.notification-action-link:focus {
  background: var(--primary-hover);
  transform: translateY(-1px);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.notification-action-link:hover::after,
.notification-action-link:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--page-panel-background);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  white-space: normal;
  max-width: 300px;
  font-size: 12px;
  margin-bottom: 5px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

.notification-time {
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.8;
}

.notification-actions {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.notification-action-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
}

.notification-action-btn:hover {
  background-color: var(--background-light);
  border-color: var(--text-muted);
}

.notification-action-btn.read-btn:hover {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: var(--header-text-color);
}

.notification-action-btn.delete-btn:hover {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: var(--header-text-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.public-board-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--header-text-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.public-board-badge-btn:hover,
.public-board-badge-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.public-board-login-link {
  background-color: var(--success-color);
}

.public-board-login-link:hover {
  background-color: var(--primary-hover);
}

.public-board-badge-mobile-btn {
  display: none;
}

.header-inline-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  z-index: 1200;
  transition: opacity 0.2s ease;
}

.header-inline-toast.fade-out {
  opacity: 0;
}

/* Views Dropdown */
.views-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.views-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--header-button-background);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--header-text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.views-dropdown-btn:hover {
  background-color: var(--header-button-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.views-dropdown-label {
  color: var(--header-text-color);
}

.views-dropdown-icon {
  stroke: white;
  transition: transform 0.2s;
}

.views-dropdown-btn:hover .views-dropdown-icon {
  transform: translateY(1px);
}

.views-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--header-menu-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
}

.views-dropdown-menu.show {
  display: block;
}

.views-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--header-menu-text-color);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.views-dropdown-item:hover {
  background-color: var(--header-menu-hover);
}

.views-dropdown-item.active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.views-dropdown-item.active .views-icon {
  stroke: var(--text-muted);
}

.views-dropdown-item span {
  flex: 1;
}

.views-icon {
  flex-shrink: 0;
  stroke: var(--text-bold);
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.icon-btn {
  font-size: 24px;
  opacity: 0.8;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-svg {
  width: 24px;
  height: 24px;
  color: var(--icon-color);
  stroke: var(--icon-color);
}

.icon-link:hover .icon-btn {
  opacity: 1;
  transform: scale(1.1);
}

.db-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 15px;
  background-color: var(--header-button-background);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--header-text-color);
}

.db-status:hover {
  background-color: var(--header-button-hover);
  transform: translateY(-1px);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 12px;
  color: var(--header-text-color);
}

.version-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.version-info {
  font-size: 10px;
  color: var(--header-text-color);
  opacity: 0.7;
}

.more-info-link {
  font-size: 10px;
  color: var(--header-text-color);
  opacity: 0.7;
  text-decoration: underline;
  font-style: italic;
}

.status-icon.connecting {
  background-color: var(--warning-color);
}

.status-icon.success {
  background-color: var(--success-color);
  animation: none;
}

.status-icon.error {
  background-color: var(--error-color);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: var(--header-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.header-link:hover {
  background-color: var(--primary-hover);
}

/* Canvas/Content Area */
.canvas {
  width: 100%;
  padding: 20px;
  min-height: calc(100vh - 80px);
}

.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 900px) {
  .header {
    padding: 10px 14px;
  }

  .header-container {
    gap: 12px;
    position: relative;
  }

  .header-left h2,
  .header-nav,
  .views-dropdown,
  .notifications-dropdown,
  .settings-dropdown,
  .user-dropdown,
  .db-status {
    display: none !important;
  }

  .header-logo {
    height: 34px;
  }

  .header-left h1 {
    font-size: 18px;
  }

  .header-title-wrapper {
    gap: 2px;
  }

  .header-right {
    margin-left: auto;
    gap: 8px;
  }

  .header-public-board .header-nav {
    display: flex !important;
    min-width: 0;
  }

  .header-public-board .views-dropdown {
    display: flex !important;
  }

  .header-public-board .boards-dropdown {
    display: none !important;
  }

  .header-public-board .nav-board-name {
    font-size: 14px;
    padding: 0 8px;
    justify-content: flex-start;
  }

  .header-public-board .public-board-badge-btn {
    font-size: 10px;
    padding: 5px 8px;
  }

  .header-public-board .public-board-login-link {
    font-size: 12px;
    padding: 8px 12px;
  }

  .public-board-badge-mobile-btn {
    display: inline-flex;
    font-size: 10px;
    padding: 6px 10px;
    margin-right: 2px;
    max-width: min(42vw, 180px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--header-button-background);
    color: var(--header-text-color);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
    position: relative;
  }

  .mobile-menu-toggle:hover {
    background-color: var(--header-button-hover);
    transform: translateY(-1px);
  }

  .mobile-menu-toggle > span:not(.mobile-menu-toggle-dot) {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    display: block;
  }

  .mobile-menu-toggle-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--error-color);
    border: 1px solid rgba(255, 255, 255, 0.85);
    z-index: 1;
    pointer-events: none;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1090;
  }

  .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(88vw, 360px);
    height: 100vh;
    background: var(--page-panel-background);
    border-right: 1px solid var(--border-color);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.22);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1100;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .header.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .header.mobile-menu-open .mobile-menu-drawer {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--header-button-background);
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .mobile-menu-title {
    color: var(--header-text-color);
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-menu-close {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--header-menu-background);
    color: var(--header-menu-text-color);
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-tree {
    padding: 10px;
  }

  .mobile-tree-group {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--header-menu-background);
    margin-bottom: 10px;
    overflow: hidden;
  }

  .mobile-tree-group summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--header-menu-text-color);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-tree-group summary .mobile-notification-badge {
    margin-left: auto;
    margin-right: 8px;
  }

  .mobile-tree-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .mobile-tree-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    opacity: 0.85;
  }

  .mobile-tree-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-tree-group summary::after {
    content: '+';
    font-size: 16px;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-tree-group[open] summary::after {
    content: '-';
    transform: rotate(180deg);
    opacity: 1;
  }

  .mobile-tree-items {
    padding: 0 8px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
      overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-3px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, padding 0.22s ease;
  }

  .mobile-tree-group[open] .mobile-tree-items {
    padding: 0 8px 8px;
      max-height: 70vh;
      overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-link,
  .mobile-view-item {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    color: var(--header-menu-text-color);
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    cursor: pointer;
    display: block;
  }

  .mobile-notification-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 6px;
    background: var(--error-color);
    color: var(--header-text-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    display: inline-block;
  }

  .mobile-notifications-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-notification-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: var(--page-panel-background);
  }

  .mobile-notification-item[role="button"] {
    cursor: pointer;
  }

  .mobile-notification-item[role="button"]:hover {
    background: var(--background-light);
  }

  .mobile-notification-item.unread {
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
  }

  .mobile-notification-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bold);
    margin-bottom: 4px;
    line-height: 1.35;
  }

  .mobile-notification-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .mobile-notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-notification-time {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.9;
  }

  .mobile-notification-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--header-text-color);
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    max-width: 62%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-notification-link:hover {
    background: var(--primary-hover);
  }

  .mobile-notification-action {
    font-family: inherit;
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
  }

  .mobile-menu-link:hover,
  .mobile-view-item:hover,
  .mobile-view-item.active {
    background: var(--header-menu-hover);
  }

  .mobile-user-name {
    color: var(--text-muted);
    font-size: 13px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
  }

  .mobile-boards-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu-loading {
    color: var(--text-muted);
    font-size: 13px;
    padding: 10px;
  }

  .mobile-logout-btn {
    font-family: inherit;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}


