/* Admin Search Component Styles */

.admin-container {
  background: var(--bg-secondary, #1a1a2e);
  border-radius: 8px;
  padding: 16px;
}

.admin-list {
  margin-bottom: 16px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-tertiary, #252542);
  border-radius: 6px;
  margin-bottom: 8px;
}

.admin-item:last-child {
  margin-bottom: 0;
}

.admin-item span {
  color: var(--text-primary, #fff);
  font-size: 14px;
}

.admin-item button {
  background: var(--danger-color, #e74c3c);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-item button:hover {
  background: var(--danger-hover, #c0392b);
}

/* Admin Search Input Container */
.admin-search-container {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.admin-search-wrapper {
  position: relative;
  flex: 1;
}

.admin-search-input {
  width: 100%;
  padding: 12px 16px;
  padding-left: 40px;
  background: var(--bg-tertiary, #252542);
  border: 2px solid var(--border-color, #3a3a5c);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary-color, #f39c12);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.admin-search-input::placeholder {
  color: var(--text-muted, #888);
}

.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #888);
  pointer-events: none;
}

/* Dropdown */
.admin-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary, #1a1a2e);
  border: 1px solid var(--border-color, #3a3a5c);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: none;
}

.admin-search-dropdown.visible {
  display: block;
}

.admin-search-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color, #3a3a5c);
}

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

.admin-search-item:hover,
.admin-search-item.active {
  background: var(--bg-tertiary, #252542);
}

.admin-search-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

.admin-search-info {
  flex: 1;
  min-width: 0;
}

.admin-search-name {
  color: var(--text-primary, #fff);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-search-details {
  color: var(--text-muted, #888);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.admin-search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-muted, #888);
  font-size: 14px;
}

/* Add Admin Button */
.admin-add-btn {
  background: var(--primary-color, #f39c12);
  color: var(--bg-primary, #0f0f1a);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-add-btn:hover {
  background: var(--primary-hover, #e67e22);
}

.admin-add-btn:active {
  transform: scale(0.98);
}

.admin-add-btn i {
  font-size: 12px;
}

/* Empty state */
.admin-list-empty {
  color: var(--text-muted, #888);
  font-size: 14px;
  padding: 12px;
  text-align: center;
}

/* Scrollbar for dropdown */
.admin-search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.admin-search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.admin-search-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-color, #3a3a5c);
  border-radius: 3px;
}

.admin-search-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #888);
}
