/* Link modal styles */
.link-type-tabs {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.link-type-tab {
  opacity: 0.6;
}

.link-type-tab.active {
  opacity: 1;
  font-weight: 600;
}

.link-post-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.link-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

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

.link-post-item:hover {
  background: var(--dm-card-bg-color);
}

.link-post-item.selected {
  background: var(--primary-color);
  color: #fff;
}

.link-post-item.selected .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.link-post-icon {
  flex-shrink: 0;
}

.link-post-title {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-post-type {
  flex-shrink: 0;
  font-size: 12px;
}

/* Light mode adjustments */
body[data-theme="light"] .link-post-item:hover {
  background: #f5f5f5;
}
