/* System Thotus - Estilos de Menções (@) e Notificações */

/* Autocomplete de Menções */
.mention-autocomplete-dropdown {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
  font-family: inherit;
  font-size: 0.9rem;
  z-index: 999999 !important;
}

.mention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

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

.mention-item:hover,
.mention-item.active {
  background-color: #f0f9ff;
}

.mention-user-name {
  font-weight: 600;
  color: #0f172a;
}

.mention-user-handle {
  font-size: 0.775rem;
  color: #0284c7;
  font-weight: 500;
}

  overflow: hidden;
}

.mention-user-handle {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

/* Bell Dropdown de Notificações no Header */
.notification-bell-dropdown {
  position: relative;
  display: inline-block;
}

.notification-bell-btn {
  background: transparent;
  border: none;
  color: var(--header-icon-color, #d4a73c);
  font-size: 1.25rem;
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-bell-btn:hover {
  background-color: rgba(212, 167, 60, 0.05);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notification-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-subtle, #f8fafc);
}

.notification-dropdown-header h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color, #0f172a);
}

.btn-mark-all-read {
  font-size: 0.75rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.btn-mark-all-read:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.notification-item:hover {
  background-color: var(--hover-bg, #f8fafc);
}

.notification-item.unread {
  background-color: rgba(37, 99, 235, 0.04);
}

.notification-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.notification-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #2563eb;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

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

.notification-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color, #0f172a);
  line-height: 1.3;
}

.notification-message {
  font-size: 0.8rem;
  color: var(--text-muted, #475569);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--text-subtle, #94a3b8);
  margin-top: 4px;
}

/* Destaque visual de comentário referenciado via âncora */
.comment-item-highlight {
  animation: commentPulse 2.5s ease-out;
  border-left: 4px solid #2563eb !important;
}

@keyframes commentPulse {
  0% {
    background-color: rgba(37, 99, 235, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

/* Estilo para elemento de menção inserido (@usuario) no CKEditor e nos comentários */
.mention, .mention-user, span.mention, span.mention-user {
  background-color: #e6f7ee !important;
  color: #1a7f37 !important;
  border: 1px solid #2ecc71 !important;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
  font-size: 0.9em;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
}


