/* Global Search Styles */
#global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 550px;
  max-height: 600px;
  overflow-y: auto;
  margin-top: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: white;
  z-index: 1050;
  padding: 0;
}

#global-search-results-content {
  padding: 0;
}

#global-search-results .dropdown-menu-header:first-child {
  border-radius: 8px 8px 0 0;
}

#global-search-results .dropdown-menu-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
}

#global-search-results .dropdown-menu-header i {
  font-size: 12px;
}

#global-search-results .list-group {
  margin-bottom: 0;
}

#global-search-results .list-group-item {
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px;
  transition: background-color 0.15s ease;
}

#global-search-results .list-group-item:last-child {
  border-bottom: none;
}

#global-search-results .list-group-item:hover,
#global-search-results .list-group-item.active {
  background-color: #f8f9fa;
  cursor: pointer;
}

#global-search-results .global-search-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

#global-search-results .global-search-item:hover {
  text-decoration: none;
}

#global-search-results .fw-semibold {
  color: #212529;
  font-size: 14px;
  margin-bottom: 4px;
}

#global-search-results .text-muted.small {
  font-size: 12px;
  color: #6c757d;
}

#global-search-results mark {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 500;
}

/* Quick Actions Styling */
.global-search-quick-actions {
  padding: 8px;
}

.global-search-quick-action {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.15s ease;
  font-size: 14px;
  gap: 10px;
}

.global-search-quick-action:hover,
.global-search-quick-action.active {
  background-color: #f8f9fa;
  color: #212529;
  text-decoration: none;
}

.global-search-quick-action i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #6c757d;
}

/* Navigation Shortcuts Styling */
.global-search-navigation-shortcut {
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.global-search-navigation-shortcut:hover {
  border-left-color: #0d6efd;
  background-color: #f8f9fa;
}

.global-search-navigation-shortcut .navigation-shortcut-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.global-search-navigation-shortcut .fw-semibold {
  color: #212529;
  font-size: 14px;
}

.global-search-navigation-shortcut .text-muted.small {
  font-size: 12px;
  color: #6c757d;
}

/* View All Link */
.global-search-view-all {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #0d6efd;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.global-search-view-all:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.global-search-view-all i {
  margin-left: auto;
  font-size: 12px;
}

/* Empty and Loading States */
.global-search-empty,
.global-search-loading {
  padding: 40px 20px;
  text-align: center;
}

.global-search-empty i,
.global-search-loading i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

/* Badge Styling */
#global-search-results .badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
}

/* Avatar Styling */
.global-search-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

/* Category Icons */
.global-search-category-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.global-search-category-icon.people {
  background-color: #e7f3ff;
  color: #0d6efd;
}

.global-search-category-icon.tasks {
  background-color: #e8f5e9;
  color: #28a745;
}

.global-search-category-icon.reviews {
  background-color: #fff3e0;
  color: #fd7e14;
}

.global-search-category-icon.goals {
  background-color: #f3e5f5;
  color: #6f42c1;
}

.global-search-category-icon.documents {
  background-color: #e0f2f1;
  color: #20c997;
}

.global-search-category-icon.recruiting {
  background-color: #fff8e1;
  color: #ffc107;
}

/* Keyboard Shortcut */
.global-search-kbd {
  display: inline-block;
  padding: 3px 6px;
  font-size: 11px;
  font-family: monospace;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #6c757d;
}

/* Scrollbar Styling */
#global-search-results::-webkit-scrollbar {
  width: 8px;
}

#global-search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 8px 8px 0;
}

#global-search-results::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

#global-search-results::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Ask AI Footer */
.global-search-footer {
  border-top: 1px solid #e9ecef;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-radius: 0 0 8px 8px;
  position: sticky;
  bottom: 0;
}

.global-search-ai-prompt {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #6c757d;
}

.global-search-ai-prompt i {
  color: #0d6efd;
  font-size: 14px;
}

.global-search-ai-prompt button {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.global-search-ai-prompt button:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

.global-search-ai-prompt button:focus {
  outline: none;
  box-shadow: none;
}