/**
 * Email Autocomplete Dropdown Styles
 */

.email-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  max-height: 240px;
  overflow-y: auto;
}

.email-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.email-dropdown-list {
  padding: 4px;
}

.email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.email-item:hover,
.email-item.highlighted {
  background: #f3f4f6;
}

.email-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.email-item-content svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.email-item-content span {
  font-size: 14px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #9ca3af;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.email-item:hover .email-item-remove {
  opacity: 1;
}

.email-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Mobile */
@media (max-width: 480px) {
  .email-item-remove {
    opacity: 1;
  }
}
